General C++ Programming - November 2011 (Page 36)

Why is this segment faulting?
 
The program runs and everything but for values in the list more than 100 it segment faults... The pu...
[no replies]
by pat987
Help with this program
 
If the user selects “m or M” then call a user-defined function average ( ) to find the average...
[no replies]
by gladi
preorder of binary search tree
 
hi guys, can you help me with my code I have a problem with my function it is not print the number ...
[9 replies] Last: look what can i say to you I thank you so much man I really was in tro... (by gladi)
Function works when not in an if()
 
Hello all. Thank you for reading and or helping. I am in my first C++ class and my terminology is...
[2 replies] Last: Yes that did fix the issue. Thank you. FYI any one that wonders what ... (by snipe84)
i need help with this program.
 
Write the prototype of the function giveRaise() that has 2 parameters, raise and salary. The first ...
[no replies]
Mini project help
 
Hi friends I have to do 1st year mini project in C.I want to do "library management" project so plea...
[1 reply] : you can get sample source code here http://codeincodeblock.blogspot.co... (by Dinesh subedi)
by Phiru
waveOutSetPosition???
 
Hi. I am working on a project playing wav files. I am looking for a way to move audio file being ...
[no replies]
[Linker Error] undefined reference to 'vtable for Block'? (1,2)
 
So I'm just getting into polymorphism in C++. I have a class, Block, with public member virtual void...
[23 replies] Last: Victory! I changed Block.h to read class Block { public: ... (by DethRaid)
by trojsi
get line from text file by line number
 
I have just finished a hangman game in win console with words selected randomly from an array of str...
[8 replies] Last: Yes, if you want to write then use ofstream. But you cannot modify tex... (by tfityo)
Updating my cellphone bill program
 
I have this program that calculates and prints a cell phone bill. I've been stuck at how to approach...
[1 reply] : This is all in the order in which you do things, you would prompt the ... (by Computergeek01)
filling array
 
http://i933.photobucket.com/albums/ad180/psihopats666/cpp/massivs.jpg Hello. Okay this is how s...
[no replies]
How to sort using STACK in C++?
 
Anyone can help me with this algorithm? 1 set up stack in and print it 2 while stack in is not e...
[4 replies] Last: Please use the code format tags to format your code, it's impossible t... (by kbw)
Problem with Nested Loops
 
I have an assignment where I have to write a program that uses nested loops to collect datat and cal...
[1 reply] : Both the outer loop and inner loop are outputting from outrain.txt. Y... (by htirwin)
by fortis
BitShifting problem
 
I have a file which contains indexes to tiles. struct MegaTile { unsigned short images ; }...
[5 replies] Last: 01011001 <-- stored bits 00110000 <-- mask to get bit 4 an 5: ... (by codekiddy)
my program isn't finction correcly on another computer
 
I made a game, and when it starts, there is a title menu with a lot of stuff going on. I'm using an...
[no replies]
by ziv
exspression must have a constant value error
 
Hello, I have two .cpp files in my project. at the first file im using the next code: #define ...
[2 replies] Last: func(int row, int col) you must change func() don't use variable r... (by ledien)
int turning into a location or double?!?
 
so i'm running into this problem with this code. //TestCode is a class TestCode * enemies ; ...
[5 replies] Last: TestCode * enemies ; memset( elements, 0 , sizeof( element ) ) ; ... (by bluecoder)
codeblocks problem
 
After coming back to C++ after awhile, and clicked on codeblocks. I noticed something odd hapenning....
[1 reply] : I din't understand your problem clearly.I think mingw c++ compiler may... (by Dinesh subedi)
Comparing and replacing character arrays
 
Hi, I'm trying to write a function that would allow me to take a user's input and compare it against...
[no replies]
How to use CopyMemory with integer? API in C++
 
I use Shared Memory for communication between 2 processes. Then I use CopyMemory function to send...
[1 reply] : This: CopyMemory((PVOID)pBuf, & n,BUF_SIZE); // Notice the & before n... (by coder777)
November 2011 Pages: 1... 3435363738... 47
  Archived months: [oct2011] [dec2011]

This is an archived page. To post a new message, go to the current page.