
please wait
by nemimi
Grade Book Using Vectors
|
I'm still in my first C++ class and I'm stuck on my current homework. I have to program a simple grade book using vectors to store the student name & grades. S... |
Apr 13, 2015 at 5:12pm
[1 reply] : The first thing that comes to mind when connecting the two is to use a... (by tscott8706)
|
by Soyabean
Do while loop not working, please help
|
Sorry i am a complete noob i cannot seem to get the do-while loop to keep running until it meets the answer of valueGuessed == RandomNumber. Im trying to genera... |
Apr 13, 2015 at 4:47pm
[3 replies] Last: Firstly, please edit your post so all of your code is between [co de... (by TarikNeaj)
|
by AmmmG 01
Question about Nested for Loop; won't take long ;)
|
Hi I need to get this output in a nested for loop (C++): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Thank you very much. |
Apr 13, 2015 at 4:40pm
[11 replies] Last: You forgot code tags. Should be : cout<<"Thank you guys"<<endl; If... (by TarikNeaj)
|
by ebucna
Switch
|
I there a limit to cases in a switch? my number 10 does nothing, all other numbers work perfectly fine. Please help... switch (treatmentChoice){ ... |
Apr 13, 2015 at 3:26pm
[15 replies] Last: I have arrays from my teachers that have number of components declared... (by ebucna)
|
by davidm
files
|
Write your question here. #include <iostream> #include <fstream> using namespace std; bool searchdig(int x,int number) { bool flag; while(x!=0) ... |
Apr 13, 2015 at 2:58pm
[7 replies] Last: That is not how I meant for you to use the array. #include <iostream... (by fg109)
|
by dramirez8
Looping a switch case menu
|
First off I'm sorry if this has already been asked but I couldn't find the topic when I searched for it. I'm new to programming and new to these forums and I... |
Apr 13, 2015 at 2:01pm
[3 replies] Last: Where is the for or while loop? I don't see one in your code. (by tscott8706)
|
by pik
small linked list game keeps returning null and crashes
|
Hello..I have just started learning about linked lists and I am trying to create a small game with a few nodes. I have created 7 nodes and I am trying to create... |
Apr 13, 2015 at 1:50pm
[1 reply] : Check lines 75 and 76. (by fg109)
|
by ydookz
(if statements not working) Finds equation of two points but is failing to check if a third pt lies on line
|
Hey my program works fine when finding the equation of the line the first 2 points lie one, but prints nothing to the screen after the third point is entered. I... |
Apr 13, 2015 at 1:37pm
[3 replies] Last: Not stupid at all. Typos are part of life ;) (by Texan40)
|
by SoloPopo
Can't find the error? (short code)
|
This is a simple code that demonstrates the use of a user made "round" function, but i'm running into a problem with the type cast in this program. I've written... |
Apr 13, 2015 at 1:30pm
[6 replies] Last: @SoloPopo: Because whole numbers should be stored in integers, not flo... (by LB)
|
by VainCape
Switch Default Statement
|
(First post! :] ) Hello. Im trying to make a basic calculator with four operators only. I want the program to state an error if the user doesnt enter one of th... |
Apr 13, 2015 at 12:45pm
[2 replies] Last: or you could move your cout << "\nAnswer is: " << answer << endl; a... (by shadder)
|
by koopey
STL map beginner
|
i need to build a simple program to add name and email address using STL map. adding new entry and listing all entries work fine but removing and changing entri... |
Apr 13, 2015 at 12:38pm
[5 replies] Last: you need to actually pass the object sorry that's what i meant. jus... (by koopey)
|
by Ch1156
How can i use getters and setters with math? (1,2,3,4)
|
I have a function in a game i'm working on that is the shop function and I need to do some math for calculating a total and subtracting money from the players a... |
Apr 13, 2015 at 11:32am
[77 replies] Last: Ok, So you need to tell the compiler what the enum Size is - it's n... (by TheIdeasMan)
|
by xXBurnt
Some type of container for string int long long
|
Hello, I am currently doing a project for school and having a great deal of frustration with it. I am trying to find a way to make it possible so that I have... |
Apr 13, 2015 at 10:05am
[2 replies] Last: Thank you so very much! Didn't even think to do a struct. So far it's ... (by xXBurnt)
|
by MRQ1
Is c++ primer really for beginners?
|
I have been reading c++ primer and the things are flowing over my head the book seems to be very difficult as compared to Alex Allain's Jumping into C++ and C++... |
Apr 13, 2015 at 9:28am
[14 replies] Last: >the books I like are said to be bad an example: http://www.cplusplus... (by anup30)
|
Help with arrays |
Hello all, firstly thanks for any attempts to help me solve my problems, I appreciate any advice! Currently I have a task at hand which I am really strugglin... |
Apr 13, 2015 at 9:21am
[4 replies] Last: ooo Thanks for the advice... We have started the classes but i'm just ... (by helloworld1234)
|
by aseemgoyal
how to define iterators for elements of a class
|
let's say i have the following code : // this code is for implementing vector in C++ template <class T> class Vector { public: Vector(); ~Vector()... |
Apr 13, 2015 at 6:52am
[5 replies] Last: @Smac89: I suggested that and he specifically requested information fo... (by LB)
|
by brosephius
connect four style game (1,2)
|
Alright, I have to make a code for a connect four type game. The twist is that It's connect any, meaning I need command line arguments that set the dimensions t... |
Apr 13, 2015 at 6:47am
[25 replies] Last: You may want to experiment with a tic-tac-toe game first to understand... (by LB)
|
by SoloPopo
Where is the error? (driving me nuts!)
|
My compiler (VisualStudio) is telling me that there is an error on the 40th line. Specifically, it is telling me that a semi-colon was expected. I know that all... |
Apr 13, 2015 at 6:41am
[3 replies] Last: This topic is continued at http://www.cplusplus.com/forum/beginner/162... (by LB)
|
by as4mvp
PLEASE NEED HELP: Converting 2d array into a 1d array (1,2)
|
Create a 2D array with 20 rows and 20 columns. Populate the array row-by-row with random real numbers (not integers) that range in value from 0 to 100. Copy th... |
Apr 13, 2015 at 5:00am
[24 replies] Last: once again thanks LB, mgoetschius, and fg I appreciate all of your hel... (by as4mvp)
|
by Galvanized
Converting bases
|
Hello, I have researched the areas of the forums as much as I can to learn information on my topic. My project is I need to make a program where I input a numbe... |
Apr 13, 2015 at 4:49am
[6 replies] Last: > into base 4 and 5 into two different bases ? (by anup30)
|