General C++ Programming (Page 63)

How to shuffle a vector (cards)
 
I am trying to write a sub-program that takes a deck of 52 cards and will shuffle it up using this a...
[1 reply] : Problem solved: http://www.cplusplus.com/forum/beginner/125051/ (by MiiNiPaa)
What is wrong in these classes?
 
Please help me finding the error. Its driving me crazy! It gives an error in account.cpp at setName ...
[3 replies] Last: Well, it is just like that: function expects two strings, you gave it ... (by MiiNiPaa)
by rengaf
Problem with inheritance
 
Dear all, could anybody tell me what is wrong with the attached code? It gives a Bus Error a...
[1 reply] : You can't (And really shouldn't!) do that. A does not derive from C. ... (by EssGeEich)
Underlining wrong word in text file
 
Hello Everyone, So I'm supposed to create a spellcheck program which reads the input file from a ...
[no replies]
why heap data structure?
 
6 / \ 17 14 ...
[3 replies] Last: Thanks @Minipaa @ne555 very precise and clear answer..thanks (by venkatacplpl)
by dkaip
Initialize a vector gives me error..
 
Initialize the vector gives me error.. const vector<wxString>VI{wxT("ι"),wxT("η"),wxT("ει...
[no replies]
by edo
function substr() help
 
c++.....in my program i have 3 string-s (string houses,string ink,string buildings)and i must add fu...
[2 replies] Last: thanks man (Y) (by edo)
Related to random numbers
 
// this program gives random number output #include <iostream> #include <cstdlib> // contains func...
[1 reply] : rand() doesn't actually give you a random number. It gives you a pse... (by Disch)
Not Sure where functions are segfaulting.
 
For an assignment I have to code up 6 functions that each do a different task. In two of my function...
[3 replies] Last: It's C. I set ptr->length to 0 and it 's no longer crashing. (by Thinker67)
Please help, this progam not calculate pennies correctly at all
 
he is the problem , I need to calculate a program that give change due, and show in How many Dollars...
[3 replies] Last: @Yueeng (43) , i tried what you said, and it wont work, it gives compl... (by jakevamp)
reading text from file
 
i have a txt file, it has series like: 1 a 2 b . . . 12 l * . . . something ...
[4 replies] Last: i have done this...but it is still not stopping... // readin.cpp : D... (by praneshiitm)
How to wrap numbers between 0 and 9
 
Hi, I am writing an encryption program and I want there to be only numbers and letters in the encryp...
[3 replies] Last: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical... (by ne555)
<random> is useless?
 
This header is trash. This only return the same numbers, everytime that I run. What is wrong? How ca...
[16 replies] Last: Still you can exhaust entropy pool even with calls to urandom impairin... (by MiiNiPaa)
by kimi86
Regarding Pure virtual functions
 
I have just finished reading about pure virtual functions and I have a question If we have a clas...
[7 replies] Last: got it now finally.. cant thank u all enough.. (by kimi86)
n Terms...
 
Write a program to print out the first n terms and sum of the first n terms of the following series....
[3 replies] Last: Why should I do your work for you? (by Zhuge)
wrong output by using argc and argv argumnets
 
Hello friends I have written a program to calculate delay between nodes using link. Code: //sim...
[1 reply] : print out argv and argv (or read the documentation on the main funct... (by Cubbi)
Using "while loop" for factorial
 
I need to write a complete program using "While Loop" to calculate 1! to 12! using just "int" variab...
[2 replies] Last: #include <iostream> #include <iomanip> int main() { const int MI... (by JLBorges)
infinite loops from input validation.
 
First off let me apologize for any misconceptions I may have or mistakes I may be making. I am new ...
[2 replies] Last: Thanks for the help, worked perfectly. (by Jloc707)
Permutation
 
Hey guys messing around with a stat calculator and Im having an issue or how to approach my permutat...
[2 replies] Last: If you're going to do this the simple way, which is compute N! and com... (by Yueeng)
Debugging the classes
 
I am making a bank account program using classes. I have defined the classes so far. Just want to kn...
[1 reply] : Well, the return statements in the void functions are unnecessary. Wh... (by Peter87)
Pages: 1... 61626364
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.