Beginners - October 2014 (Page 40)

something simple??
 
Am I using the Multidimensional array wrong? #include <iostream> #include <fstream> #include <string> #include <vector> #include <sstream> using na...
[7 replies] Last: Here we are: #include <iostream> #include <fstream> #include <strin... (by elite zero)
Project one - Sequencing numbers
 
Hi im a student currently attending a c++ programming class at Fairmont State University. My class and i are instructed to create a program that uses 5 numbers ...
[10 replies] Last: I talked to my teacher and he was impressed but the fibonaci sequence ... (by CrimsunwolfXIII)
by NUNU77
LineUp C++ what I have so far
 
Can any one help me its not reading my File A teacher has asked all her students to line up single file according to their first name. For example, in one c...
[no replies]
Please help im so lost and very new.
 
I need help writing a math tutor program that goes under these guidlines --------------------------------- When you run your Math Tutor program the output sho...
[1 reply] : I kind of cleaned your code up for you :) Let me know if you need anyt... (by coltehrman)
pass data from one class to another
 
How will i pass a string from one class to another. Here is a sample code #nclude "Reveiver" class Sender { public: void send(Receiver *rec) ...
[1 reply] : On the face of it, it seems like it should work (assuming you have get... (by Zhuge)
issue with functions
 
I am doing a project for school in which part of it is printing out array values. I call to my print_values function to cout the values and when i run it, it ...
[2 replies] Last: #include <iostream> #include <stdlib.h> using namespace std; float en... (by Logan S)
Random Grade Generator(while, for loops, if else if)
 
Hi. I am a beginner to c++, and am taking an introductory class. I was tasked with making a program that calculates random numbers for students in a class, and ...
[3 replies] Last: Thanks, i fixed the what MiiNiPaa pointed out and the numeric grade ca... (by jolive5)
Help me out please im havving issues.
 
Write your question here. Hey guys can you help me with this simple calculator I made #include <iostream> using namespace std; int main() { cout << "...
[1 reply] : x and y are both integers, so dividing them yields an integer. You'll ... (by Zhuge)
Help WIth program for class
 
Hello Everyone, I am very new to programming and have fell a bit behind in class. I am reading my book to try to catchup for the final on Wednesday. However, I ...
[3 replies] Last: Thank you. (by Beauzel)
How do I create an object inside another class?
 
Hey, I have only been programming for a couple of days and Im trying to do a text adventure game, the format Im using is awful but I think it will have to do fo...
[2 replies] Last: That is exactly what I have been looking for, but I couldnt find any i... (by TarikNeaj)
I need help here can someone be of assistance.
 
I am getting an error "59|undefined reference to `add_values()'|" #include <cstdlib> using namespace std; void display_menu (void); void add_va...
[4 replies] Last: Line 9 declares this function: void add_values (); and line 55 calls... (by dhayden)
void functions
 
I have an assignment where I need to use functions to make a program that lets you select two different guessing games. I tried putting each game in a void func...
[5 replies] Last: if (gameNumber = 1) playGame1(); if (gameNumber = 2) playGame2(); Yo... (by dhayden)
How to restart loop again?
 
I've made the code and all i need to do is have it restart after inputting y. The problem is that inputting y will stop the program instead of restarting. Any h...
[7 replies] Last: title: how to restart loop again? restarting means you started the ... (by closed account 1CfG1hU5)
Play Again
 
Hey, I'm a beginner at coding and I have to write a code for two guessing games, one where the user guesses and the other where the computer guesses the number....
[2 replies] Last: int main() { int gameNumber = 0 cin >> gameNumber; if(gameNumber==1) ... (by anup30)
by Setzer
Comparing a string to an int
 
Is is possible to compare a string to an int inside of a while loop? Essentially, I'm making an RPG. I want to allow the user to enter the names of their 4 char...
[1 reply] : You can use the length() member function to get the length of the stri... (by Peter87)
[b]Need help quickly please[/b]
 
The error is too few arguments to function in refrence to add_values() How do I fix that? Also how do you recall for example user_num to edit it or what woul...
[2 replies] Last: So what would I put as the argument for line 53 to get it to call up t... (by Magnes34)
Need help with pointers
 
I don't get why the address of 'a' and value of 'first.mLength' are different. Shouldn't they be equal from the way the class Rect is constructoed? //Keyw...
[2 replies] Last: I get it now. Thanks. (by avadhootp)
parseToNumbers by std::regex
 
Hello! My code must write numbers on the screen, but it dodn't do it #include <vector> #include <string> #include <iostream> #include <regex> void parseToN...
[2 replies] Last: Thank you! And sorry for my example above. It doesn't work: #includ... (by Observer)
Need Help with debugging
 
Hi! I have been doing c++ for 5 day and I have a problem I cant solve. So give it a go. #include <iostream> using namespace std; int AreaCube(int ...
[3 replies] Last: Thanks guys! Problem fixed. I guess it's a rookie mistake, but I am ne... (by IvanErlic2000)
Opening a website from C++
 
Hello How would I go to open a website (with a browser) in C++? Linux -only and without system-functions? Already tried a few things but none worked, th...
[6 replies] Last: ^It only doesn't file this header: #include <QDesktopServices> (by Nielyboyken)
October 2014 Pages: 1... 3839404142... 70
  Archived months: [sep2014] [nov2014]

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