Beginners (Page 52)

nested for loop isn't initializing my char[]
When my code runs through this loop I made to compare two strings it doesn't initialize my char wit...
[2 replies] Last: don't know why i didnt see this. I may have to rethink my for loops fo... (by ultratoke)
for loop string Compare program.
So I am making the game called mastermind. It's simple you have the computer create a code that the ...
[1 reply] : You used && temp != 'x' for what?, is it always give you FALSE ?... (by lsk)
Lining up Data
Lines 220-233 are outputing data in the two rows like xxxxx xxxxx xxxxx xxxxx and so ...
[2 replies] Last: This works perfectly, thank you so much for your help! (by jynx678)
How to create an array of c style string?
Hey,guys, I just read from a textbook saying that you can actually create an array of c style string...
[7 replies] Last: To helios, Yay295 and keskiverto: Profuse thanks to guys! Your replies... (by glenjoker)
What does this error mean?
I am getting a really annoying error telling me that I need a ";" where I shouldn't. The exact error...
[11 replies] Last: Oh fantastic, thank you so much everyone! I've got it working!! (by VisuAlly)
string from user input
how could i make it so this works on a user inputted string instead of 'test string' #include ...
[10 replies] Last: how can i get my code to get input and print output for that fucntion.... (by kzaiter)
Help making pseudorandom number generator.
Could someone: - Write a pseudorandom number generator in C++ - Number generator should have overl...
[3 replies] Last: And if you haven't realised by my name i am a complete noob. So i nee... (by ProgrammingNoob131)
String-Time conversion
Hi I want to ask a question. How cani convert a string to time? I want to convert a string with HH:M...
[no replies]
user input into 2d array
Wondering how to get a users input to store into a 2d array. am I even close? Also I was wondering ...
[2 replies] Last: you could just put input straight into the array instead of using ano... (by Cody0023)
try/catch bug
I'm trying to catch a user error in the try block my first try works correctly but my second one kee...
[9 replies] Last: ultratoke, See if this makes sense to you: When and How to Use Exc... (by Grey Wolf)
Error: Invalid operands for Binary expression
I've created a class that works with vectors doing various calculations and what not. I have overloa...
[3 replies] Last: What I mean is why do you need operator+ that works with std::vector... (by ne555)
by Marnez
Not allow space in cin
How do I detect the user input to be a space and make them give me a numeric age? This doesn't work ...
[1 reply] : #include <limits> ... cout << "Hello, what is your name and age? (se... (by Smac89)
Explain this to me please; For Loops
I don't understand the output based off this code #include <iostream> using namespace std; voi...
[6 replies] Last: but if it was ++i would that be how it is run? No. Nothing can cha... (by Disch)
Math coming out incorrectly?
When I run this code timeleft always comes out to a weird negative number for example when age is 15...
[3 replies] Last: Looks like an integer overflow. An "overflow" is typically when you tr... (by Catfish666)
by yepMe
Thinking in c++, problem in understanding one exercise
Hi All, I am doing exercise from thinking in C++ , chapter 11(references and copy constructors) e...
[1 reply] : int x = std::max( 7, std::min( 3, 8 ) ); Min is argument to max abov... (by keskiverto)
by Vorp
Filling in an integer array with user input
Hey there.. I am writing a program, and I need my user to input a 5 digit number. I then need to s...
[4 replies] Last: This should work: #include <iostream> #include <math.h> using names... (by Cube777)
by Vorp
Assigning multiple class objects to ints
Hey there.... I was wondering if you can assign multiple objects of a class (or any other date type ...
[2 replies] Last: You can create multiple objects like you do with an array. #inclu... (by Softrix)
Sales informations
Hello, I'm trying to figure why all of the sudden my program isn't running correctly. It was runnin...
[2 replies] Last: Tested under Visual Studio 2013 Ultimate and works as Wildblue's outp... (by Softrix)
Printing My Array
Hello, I'm trying to create an array of 10 numbers to be input by the user and print it. I want m...
[4 replies] Last: Oooh okay. Thanks! (by VisuAlly)
by Nelvin
Nested Linked list type pointers initialization problem
I am having problem with initializing the linked list (*exam and *subject) through the constructor o...
[7 replies] Last: I actually tried, Student class contains 2 more sub linked list , whic... (by Nelvin)
Pages: 1... 5051525354... 79
  Archived months: [jun2014]

Cannot post in this page. To post a new message, go to the first page.