Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~9K People Reached
Favorite Tags

21 Posted Topics

Member Avatar for plucesiar

Did you create a project and add all the files to the project? The reason I ask is that if you don't you will get that error even if all the files are in the same directory.

Member Avatar for tomek3211
0
520
Member Avatar for niyasc

I also use the same compiler. In order to help you, can you provide sample program that is not working/compiling so folks can help you.

Member Avatar for Ancient Dragon
0
345
Member Avatar for collinsislee

This is where the % function is handy. If you want to print out n number per line...within the loop use System.out.print and add an if statement [CODE] if ( loopcontrolvariable % n == 0 ) System.out.println(""); [/CODE] in one case your loopcontrolvariable is y in the other loop it …

Member Avatar for JamesCherrill
0
386
Member Avatar for Srinivas0

Let's say we have the function shown below: [CODE] void func1() { int count = 0; // some other statements count++; cout << "current value of count: " << count << endl; } [/CODE] if you called the above function five times the value of count will always be 1. …

Member Avatar for mrnutty
0
271
Member Avatar for Muhammad Anas

Because of how double's are represented (wikipedia has a good article) you are overshooting 3.0 enough that the loop appears to terminate prematurely. Try changing [CODE] ceilDemo += 0.1 [/CODE] to [CODE] ceilDemo += 0.01 [/CODE] You will see the results you expect, but of course more output.

Member Avatar for Muhammad Anas
0
136
Member Avatar for flendernik

There are a couple of problems....I will answer this one....look at the function add_to_BST....ask yourself this question "What happens after you process the first list item?" That is, what happens after that? Don't you want to invoke the same function add_to_BST(n, p->next) only in the case that p->next is NOT …

Member Avatar for flendernik
0
141
Member Avatar for lafigueroa

I would like to know if I drop a constaint on a column whether Oracle will automatically change other constraints that involve that column? The reason I ask is because for two days in a row when I dropped constaints on a column that related constraint had the very same …

Member Avatar for lafigueroa
0
95
Member Avatar for Tainor

move the statement [CODE] screen=SDL_SetVideoMode(640,480,32,SDL_SWSURFACE); [/CODE] before the function calls to cargarImagen.

Member Avatar for Tainor
0
258
Member Avatar for Olah92

You have need to organize your program more like this: // add function prototype here int main() { // add code to call your function } // move your function readCourses OUTSIDE main courses readCourses() { } good luck!

Member Avatar for Olah92
0
211
Member Avatar for Yeen

[CODE] for (int i=0; i < testlistarray.length; i++) { testlistarray[i] = new Queue(); } [/CODE] The array declaration sets aside memory of Queue objects but they remain uninitialize.

Member Avatar for lafigueroa
0
801
Member Avatar for vobiahu

I imagine you are trying to get someone to help suggest a solution that does not involve arrays....then use Strings, one string contains the actual phrase or word being guessed and another string representing what the user sees (probably initialized to underscores for each letter not yet guessed). There are …

Member Avatar for lafigueroa
0
97
Member Avatar for miYn2o0

You should be able to find some resources online by searching for the term video capture library.

Member Avatar for miYn2o0
0
264
Member Avatar for mks200

I would suggest that you descibe what is wrong...that is what are you experiencing so in the future it makes it easier for folks to help. I would incorporate the comments you have describing what the program should do into the program itself, as your comments suggest you should do. …

Member Avatar for WaltP
0
262
Member Avatar for Voltron160

I created a version called bubble2 that perform a recursive bubble sort. I left the comments in so you can "see" how it is working. You basically start at position n-1 and find the smallest or largest element in the list. The recursion comes in by calling bubble2 again with …

Member Avatar for LevyDee
0
1K
Member Avatar for rajdey1

I agree with the above reply that indentation and a couple of comments would make it easier to look over ...you would get more assistance. I also agree with the previous reply that you never allocated any memory for p. In addition, I think you will get a problem in …

Member Avatar for lafigueroa
0
159
Member Avatar for faaz
Member Avatar for faaz
0
180
Member Avatar for ace8957

Change the getPlayer function...your version is overdone and redundant. Try this one liner previous = 1 - previous; The above will toggle between 0 and 1 until you get a winner. But, I see that also needs to be fixed....I will reply to that in a minute or two...

Member Avatar for ace8957
0
3K
Member Avatar for sidra 100

You have not defined the += function correctly. My guess is that you probably heard someone say "it must return a string" but they meant "str" object. I got your example to work by fixing that up. I recommend you browse the Internet for how to correctly use operator+=. Lastly, …

Member Avatar for dusktreader
0
140
Member Avatar for tkud

From my experience it should compile. I do see minor errors. you may need to include <tchar.h> and change the first two static const to match the 3rd one: [code] static TCHAR g_szClassName[] = _T("myWindowClass"); static TCHAR g_szChildClassName[] = _T ("myMDIChildWindowClass"); [/code] I don't have the resource.h file but I …

Member Avatar for Frederick2
0
322
Member Avatar for guest7

I think the array: arr1 = new char[3]; is too small. why isn't it arr1 = new char[5]? I would set arr1[4]='\0' to ensure it gets interpreted as a c-string.

Member Avatar for Ancient Dragon
0
179
Member Avatar for lafigueroa

My name is Lorraine. I found this community last week when I was searching for some answers for a C++ program I as helping someone with. I have been a Java developer for close to ten years. I have a love/hate relationship with C++. I do agree with most of …

Member Avatar for ShadyTyrant
0
90

The End.