Beginners - March 2014 (Page 28)

Input Validation Loop
 
when I try to compile I get this message. In function `int main(int, char**)': line 23 `Seats' undeclared (first use this function) Each undeclared identifi...
[3 replies] Last: It doesn't seem to be defined (at least in the code you've posted), so... (by wildblue)
fputs()
 
Why can't fputs() insert data in the file? //main.cpp phoneBook1->insertPersonInTheFileC(name.c_str(), surname.c_str(), street.c_str(), number.c_str(), fileP...
[no replies]
Accessing Vectors Inside Vectors
 
This might be a very silly question to some and forgive me if it is. I am to make a game of a sneaky hangman, where I will be using a dictionary of 172 thousand...
[7 replies] Last: NT3 and keskiverto you are amazing!!! Thank you so much! I love this ... (by gedringer92)
by venros
Resizing Array Function Error
 
Mind you the code it self is incomplete but im having problems with my function. #include <iostream> #include <string> using namespace std; ////Wri...
[9 replies] Last: tyvm for your help, it works fine up until you click change friends in... (by venros)
by rshoe
functions with pointers
 
I am working on functions with pointers that was assigned to me. I think I am missing something with the code. If anyone can help me I would appreciate it. t...
[2 replies] Last: Nathan: Thanks for your reply but taking the .h off does not make a d... (by rshoe)
Simple Menu (dejavu)
 
Ok so I'm creating a simple menu that allows access to other menus and also allows to go back a menu (to the main menu).. I've kept things simple for now, I wil...
[6 replies] Last: yeah if you wouldn't mind showing me that would be great. (by superdaz83)
by Gobbeh
I need help with this If or Else Program.
 
Hey Everybody :) If i change strings a1 and a2 to contain "\n" as in: string a1 = "Stoop\n" , a2 = "JAAAH!\n" ; Than the "else" statement whill be run in e...
[3 replies] Last: That is correct, but only if you want all the 'if' statements to lead ... (by TwilightSpectre)
Creating and naming new class instances with a for loop
 
So I am a little confused about how classes work still. I need to create several Player classes when passed in a list of player names I thought about looping...
[6 replies] Last: Let's start over. Blackjack(char *names , int numPlayers){ for(... (by LB)
Dynamic declaration concern
 
Hi, is this an unsafe way of being able to make a variable number of variables? I don't want to have to declare everything beforehand since there would be many ...
[9 replies] Last: No, you don't need that function at all. push_back resizes the vecto... (by LB)
by li7
setting a subclasses internals
 
Hi I have two header files TimeRepresentation.h and GlobalTime.h, which has a TimeRepresentation variable declared in the private section of GlobalTime.h. I was...
[5 replies] Last: You should call the member functions you took the time to create. If y... (by LB)
Validation Loop
 
This will compile and run, but after I enter tickets sold the Prompt close without displaying income generated. hello guys, this is what I'm working on. ...
[9 replies] Last: I ran it exactly like the diagram above, and these are the error messa... (by niludown)
by jf1963
programs for beginners
 
aside from following tutorials and the old standard "Hello World", what types of small programs are good for beginners to try? thanks
[12 replies] Last: [quote=jf1963]for now, i want to write business programs that use shar... (by LB)
Help me explain this code
 
ello guys, Could you explain me this code? Especially the part where the loop is. And im wondering what should you do if the user gives you bad entry and you...
[7 replies] Last: I think it's fine, other than line 32: http://www.cplusplus.com/forum/... (by LB)
by jf1963
very much beginner quesstion
 
im a bit confused on this double constant. its defined as a constant but then used in the program body as different values? i'm just not understanding it i gu...
[10 replies] Last: first, there is no return statement because i just copied the code fro... (by jf1963)
by Kuma97
May someone help me with my code?
 
Why this code doesnt work? #include <iostream> #include <string> #include <sstream> using namespace std; int main () { string mystr; int a; cout << "W...
[7 replies] Last: PD: else if works better than just if (by Kuma97)
How do I read SPECIFIC data from textfile
 
chisel 50 1.99 hammer 20 2.99 <---- actual textfile I want to read the data for hammer but I don't know how
[3 replies] Last: You have to read the data for the chisel first to know where it ends. ... (by LB)
menu-driven program help
 
hello, this problem has been stressing me out problem: Jason opened a coffee shop at the beach and sells coffee in three sizes; small(9oz) meduium (12oz) and l...
[1 reply] : Hey I fixed up your program for you and added all of the features that... (by Renthalkx97)
y/n while loop
 
I can't seem to get a y/n while loop to work no matter what I do. I am JUST starting, so please put it in simple terms.... //Calculates GCF and LCD fro...
[5 replies] Last: Thanks anyway, guys. I needed to change it to a do while loop, and cha... (by BloodyElegant)
Errrors with my c++ program, help?!
 
I am bashing my head against the wall because of my code. Basically I need to create a program that reads a file and prints out what the specification asks for...
[1 reply] : analyze.cpp: In function ‘int main()’: analyze.cpp:11:13:... (by LB)
by Alby94
STL C++11
 
What are the inserters "in place" of the STL ?
[1 reply] : They are missing, try boost: http://www.boost.org/doc/libs/1_55_0/doc/... (by LB)
March 2014 Pages: 1... 2627282930... 79
  Archived months: [feb2014] [apr2014]

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