
please wait
by justontime41
call object function for another class
|
Ok, I first wrote my tictactoe game as one class, and got it to work. I need to split the code up into two classes. Since splitting them up I can't get class ti... |
Mar 1, 2016 at 11:10pm
[2 replies] Last: Thanks for your help!!!! (by justontime41)
|
by joshuatz
Converting 3 chars into a single int
|
If I have an String 107 and I'm turning it into a char so it's the digit symbols 1 0 7. Is it possible to turn it into an int of 107? |
Mar 1, 2016 at 11:00pm
[1 reply] : you can use sstream // Example program #include <iostream> #include... (by rafae11)
|
by Blue Sky
palindrome function not working
|
Hey guys, I'm currently working on a function which checks whether the string argument is a palindrome (word which remains the same if it's read backwards) or ... |
Mar 1, 2016 at 10:19pm
[2 replies] Last: Wow it's quite obvious now. Thanks for the quick reply (by Blue Sky)
|
by kikiyox77
coding help
|
So my code doesn't seem to be working for some reason. This code that I am trying to do asks the user to input a password of their choice with the criteria of 1... |
Mar 1, 2016 at 9:08pm
[5 replies] Last: Don't compare bool variables to true or false. Just use if ( hasUppe... (by fredk)
|
by hartman498
For loop Help
|
Hi everyone, So my program needs to print out an inverted pyramid of numbers. I have a working code but I don't think i am allowed to use if and else statements... |
Mar 1, 2016 at 9:02pm
[2 replies] Last: I got it but thanks. I had my for loop inside the while which is what ... (by hartman498)
|
by Idiotal
While Loop Problem.
|
#include "stdafx.h" #include <iostream> int main(){ int a; int aUnits; int aTenths; int aHundredths; while (aUnits = 1, aUnits <= 9){ while (aTent... |
Mar 1, 2016 at 8:53pm
[3 replies] Last: You never change anything in the body of the inner while loop, so the ... (by fredk)
|
by Idiotal
What's wrong?
|
Doesn't display m. #include "stdafx.h" #include <iostream> #include <cstdint> int main(){ std::cout << "Enter a Number ."; int n; std::cin >> n; int m; ... |
Mar 1, 2016 at 7:25pm
[1 reply] : [quote=Idiotal]Doesn't display m. This is one reason why --> for (... (by closed account E0p9LyTq)
|
by qwewq149
Email with Mailbox class; compilation error
|
It isn't suppose to output anything but it doesn't seem to compile. im not sure whats wrong, if anyone could point me in the right direction. #include <iostr... |
Mar 1, 2016 at 7:21pm
[3 replies] Last: Thanks guys, i got it, appreciate the help!! (by qwewq149)
|
by Idiotal
Console outputs/prints nothing.
|
#include "stdafx.h" #include <iostream> int main(){ int n; int m; for (n = 1; n <= 600851475143; n++); while (m = 1, m <= 600851475143){ m++; if (m%... |
Mar 1, 2016 at 6:32pm
[4 replies] Last: When you use long long you may just have to be very patient, waiting f... (by Chervil)
|
Is there a connection between the size_t, pointers and amount of ram on a computer? |
std::size_t can store the maximum size of a theoretically possible object of any type. Does this have a connection what what values a pointer can store? Do bot... |
Mar 1, 2016 at 6:18pm
[2 replies] Last: Consider this: size_t count; int * address; // set some values to bot... (by keskiverto)
|
by Harutyun
I can't understand pointers and references. Please help.
|
Hi, I'm learning C++ using this website: http://xoax.net/cpp/crs/console/lessons/Lesson17/ and I can't understand the reason why pointers and references are... |
Mar 1, 2016 at 6:08pm
[1 reply] : A reference is an alias. Just like some refer to Bessie, while other c... (by keskiverto)
|
by Khentse
Nested Loops
|
Use nested loops to output 6 rows of 7 stars in each row. using namespace std; int main() { int i = 0; while(i++ < 7) ... |
Mar 1, 2016 at 5:20pm
[1 reply] : You're missing #include <iostream> You're printing the same numbe... (by AbstractionAnon)
|
by Khentse
Loops Sum
|
Write a program that accepts numbers from the user, adds them, and outputs the average. The numbers should be summed until user enters -1. #include <iostream... |
Mar 1, 2016 at 5:16pm
[2 replies] Last: First, please use the code tags when posting code. See http://www.cplu... (by keskiverto)
|
by spade2561
Need help with switch
|
So I'm trying to write a program that will determine how much someone has for a phone bill for a project for my C++ class and I cannot for the life of me figure... |
Mar 1, 2016 at 3:40pm
[2 replies] Last: indent your code and then you will see the problem. (by Jaybob66)
|
by ajessie
Reading Decimal error, and ignoring entire line
|
my output keeps reading my decimals with a comma instead of a decimal. I have no problems compiling, so I don't know how to get it to stop reading it as a comma... |
Mar 1, 2016 at 2:37pm
[1 reply] : Some of the variables declared as integer should be floating point. ... (by Chervil)
|
by ajessie
Missing Type specifier
|
I get an error saying I missed a type specifier, but didn't I already declare the type earlier in my code? #include "Project2.h" #include <string> #includ... |
Mar 1, 2016 at 2:07pm
[2 replies] Last: Line 53: An if is required after else . (by coder777)
|
by JJ2828
SIMPLE QUESTION
|
Hey Guys I have a simple question on this. Now all I can do is editing the class only , the main function need to remain and any solution for this??? Thanks!!! ... |
Mar 1, 2016 at 1:56pm
[3 replies] Last: #include <iostream> using namespace std; class AA { static int x; p... (by JJ2828)
|
by monrelle
Mandatory Output it is not working and I cannot figure out why?
|
I am trying to get this output. Product Name: Orange Reference Number: 1123456 Price per unit/pound: 0.99 Stock: 34 With this code: #inc... |
Mar 1, 2016 at 12:10pm
[1 reply] : 1) Please use code tags when posting code, to make it readable: http:... (by MikeyBoy)
|
by crazydaze
Pointers
|
Why does one use pointers instead of adjusting the value that is stored in the variable directly? I've seen plenty of information regarding how to use them, but... |
Mar 1, 2016 at 10:48am
[8 replies] Last: You're welcome - glad it helped! (by MikeyBoy)
|
by samalia
How to link C++ pgm as to read information from Excel?
|
WI am working on a project in C++ in the aim to read information but from a Database built in Excel, this DataBase will have information/details of each object ... |
Mar 1, 2016 at 10:34am
[3 replies] Last: Here is a simple class to read and write Excel spreadsheets. http://ww... (by Thomas1965)
|