General C++ Programming - March 2012 (Page 34)

Passing an Enum with a function to control a switch
 
Can anyone look at this and help me with what is wrong. This code works, sort of- it gives...
[5 replies] Last: wow: I have been staring at this thing for over 10 hours. Thank you fo... (by closed account NU9GNwbp)
Issue with simple bool function
 
Hey, I'm sure that given enough time I'll simply find the very stupid mistake I've made, but I was wondering if anyone could tell me where I'm screwing up on th...
[2 replies] Last: Haha, well I edited my hasParentheses function anyway so that's all wo... (by jollygnome123)
finding output
 
#include<iostream.h> #include<stdlib.h> void main() { randomize(); char city ={ "DEL","CHN","KOL","BOM","BNG"}; int fly; { fly=random(2)+1; cout<<city...
[1 reply] : :-) (by therockon7throw)
again knight's tour
 
hi guys, i've tried to accomplete knight's tour problem by myself. In fact this is very simple version of original problem. All i need to do is to make the knig...
[5 replies] Last: @TJbla2e Thanks for the offer. I may just take you up on it at a late... (by whitenite1)
Help with loop..
 
Could you tell me what im doing wrong here. void CCrypt::Encrypt(unsigned char* buffer, unsigned size ) { // check data correctness if ( !buffer ) return...
[4 replies] Last: Hi What are doing , or what do you want to do ? do you expect your co... (by therockon7throw)
Need help finishing program please and thank you!
 
I need help filling in some blanks to my program. I have indicated each blank I need help with with a DO_#. Thank you in advance! //--------------------...
[6 replies] Last: Oooops ! I didn't read it completely, so it a rotating , and not a p... (by therockon7throw)
Name and File Search and Display trouble
 
i am having some trouble displaying information from the file in this program when i run the program and select 1 to display all of the students information it...
[7 replies] Last: Hi change your print method into const , like that way virtual vo... (by therockon7throw)
need help displaying in a ticket sales program c++
 
Hi I have written a ticket sales program that you gets you a discount for every ten tickets you sell. everthing is well except I need help displaying the number...
[1 reply] : same in http://www.cplusplus.com/forum/beginner/64122/ (by viliml)
Read all values from CSV (0's included)
 
Like it says in the title bar, I want to know if the numbers being loaded into the array are all being saved including the 0's. The file will load something lik...
[5 replies] Last: you can always use stringstream and then put the value in the integer ... (by bluecoder)
string detect
 
Hello I have a string code inputted and when the input is a 'A' the program has to output 1111 as an double. What do i wrong to make this work? #in...
[2 replies] Last: why use std:: if you define using namespace std; ?... (by viliml)
hi to all. I am new to programming. How can i download books for c++ from this suite!
 
how can i download free books from this suite!
[2 replies] Last: Here is the tutorial in pdf format: http://www.cplusplus.com/files/tu... (by roberts)
Displaying evrything at once without flicker
 
My application requires that I display everything fast enough that there appears to be no flicker. Let me put it like this: I have a char array of 100x100,an...
[4 replies] Last: I looked at the Liberal Crime Squad source code, and I learned they us... (by FalterrisAunvre)
Passing matrix to function
 
Hello everyone, I'm working on a simple electrical circuit simulator and at some point it is necessary to calculate the inverse of some matrix in which its s...
[5 replies] Last: I may not fully understand the problem. I work with well defined matri... (by roberts)
by smccd
Classic console development kits, samples (Nintendo, Sega, Atari, Neo Geo, etc.)
 
Hello, Over the past year, I have been gathering dev kits for classic consoles from around the net, fixing them up to get them in a working state, and then w...
[no replies]
C vs C++
 
Hello, I discussed with several people about the performance between C and C++. Most of the people mean that C is more high-performance than C++. I made s...
[8 replies] Last: and keep it mind C is the father of C++ :-) So if you try to compare t... (by therockon7throw)
Dual core programming?
 
Hi i have a permutation program that i think would run faster if i used the 2 cores on my cpu, but after having a look around it seems confusing to grasp the id...
[4 replies] Last: What part of the code do you think would be fit for parallel execution... (by Gaminic)
by Baso
Difference between C & C++
 
Hi there I just wanna ask a few questions, Is there any thing in C that is not in C++? If the answer is no. Is there any thing that can be done by c ca...
[4 replies] Last: Is there any thing that can be done by c can't be done by C++? The a... (by Peter87)
Tic Tac Toe AI, problems.
 
I'm trying to get a simple defensive AI for Tic Tac Toe to work, the problem is that even though it shouldn't be happening, my CPU AI function is escaping my if...
[1 reply] : Well, thanks for the help everyone, although I think I discovered the ... (by Zephilinox)
joining array elements of same value and find the count
 
Hello, I want to enter heights of the students like 175, 167, 160, 164, 183, 187, 188, 179, 176, 175, 169, 175, 176, 178, 165, 160, 173, 165, 187, 178 ...
[3 replies] Last: Hi If you are a beginner than try an easier algorithm 1- Copy the i... (by therockon7throw)
by henk13
All 5 card combinations of 7 cards
 
Hi, I need to find a loop for the following combinations : 0 1 2 3 4 0 1 2 3 5 0 1 2 3 6 0 1 2 4 5 0 1 2 4 6 0 1 2 5 6 0 1 3 4 5 0 1 3 4 6 0 1 3 5 6 0 1 4 5 ...
[no replies]
March 2012 Pages: 1... 3233343536... 49
  Archived months: [feb2012] [apr2012]

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