Beginners - December 2014 (Page 42)

"Error: class not defined"
 
Hello! I am trying to learn C++ but I've hit a bit of a brick wall: http://i.imgur.com/xliNACa.png ...
[4 replies] Last: why do I still need to #include <string> seperatly? Because you shoul... (by MiiNiPaa)
Help with understanding
 
There's this line of code that I don't understand: int a=0, b=2, c=4; if (a = c-b) cout<< ...
[5 replies] Last: First, a isn't equal to c-b, so why would it cout b? You seemed to ... (by wildblue)
GNU GCC: "syntax error"
 
Hello, I am working on learning C++ so please forgive me if this is a silly error as I know very lit...
[no replies]
Unsorted Array with functions erroring
 
Okay, I'm trying to figure out what's going wrong with this program. I thought I figured out the pro...
[7 replies] Last: If modify is going to return the location, the return type can't be vo... (by wildblue)
by vxk
position in statement
 
The following 2 statements are same right? const std::string& name() const; std::string c...
[1 reply] : Yes. they are same. (by MiiNiPaa)
by elch
HELP!! CHtmlView (vc 10) crahes on destroy
 
completlely desesperated, because I dont find the error. Need some advice. What I try: Derive a cl...
[no replies]
Trouble With Chars
 
I have been having logic errors when trying to change a char from a number to an 'x' or 'o' (not num...
[7 replies] Last: Tnaks guys for helping and responding to my questions so quickly! Ill ... (by dodossssssssss)
Help understanding arrays.
 
How does a multidimensional array work? If I want to create a 2D array, does the computer view it? D...
[1 reply] : Let's say you had an array named ArrayName. You then declare the size ... (by RandomPersonWorking)
Equation loads as a Pointer (Function)
 
Hi! I'm trying to load this program I wrote which includes switch-case menu, a function and an if el...
[1 reply] : cout << fluidflow << endl; If you mean to print out the result of f... (by wildblue)
main fucntion
 
why we should use only integer or void for main function why we can't use double or float or other ...
[7 replies] Last: Thank u both of u ! and this conversation has removed everything . No... (by Muhammad Anim)
Efficiency issue
 
Hi av been workin on this http://www.cplusplus.com/forum/beginner/149886/ program from yesterday and...
[6 replies] Last: It worked yeah, hurray! yeaaaa. i actually increased the count in main... (by closed account SECMoG1T)
Factorial Problem [Beginner]
 
Here's the problem: everything works FINE, until you type in 13 or more. Please explain it to me :/ ...
[5 replies] Last: #include <iostream> #include <string> long int factor( int num ); l... (by wscjr1)
by rayb20
class help
 
What is the c++ keyword to use for a class object to access itself? I can not think of it and sea...
[1 reply] : do you mean this ? http://en.cppreference.com/w/cpp/language/this... (by wildblue)
Loop makes switch's default option appear after any chosen case.
 
So I'm working on a c project. I had to make a loop that prompts the user to choose between 4 option...
[no replies]
by joshco
function question?
 
I am looking at reviewing some code and confused as how the sample code works below without using "p...
[7 replies] Last: The top code should have been: void duplicate (int a, int b, int c) {... (by joshco)
Sine Cosine Function
 
Programmers i need your help. Do you know how to code sine and cosine function without using cmath l...
[2 replies] Last: it's way too complicated. tnx anyway. it helped. (by newton123)
multiple occurrence issue
 
this is part of the program. i keep getting the same index position for numbers that occur more than...
[12 replies] Last: how do i do this? any thoughts? (by LATCH100)
by wuubb
program skipping over user input?
 
G'day all, I am so close to finishing this program of games, but I'm running into some issues whi...
[no replies]
C++ Hangman Game
 
hello, I am trying to write code that will accept either a single letter guess for a hangman game...
[2 replies] Last: yea that looks cool! thanks man (by ceps1195)
by pbfj22
File Input Help Please!
 
I need this program to be able to read a file with 3 items on a line, e.g. "ATLANTICCITY 10123 12343...
[3 replies] Last: , I get 2 numbers with a space between. You got: empty string (i.e... (by MiiNiPaa)
December 2014 Pages: 1... 4041424344... 55
  Archived months: [nov2014] [jan2015]

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