Beginners - February 2013 (Page 27)

Dice program question.
 
I'm having a problem adding up the values of the dice rolls in a while loop. The program will only store the last value so how would I get it to store multiples...
[2 replies] Last: Thanks and I really just need an equation that will allow me to store ... (by nheath12)
by T4l0n
where is the mistake ?
 
#include <iostream> #include <fstream> #include <cmath> #include <cstdlib> using namespace std; int main (){ char filename ; ifstream asd; cin.ge...
[7 replies] Last: Alright, i finally understood it. I need to write the file to read on ... (by T4l0n)
Help on an assignment for programming class!
 
Hi! I'm new to this forum and am seeking some help on an assignment in my programming class. I've been at this for a while and can't figure out what to do. Pro...
[no replies]
Conditional
 
Hello there, Just a little bit of background on myself: I have some schooling experience in C, VB.Net, C#.net, Oracle, and MySQL. I have never taken a pro...
[5 replies] Last: Thanks AbstractionAnon, this fixed my logical problem. Much appreciat... (by jermainStain)
while(1) loop problem
 
I am trying to create a simple grade storing console. The console allows you to enter grades or view them. When I try to view the grades I have entered, it alwa...
[6 replies] Last: You need to learn how to use arrays and functions. You're doing the... (by AbstractionAnon)
Requesting help with simple loop problem
 
I'm trying to have a while loop that reads integers into a vector, as long as cin.good(). The problem im having is the vector always ends up with a size() of 1...
[5 replies] Last: Yes, with a little tinkering I realized that I didn't fully understand... (by jbos1190)
Operator overloading by using friend function!
 
I'm having trouble working on my data structure programming project!! I have to implement the statistician class but the operator overloading part is a problem...
[no replies]
I keep getting an error i do not understant. im a beginner!!
 
i am using visual studio and writing a program to come up with a square root of a number that is prompted from the user. the error i receive is [error C2296: '^...
[1 reply] : ^ is not how you raise numbers to an exponent in C++, it is used for b... (by Hippogriff)
Class inheritance help (hw)
 
Edit : Nevermind everything works except the parachute I get the same statement printed even if I change it to false in the main.cpp. I am using a class car ...
[3 replies] Last: Oh right Thank you so much. Solved. (by seraphdd)
Private code
 
I have a segment of code that i do not want the program to execute unless the user wants it to and the goto statement brings them there. So id there any functio...
[4 replies] Last: Don't worry i figured it out. (by InfinityCounter)
initializing constructors argument in main
 
How can I add an argument to a constructor in the int main section? I have class slug_imf { public: slug_imf(string); }; slug_imf::slug_i...
[2 replies] Last: I tried it again and you're right it works. Thanks. I must of not incl... (by johnny92)
HW help .. think I'm close
 
Assignment followed by my program files currently. I am getting an error code w/ no specific lines. Might be an issue with my #include. I'm stuck and woul...
[1 reply] : Please include all your code in [ Code] [ /Code] tags to make it easie... (by Hippogriff)
Can someone help with my C++ program??!!!
 
I need a program to calculate the total revenue. I need help here is my c++ program: //Program to calculate total revenue #include <iostream> using names...
[4 replies] Last: missing semicolons at the end too ? Missing a whole lot of them... ... (by Oria)
by mirec
drop down
 
hi i was wondering that why every time i watch some tutorials when they start to type something they have this little drop down help and I don t. for exampl...
[3 replies] Last: ok nice one thanks. because I didn t know that it is called intellisen... (by mirec)
SIMPLE SIMPLE question for setw
 
Create a for loop that counts from 100 down to 1. In the loop, print out each number. If the number is even, print "---Even". Use the appropriate printing comm...
[1 reply] : nvm, i fixed them already =) (by kumakuma)
Request Informaiton
 
Hey guys I m new to C++ and want to learn but I don't know the editor for C++ and its compiler so pls tell me where do I download the editor and its comp...
[7 replies] Last: ASAP please im going to pass my assignment this coming 1:00 pm. thanky... (by Roseville)
help making this code friendly
 
hello im having trouble finding making this code user friendly. wondering if someone can help me. sorry for my bad English. its my 2nd language // This prog...
[no replies]
please help with pong game
 
I am trying to write a simple pong game and have been following the lazy foo tutorial. I cannot get collision detection on the second paddle and I cannot get t...
[2 replies] Last: use code tags and indent...... (by greenleaf800073)
OOPS Problem when i separating interface from implimentation
 
The main file is untitled1.cpp #include <iostream> #include <string> #include "PaySystem.h" using namespace std; int main() { string EmployeeType; //12 sc...
[7 replies] Last: the following code is missing :#include<MyFunctions.h> my English is v... (by flony1)
I'm getting a linker error
 
Hello, I am working on making a small text based game, but I keep getting an error message that says: [Linker error] undefined reference to 'WinMain@16' Id re...
[1 reply] : OH! DERP!!! nvm! I fixed it (I didn't have a main function!) (by Reeceboy1299)
February 2013 Pages: 1... 2526272829... 67
  Archived months: [jan2013] [mar2013]

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