Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
75% Quality Score
Upvotes Received
11
Posts with Upvotes
9
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
3 Commented Posts
0 Endorsements
Ranked #1K
~9K People Reached
Favorite Forums
Favorite Tags

34 Posted Topics

Member Avatar for DJWK

This is a dependency error from **make**. buffer.o needs buffer.cpp but make cannot find buffer.cpp and therefor looks for a rule that can generate buffer.cpp (which fails). The dependencies must point to the actual files. buffer.o: /path/to/buffer.cpp /path/to/buffer.h g++ -c $< -o $@ You can also make a more generic …

Member Avatar for rxlim
0
268
Member Avatar for hydeous
Member Avatar for Incubator

You can use the fseek function (in stdio.h) to set the file position (byte offset).

Member Avatar for WaltP
0
151
Member Avatar for gl7

A string object can store strings including whitespaces. I would guess that your problem is that you only read the first word the user inputs and ignores the rest. If you could provide the relevant parts of your code it would be much easier to help you, especially the part …

Member Avatar for gl7
0
304
Member Avatar for Skul'l

According to the documentation (msdn) ShellExecute is in the Shell library in the Shellapi.h header file. Have a look at [URL="http://msdn.microsoft.com/en-us/library/bb762153%28v=vs.85%29.aspx"]msdn ShellExecute documentation[/URL]

Member Avatar for Skul'l
0
524
Member Avatar for kevinn

In Linux, the library for dynamic loading a library into the caller's address space is called dl, use the function dlopen to load and dlsym to resolve the function you are interested in calling. In Windows the function is called LoadLibrary and is a part of Kernel32.dll (defined in Windows.h). …

Member Avatar for kevinn
0
208
Member Avatar for Labdabeta
Member Avatar for Labdabeta
0
881
Member Avatar for spoonlicker

Please provide the exact error messages you get when compiling the code you have provided.

Member Avatar for papanyquiL
-5
233
Member Avatar for pkfx

Have a look at this [URL="http://www.daniweb.com/forums/post1476820.html#post1476820"]http://www.daniweb.com/forums/post1476820.html#post1476820[/URL] thread

Member Avatar for Narue
0
116
Member Avatar for ram619

This particular algorithm depends on eliminating every multiple of each prime number (since that will not be a prime number), not the prime number them selves. When i = 2 arr[i] will be 3, and during the second time in the outer loop when j = 3 you will check …

Member Avatar for ram619
0
127
Member Avatar for skinwah

I assume that you want the following [CODE]while (isalpha(sheet[i].empID || !isdigit(sheet[i].empID)))[/CODE] to be [CODE]while (isalpha(sheet[i].empID) || !isdigit(sheet[i].empID))[/CODE] right? Another way of checking the input is to use formatted input with cin >>. You can enable exceptions by doing the following: [CODE] cin.exceptions(istream::failbit | istream::badbit); [/CODE] Then you can simply do …

Member Avatar for pseudorandom21
0
270
Member Avatar for scarlettmoon

There is no need to for any static variables, use local variables instead by removing the static keyword. Also, maybe you should use a do-while loop when checking the input in getScore? What happens if the user inputs an incorrect value twice? There is no point in checking the argument …

Member Avatar for scarlettmoon
0
158
Member Avatar for kra9853

This depends on how your console/terminal interprets the character code. Every character is represented by a number. The mapping between number and character depends on which character encoding is being used. \u00A2 is a ascii representation of the unicode code point 0x00A2 representing the cent symbol. Since unicode requires one …

Member Avatar for mike_2000_17
0
809
Member Avatar for KazenoZ

I would like to know what this->tile is. Why 16? Without knowing this I would guess that there is something wrong with getTile. What compiler/debugger do you use? A backtrace would be very helpful. A backtrace would tell you which part of your code is causing the error.

Member Avatar for KazenoZ
0
125
Member Avatar for sufyanali

The easiest way to find out how objects are handled in different situations is to write a very simple program with a class that has traces in the constructor, destructor and the = operator. Another way is to use a debugger with breakpoints at the same locations.

Member Avatar for rxlim
0
111
Member Avatar for mak_sutt

I think it is possible to send a WM_GETTEXT message to the child control (window) of another process (using SendMessage). You can use the spy++ application (included in visual studio, maybe?) to get information about the control you are interested in. Have a look at msdn under Library -> Windows …

Member Avatar for ninjatalon
0
121
Member Avatar for qwerty05

You can not copy strings with the assignment operator. Try using strcpy to set the title to "The Curious Case...". You can only use a constant string when initializing arrays.

