Beginners - March 2016 (Page 46)

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 in...
[2 replies] Last: Thanks for your help!!!! (by justontime41)
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 possi...
[1 reply] : you can use sstream // Example program #include <iostream> #include... (by rafae11)
palindrome function not working
 
Hey guys, I'm currently working on a function which checks whether the string argument is a palindr...
[2 replies] Last: Wow it's quite obvious now. Thanks for the quick reply (by Blue Sky)
coding help
 
So my code doesn't seem to be working for some reason. This code that I am trying to do asks the use...
[5 replies] Last: Don't compare bool variables to true or false. Just use if ( hasUppe... (by fredk)
For loop Help
 
Hi everyone, So my program needs to print out an inverted pyramid of numbers. I have a working code ...
[2 replies] Last: I got it but thanks. I had my for loop inside the while which is what ... (by hartman498)
While Loop Problem.
 
#include "stdafx.h" #include <iostream> int main(){ int a; int aUnits; int aTenths; int aHund...
[3 replies] Last: You never change anything in the body of the inner while loop, so the ... (by fredk)
What's wrong?
 
Doesn't display m. #include "stdafx.h" #include <iostream> #include <cstdint> int main(){ std::...
[1 reply] : [quote=Idiotal]Doesn't display m. This is one reason why --> for (... (by closed account E0p9LyTq)
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 anyo...
[3 replies] Last: Thanks guys, i got it, appreciate the help!! (by qwewq149)
Console outputs/prints nothing.
 
#include "stdafx.h" #include <iostream> int main(){ int n; int m; for (n = 1; n <= 60085147514...
[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 hav...
[2 replies] Last: Consider this: size_t count; int * address; // set some values to bot... (by keskiverto)
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...
[1 reply] : A reference is an alias. Just like some refer to Bessie, while other c... (by keskiverto)
Nested Loops
 
Use nested loops to output 6 rows of 7 stars in each row. using namespace std; int main() ...
[1 reply] : You're missing #include <iostream> You're printing the same numbe... (by AbstractionAnon)
Loops Sum
 
Write a program that accepts numbers from the user, adds them, and outputs the average. The numbers ...
[2 replies] Last: First, please use the code tags when posting code. See http://www.cplu... (by keskiverto)
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 pro...
[2 replies] Last: indent your code and then you will see the problem. (by Jaybob66)
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,...
[1 reply] : Some of the variables declared as integer should be floating point. ... (by Chervil)
Missing Type specifier
 
I get an error saying I missed a type specifier, but didn't I already declare the type earlier in my...
[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 fun...
[3 replies] Last: #include <iostream> using namespace std; class AA { static int x; p... (by JJ2828)
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 pe...
[1 reply] : 1) Please use code tags when posting code, to make it readable: http:... (by MikeyBoy)
Pointers
 
Why does one use pointers instead of adjusting the value that is stored in the variable directly? I'...
[8 replies] Last: You're welcome - glad it helped! (by MikeyBoy)
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,...
[3 replies] Last: Here is a simple class to read and write Excel spreadsheets. http://ww... (by Thomas1965)
March 2016 Pages: 1... 44454647
  Archived months: [feb2016] [apr2016]

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