Beginners - September 2012 (Page 31)

Saving in console
 
Hi guys, Have a question I have never seen addressed in any of the beginer books I have read. I am working on a console text based RPG, an was wondering if it'...
[3 replies] Last: If you're only interested in saving output/input that appears on your ... (by ToniAz)
by gerfy1
Freelance Jobs?
 
I know the basics of c++ ( functions, classes, if else statements, ect.) do you think I could do freelance jobs or do I need to learn a lot more?
[2 replies] Last: You need to learn more, but your more than welcome to search vworker h... (by naraku9333)
by sarip
Very basic pizza ordering program
 
Im having trouble calculating the total amount due. Here's my code: #include <iostream> using std::cout; using std::endl; using std::cin; using std::st...
[2 replies] Last: Thanks for the help! (by sarip)
Help me and I'll make you rich.
 
My idea: int world ={ {1,1,1,1,1}, {1,0,0,F,1}, {1,M,0,0,1}, {1,0,0,P,1}, {1,1,1,1,...
[3 replies] Last: That was easy. Thanks. (by WaVyPaRtIcLe)
by clodi
cin.clear() help?
 
Can anyone help me understanding why this cin-check does not work? double get_dbl() { double dbl = 0; while (!(cin>>dbl)) { ...
[3 replies] Last: int value=0; cout<<"enter your play "; while (!(cin>>v... (by clodi)
Error with reversing an array
 
I have a function that is supposed to reverse an array, but I get the same output back that went in. List going in is populated 1, 2,...18, 19, 20 and is suppo...
[2 replies] Last: Thanks so much! It works perfectly! (by apeachaday)
by Tate
Output not calculating correctly for last "else" statement in program
 
Once again, my C++ program is compiling correctly, but the last else statement is not calculating correctly. For 11 or more registrants, the fee per person is $...
[2 replies] Last: I have a tendency to OVER-THINK things... Arrrggghhh! Thanks so much ... (by Tate)
i am a newbie to c++
 
#include <iostream> using namespace std; using std::cout; using std::endl; int space(int& mass); // Function int main(void) { int velocity; ...
[4 replies] Last: Are you going to answer? (by closed account N36fSL3A)
Return string copy using pointers?
 
Hello, the exercise in my book is very clear, write a function that returns the copy of a certain string using pointers. I wrote the function, but I don't know ...
[2 replies] Last: You need a function prototype @line 5/6: char* strcpy(char *s); Or ... (by Lowest0ne)
by clodi
The old story of the emperor and chess..
 
int i=1; int grains=0; cout<<"enter the grains: "; while (cin>>grains) {for (double a=1;a<=grains;a=a*2) i++; cout<<"\nsqua...
[9 replies] Last: oook. Now I get it. I still need to find anoher solution to make this ... (by clodi)
trying to simulate a buffer and producer
 
I'm trying my hardest to simulate a Buffer and producer and I did it with if statements, well the loop is acting funny it prints out numbers out of order, I wan...
[1 reply] : I have no idea what you think a "buffer and producer" are, but that's ... (by cire)
by EZX
TOTAL beginner need help with task!
 
I need some serious help was sick for 3 weeks and missed university and now need to somehow figure this task out Make a program which determines users choose...
[5 replies] Last: its done thanks again! (by EZX)
SDL file not compiling
 
Hi guys i am trying to learn SDL and im following Tutorials. But i can never get the sample code to compile. Now i dont know if its something to do with the way...
[1 reply] : Replace SDL_BitSurface to SDL_BlitSurface on line 66 (by eraggo)
Multi Dimensional Run-Time Check Failure #3 - The variable 'testarray' is being used without being initialized
 
I'm trying to learn how to work with Multi Dimensional Arrays (As well as all of C++ of course) but everytime I do anything with them, they will always have som...
[2 replies] Last: Thank you!! It solved the prob! (by bigbadbear9885)
by se123
tip calculator
 
I was wondering if someone could point me in the right direction on how to make a tip calculator. I am supposed to make one using the choice of "fair service=15...
[5 replies] Last: Thank you so much for your help. You guys are great. I will absolutely... (by se123)
by Tate
Output not displaying correctly for some "if else" statements calculating BMI (body weight category)
 
Hello, My C++ program is compiling correctly and providing the correct output for the first two computations (Test Cases #1 & #2), but in computations 3 and ...
[7 replies] Last: Oh, I see! Guess I was over-thinking the problem.... Thank you! (by Tate)
Error with custom swap function
 
I am supposed to build my own swap function for my class. It runs, but it doesn't produce the correct output. I would greatly appreciate any help or advice on...
[4 replies] Last: I figured it out. It was changing the variable, but when it left the ... (by apeachaday)
Hide program from task manger
 
Hello everybody I am still working on my personal program and now I need more help. I made it so you can not exit any way except task manger. I know there is ...
[4 replies] Last: I still need help! (by Forseth11)
Very simple reading csv to 4 arrays
 
I need to read a csv file into 4 arrays or vectors. With each array containing a column from the file. It's a very simple file. There is just the content itself...
[3 replies] Last: Can someone walk me through the best steps to take? (by curiosity)
Three level hierarchies of classes, polymorphic and virtual functions
 
So I have this challenge question I am working on, and I am completely lost. How would you solve this? __ Design and Develop a program with three level hi...
[1 reply] : You shouldn't inherit from `person'. Think what will happen with the t... (by ne555)
September 2012 Pages: 1... 2930313233... 62
  Archived months: [aug2012] [oct2012]

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