General C++ Programming (Page 72)

by AceK
CODE TO FIND PRIME NUMBERS NOT WORKING
 
Hi there, the code below is suppose to output all the prime numbers between the values of startNum a...
[6 replies] Last: the code doen't work, The code works just fine. It's the algorith... (by cire)
by mary2
Need help with this pls!!!!! Cant figure it out
 
#include <iostream> #include <iomanip> #include <cstdlib> #include <cstring> #include <ctime> #incl...
[4 replies] Last: http://www.cplusplus.com/forum/articles/1295/ Please provide a better ... (by Zaita)
How to make a loop until user says to break
 
Hi there, I'm not very good in programming. All I know is what I took from forums... I'm makin...
[8 replies] Last: > I still think it's more complex, but if that's the way it should wor... (by JLBorges)
problem with gravity
 
im trying to make a program that simulates gravity as if your mouse pointer was a large object, and ...
[9 replies] Last: yay (by greenleaf800073)
by qingze
Problem with generate two txt file in one program
 
I try to write my data into two different files and i just use something like this ofstream myf...
[3 replies] Last: do you have #include <fstream>? you should also do myfile.open("pha... (by greenleaf800073)
Cant figure out how to let the user modify the counts.
 
After the data is in the array, prompt the user to modify the array by inputting a species name and ...
[3 replies] Last: Ok Then. I'd look at easier ways to write them: #include <map> #incl... (by Zaita)
a problem in the stack
 
#include <iostream> #include <string> #include <stack> using namespace std; stack<string> A; ...
[6 replies] Last: yes, i notice that, thanks for your advise. (by DANNY123)
Apparently, structures can't have pointers...
 
Can you guys spot what's wrong with my code? I've managed to single out in the program where exactly...
[7 replies] Last: You can use classes in C? No. C does not have classes. ne555 was ... (by Disch)
Why does it print twice the same thing?
 
Hi, I haven't, am not and do not plan on learning C++, all I know is from forums or from a book I r...
[1 reply] : Add std::cin.ignore(); after line 55. I can see other things you pr... (by fg109)
Dynamically allocated arrays
 
I have a program that allows the user to enter a specific number of test scores. Based on these test...
[1 reply] : for (int i = 0; i >= numScores; i++) vs for (int i = 0; i < numSc... (by fg109)
Problem displaying correct HTML table.
 
Below is a link to my code. The problem I am having mostly is concerned with the void function at th...
[no replies]
Best way to sort an array
 
This is the best idea og algorithm for sorting an array that I could come up with. But I read on in...
[9 replies] Last: Ok, I'll use if else instead of template... (by zoran404)
Outputting Randomized Arrays
 
For an assignment I am having a user enter the name of a file that contains "Song Data" the file is ...
[1 reply] : I don't know what 'chosen' and 'not chosen' mean. But you can use the ... (by eklavya sharma 2)
classes + constructors
 
#include<iostream> using namespace std; class polygon{ protected: int x,y; public: pol...
[6 replies] Last: @MiiNiPaa No, they don't, in sense of using it as their constructor.... (by vlad from moscow)
Test results program
 
Hi all, In a program that allows a user to enter a specified number of test scores, how would I c...
[3 replies] Last: @codenewb54 I'm so confused. I don't know how to create the function.... (by vlad from moscow)
How to append strings to the front of other strings?
 
I am programming a translator, and I have it so that it detects words with spaces both in front of a...
[1 reply] : yourstring = " " + yourstring + " "; (by Disch)
Help Changing Array Of Characters To A String Array
 
I have an array titled: char TypeOfSong where the array size is 15. I am reading data from a file i...
[5 replies] Last: It will contain pairs 'C', std::string( "Country" ) 'D'. std::string... (by vlad from moscow)
Overload << Operator with Input Parameter
 
Hi, Here is what I am looking to do: // class constructor as log file input Logger log(file_...
[4 replies] Last: Again, thank you very very much for the help. It does work now as memb... (by vezinadj1)
Problem with comparing strings
 
Hello, i have a problem with comparing 2strings... I made a database program using files. I have a ...
[3 replies] Last: @En3rgy16 Please, enter any book on C++ for beginners and investiga... (by vlad from moscow)
Programming a USB A male to A male cable
 
I would like to try out programming a file transfer program by connecting 2 computers using an A mal...
[1 reply] : Bump. Nobody? (by lazyCrab)
Pages: 1... 7071727374... 84
  Archived months: [mar2013]

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