Beginners - February 2011 (Page 26)

Simple question?
 
Don't know why this code doesn't work: #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { char val =...
[4 replies] Last: No problem, don't forget the awesome firedraco though =) (by ultifinitus)
Displaying Variables in the End / Arithmetic
 
How do I get to display the variables (many of them which will have arithmetic done on them and have yet to write the code on that) at the end so the user could...
[10 replies] Last: So how can I get the rest of the data items to show in the beginning s... (by davidrca)
Code::Blocks resource error
 
While making a simple program, I decided to add version info, but when I compile the program, I get this error message in the resource file: error: expect...
[no replies]
what is & means?
 
i am working on overloading an operator and i see void operator = (const person &right) Person is the class, but what is "&" represent? what does it d...
[3 replies] Last: Basically, you are passing a reference to the cell where the given arg... (by closed account zb0S216C)
what's the output?
 
#include <iostream> using namespace std; class Funny { private: double ax; double bx; double cx; public: void setData (double a, double b, doub...
[1 reply] : i want to know why joke.getvalue(3) will have an output, becuase tech... (by Moschops)
by CJ13
cin.getline skipping first word in string?
 
Hi, I'm trying to write a program which prints a file's contents for the user, then allows the user to write a paragraph which then replaces the file's contents...
[3 replies] Last: You could add a EOF marker( http://www.cplusplus.com/reference/iostrea... (by closed account zb0S216C)
what is the output?
 
#include <iostream> using namespace std; class Funny { private: double ax; double bx; double cx; public: void setData (double a, double b, do...
[5 replies] Last: i edit my post with a new question can you asnwer it for me?i have the... (by jimmy5023)
Infinite Loop in Counting Function
 
I'm writing a program for class. He wants us to count the number of instances of each lowercase and uppercase letter in a file, store the count of each letter i...
[8 replies] Last: Except that the assignment tells me not to do that... it tells me to s... (by packetpirate)
what is this means?
 
width = ((w >=0) ? w : 0); length = ((l>=0) ? l:0); can anyone translate to eng to me? i don't get what does that code means? the side note of the code ...
[2 replies] Last: It's called a Ternary Operator. http://en.wikipedia.org/wiki/Ternary_... (by closed account zb0S216C)
a header file & cpp file
 
why does visual studio create a header file and a .cpp file when you add a new class?
[4 replies] Last: Zhuge has it right. Classes are split into two files, a .h** header fo... (by Computergeek01)
advice please!!! :D
 
hi i am having some trouble with my program. i am just very stuck. so far what is happening is i have a txt file with a random polynomial in it (for example: 2x...
[4 replies] Last: What kind of trouble could you be having with pow? Anyway, to calcula... (by hamsterman)
OOP- Word Jumble & Scoring
 
Hey guys, new to the forum. I am working on an assignment for class for the Word Jumble game. I have already added the scoring system. I understand the other ...
[3 replies] Last: - Line 237 - Line 243 is just confusing to look at. Are you trying to ... (by Computergeek01)
Starting To Program With C
 
#include <stdio.h> #include <memory.h> struct f { int *K; }; void f_Constructor( int Init, f *This ) // Error here. { if( This == NULL ) ...
[2 replies] Last: It worked :) Thanks, Zhuge. (by closed account zb0S216C)
Brand new to c++, problems with guessing game
 
So I'm a beginner to c++ (brand new) and to programming in general. I'm trying to write a basic program that will guess a number I have in mind while keeping tr...
[3 replies] Last: Please use tags. (by packetpirate)
Over Loaded Function Trouble
 
Intro(problem below): First off hello everyone! I'm very new to programing and I am trying to get C++ down so I can start using SDL and such to make 2d games a...
[3 replies] Last: Now you have backslashes instead of forward slashes ;^) (by Bazzy)
return reference from function
 
Hy, referring to this code #include <vector> #include <iostream> using namespace std; typedef vector<int> intVector; class tmpClass { public: ...
[2 replies] Last: Thanks! (by dziadgba)
How to calculate the grading policy with struct?
 
I am doing a lab practice and I'm stucked in some part... below is my question Write a grading program for a class with the following grading policies: a....
[6 replies] Last: Ok, let's take a look at how you declared your functions: void c... (by sadavied)
Wrong size of Derived Class..?
 
Thank you so much.
[1 reply] : When posting code, use code tags. Don't post a bunch of irrelevant co... (by hamsterman)
what after c++ tutorials ?
 
I want to know what after finishing with the c++ tutorials on this site ? Am I expected to be able to write simple games like tic-tac-toe? or should I build o...
[1 reply] : You could find yourself a slightly more advanced book, but I think you... (by hamsterman)
by zbub
cin won't respond 2 entr
 
i've written a couple of XTREMELY simple programs, like addin 2 ints, comparin 2 ints n... the prompt comes on n i type a number but no matter how many times i...
[3 replies] Last: it's a sample code off deitel, so i'm pretty sure, there's nothin wron... (by zbub)
February 2011 Pages: 1... 2425262728... 43
  Archived months: [jan2011] [mar2011]

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