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 purpose of this program is to run Insertionsort only if the li...
[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 of each row (following array) and print the results in this...
[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 in pre-order. please i need a quick help because i have on...
[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/maybe wrong. This is part of and assignment which the progr...
[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 specifies the percentage amount of the raise (i.e. 4.2 for a...
[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 please give me suggestion about algorithm ,features of project o...
[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 played to another position. As i found, waveout has waveO...
[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 Block::display(). In Dirt, a class that inherits from Block...
[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 strings. I need to change it get words randomly. I do not wish ...
[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 this task. How would I update the program to prompt the use...
[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 should array look like after its filled. it's 2-dimension A...
[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 empty repeat 2.1 max = in.pop 2.2 while there are still ele...
[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 calculate the average rainfall over a period of years. The prog...
[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 ; }; There is a copy of this structure for every tile. Th...
[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 if (_kbhit()) inside a loop, while audio is being played th...
[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 row 50 #define col 100 . . main(){ . . func(row,col...
[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 ; int nullPoint; for (int some = 0;some < 100;some++) { if...
[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. When I click on main.cpp to start coding, it says that it c...
[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 the letters from a file that is being scanned in. And if th...
[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 an array to shared memory, and use it again in the second p...
[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.