Beginners - April 2012 (Page 40)

Help with if statements
 
I'm kinda new at C++ programing and having trouble with this program. #include <iostream> using namespace std; void FirstThrow(int throwOne); void Secon...
[3 replies] Last: Thank you both! (by BadJuiceBox)
Guess my number game problem
 
Hello, I tried making a guess my number game, but inverted, by having the user input a number and the computer trying to guess it. Here is the source code. /...
[2 replies] Last: #include <iosteam> Typo. int myNumber,; You had an extra comma in... (by long double main)
I need help getting started.
 
Hey, so I'm completely lost on this question, or even what is being asked of me. The book gives little or posibly no ensite as to how to begin this assignment. ...
[2 replies] Last: I appreciate your response very much. However, I'm very new to program... (by student1991)
C++ arrays its somethiing really simple i know ubt i cant
 
figure it out... //glenda hayes //lab 7 #include <iostream> using namespace std; int main() { const int OuterTemp=20; const int InnerTemp=20;//t...
[13 replies] Last: it worked thanks.. lol wow i can't belive i didnt' try that.. (by Glenda Hayes)
Using * return types (pointers)
 
I'm looking to know the intricate or definitive details on when to use pointers as return types or just the actual type, and when to use reference or pointers a...
[3 replies] Last: clanmjc, my post has undergone massive construction. Please let me kno... (by LB)
Help with bitcoin Mining calculator?
 
Every time I try to run it I set it for like 200 mh/s and for one day. tIt says my profit is like ten dollars... There is now way that can be correct, but I thi...
[no replies]
Thread (not pthread nor boost) tutorial & reference ?
 
Hi, It is two hours I am browsing the web looking for a tutorial and a reference guide to C++11 threads. I can only find some for pthreads and boost threads. ...
[4 replies] Last: Thanks Athar (by lalebarde)
C++ with out fear
 
C++ with out fear is the book i am using to try and learn C++ but some of the exercises are just making me go ummm wtf Do you think i will come to understand ...
[3 replies] Last: www.thenewboston.org this man is a god to me (by Need4Sleep)
Read File into Map
 
I have to complete the following problem: Suppose that a file contains the numbers and prices of various products. Each product number is given on a line b...
[1 reply] : First read a line from the file with file >> number >> price; Then ... (by hamsterman)
by mkb84
getline function
 
im trying to read from a file into a structure and the names of the items has spaces i can very easily put underscores between the words and just use >> but ...
[3 replies] Last: Actually: while( getline(infile, line) ) is good if you are checkin... (by Stewbond)
by digrev
a basic output
 
could you please correct me what is wrong in this code #include <iostream> #include<conio.h> using namespace std; class degeral{ int k...
[5 replies] Last: thank you friends (by digrev)
Every other word (1,2)
 
Im making a program to output a sentence where every other word is an asterik like this: The dog is brown: would be The *** is ****. However my current code do...
[21 replies] Last: ask user to input a sentence create a boolean variable for tracking ... (by LB)
Problem with code?
 
Hello, I tried to make a program that would ask for 3 values (or scores), and then make an average of them,but it wont work and I can't seem to find what is wro...
[4 replies] Last: Fixed the code! Keep in mind I started coding yesterday night! //Ex... (by GarciaBackhoff)
Code returning 0? help!
 
While writing this code and moving it into a new project, when i run it all i get is a 0, nothing else. Heres the code: #include <iostream> #include <sstream> ...
[14 replies] Last: (can i join?) (by chipp)
how to put asterisk for password type variables
 
as stated in the title #include <iostream> #include <ctime> #include <cstdlib> #include <string> using namespace std; int main() { cout << "\tWe...
[4 replies] Last: WIN32's EDIT class contains this exact feature. It can be enabled qui... (by Stewbond)
Data change varification
 
Hi, I have created a class that gets some data as an input and uses this to do some calculations. Since the data should not be changed within the class it is...
[4 replies] Last: @JLBorges That does excellently what I was looking for. Great help! T... (by benbehr)
What exactly is #DEFINE?
 
I see code all the time that has #DEFINE in it... but there's no type (i.e. integer, double, etc). What exactly is going on?
[3 replies] Last: Thank you! That article was great. (by NerdTastic)
by JP3
Friend Function - Unable to display data in class function
 
Hi There, Looking for some help around Friend functions and using them in another classes function. Essentially, what I've done is create a class and prom...
[3 replies] Last: You've got a problem with your code, so you should post your code. (by ne555)
by user98
Please Help
 
i have to answer this: Write an algorithm (without modules) that asks the user to input the elapsed time for an event in seconds. The algorithm then outputs ...
[9 replies] Last: Do you know how to write a function?http://www.cplusplus.com/doc/tutor... (by NerdTastic)
TopCoder Error
 
VowelLatin.cc:9: error: expected primary-expression before ‘translate’ VowelLatin.cc:9: error: ISO C++ forbids declaration of ‘Public’ with no type Vo...
[1 reply] : I would bet to public (case sensitive). But really, ¿what are you e... (by ne555)
April 2012 Pages: 1... 3839404142... 66
  Archived months: [mar2012] [may2012]

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