Member Avatar for rxlim
-1
89
Member Avatar for jeevsmyd

It is not very complicated. You have to remember the previous position and size of the ball. Before you update the screen you have to clear only that part of your viewport. In your case I would guess that you can paint a black rectangle at (x-10, y-10) with size …

Member Avatar for rxlim
0
330
Member Avatar for biancaW

To do this you can use the following code: [CODE] #include <iostream> char* animals[12] = {"rat", "ox", "tiger", "rabbit", "dragon", "snake", "horse", "goat", "monkey", "rooster", "dog", "boar"}; int main() { int year = 0; std::cout << "Enter your birth year: "; std::cin >> year; std::cout << "Your animal is " …

Member Avatar for rxlim
0
741
Member Avatar for plang007

You cannot compare one value with two values at the same time. The < operator has left to right associativity. The if statement will always be true. If Total_minutes is 1 then 15 < Total_minutes will be 0 and 0 <= 30 is true. If Total_minutes is 90 then 15 …

Member Avatar for rxlim
0
153
Member Avatar for jasleen12345

A new line is also a word separator (in most cases). You are also missing the last line since it will not end with a new-line character, you should count * as a line separator, or start with line set to 1. You should also initialize word to 0.

Member Avatar for ravenous
0
637
Member Avatar for Akill10

The reason your code might work is because there are two levels of memory allocators in C++. The operating system does the actual allocation of the physical memory and maps it into the process memory space called heap (known page allocation). Normally this memory is not freed until the process …

Member Avatar for Akill10
0
222
Member Avatar for rockerjhr

You should really read your error messages before posting, or post the error messages! 1. There is nothing called genereic_ptr 2. You have defined your stack structure twice You should not declare your functions as extern if you will provide your own definitions. How do you plan to use this? …

Member Avatar for rockerjhr
0
312
Member Avatar for caltech

Move numb = numb + 2 to the very end of your loop. I assume you want it to go from 20 to 60?

Member Avatar for rxlim
0
134
Member Avatar for winecoding

First of all, n will be the same in all instances at a specific time since it is a static variable. n is increased when a CDummy object is created and n is decreased when an object is deallocated. You are creating 7 CDummy objects and therefore n is 7 …

Member Avatar for pseudorandom21
0
101
Member Avatar for akase2010

The assignment says "get the current speed of the car and display it". You do not! So.. you should display the speed of the car when you accelerate and brake.

Member Avatar for rxlim
0
201
Member Avatar for plang007

The first problem is that you do not specify AM or PM. You should let the user input AM or PM like this: [CODE] string ampm; cin >> hrOut >> ampm; if (ampm == "pm") hrOut += 12; [/CODE] Then you will have the time in 24 hour format (0-23). …

Member Avatar for rxlim
0
164
Member Avatar for XA04

Just to be clear, the problem is not that you have made your own constructor. The problem is that it takes one or more arguments. Why not simply add a constructor with no parameters, or add default arguments like this: [CODE] #include <iostream> class MyClass { public: MyClass(int val = …

Member Avatar for rxlim
0
706
Member Avatar for Nandomo

There are a couple of errors in your code: 1. The for loop in displayList should set current = current->next 2. getNewEntry should always set newOne->next to NULL! 3. buildList should not link newOne to itself!!! 1 and 2 is not difficult to fix. For nr 3 I would recommend …

Member Avatar for rxlim
0
108
Member Avatar for JeremyK2

Sorry if you already know this, but it is not the class that stores the data unless the members are static. You can make m_sComPort and m_sBaudRate static and access them as DataClass::m_sComPort and DataClass::m_sBaudRate. Otherwise you must be able to access the object instance 'data' from form2. If you …

Member Avatar for rxlim
0
207
Member Avatar for Mr. K

I have never used allegro, but my guess is: - There is no function called install_timer_ex (maybe you mean install_int_ex?) - There is no function called textmode (seems redundant)

Member Avatar for rxlim
0
210
Member Avatar for hust921

What are you trying to do? To be able to __stop__ the loop, your while condition must change, which it never will. You must change the value of 'stop' inside your loop! Your loop will not even start until you press a key other than 's'.

Member Avatar for rxlim
0
75
Member Avatar for jaymo'o
Member Avatar for hveed

You should be able to compare *rankPtr to a character value, maybe not to an integer value depending on your compiler's error/warning settings. What is the error? It makes no sense to compare *rankPtr to both characters and integers.. Also, the loop looks strange, you are increasing the openPtr pointer …

Member Avatar for rxlim
0
107

The End.