Beginners - April 2014 (Page 20)

stoping loop if input is '\n'
 
i am trying to stop the first for loop when the user ONLY inputs "enter" and then display the current array. I am trying to use "while (Names != '\n')", but it...
[4 replies] Last: Line 24: i changed to while (*Names != '\n') however it is not sto... (by grimsniper44)
functions won't work, please help!
 
I'm not good with arrays, or functions for that matter, and i can't seem to make this program work, please help! any advice is nice /* Name: Nick Banney...
[1 reply] : Please explain the int i; in lines 88 and 106 (¿why did you put tha... (by ne555)
How can i display this ascii art?
 
Hello everyone. I know there have similar questions but i felt i should ask myself since i haven't found the right help. I've been trying to display this ascii ...
[4 replies] Last: and you have to pay attention for when the size extends 80 (the maximu... (by JewelCpp)
If statement inside for loop with respect to elements of a string array
 
I've looked all over the internet, have asked a much more experienced programmer about it (he directed me to a cplusplus reference page which didn't help much),...
[4 replies] Last: I see. Thank you very much for your help AbstractionAnon :). Problem ... (by fryingpan)
by jeogbl
Program that shows secondary colors made from primay colors
 
I'm trying to write a basic program that takes primary colors and shows the user a secondary color made from two inputted primary colors. Its been two years sin...
[2 replies] Last: I'm want the user to input two of the three primary colors and the pro... (by jeogbl)
Blank compile screen
 
I have two problems that I have stared at and tried editing to get them to compile.. Can someone please look at these from another view and tell me what I am do...
[6 replies] Last: Ok i fixed that... did not know it showed highlighted with the <>... o... (by squirrel27)
Weird bug with color in cout
 
Hi all, I'm writing a simple program that displays information and I've run into a bug where my colour bleeds outside of where it should. I've replicated the bu...
[13 replies] Last: @Mary M Okay, I fooled around with the code a bit more. I added a c... (by whitenite1)
by rshoe
Using TryCatch in functions
 
I am learning to use the Try Catch Throw but I am having a hard time getting all of the throws to work. I have to throw each of my functions with a string of Ba...
[no replies]
by Danwd
Sudoku solver - Stack overflow.
 
I am a complete beginner at C++ and I have been tasked to create a sudoku solver, I have written a partial sudoku solver but when I try to compile, I get a stac...
[5 replies] Last: Don't recurse so deeply. :) Seriously, try and reduce the amount of... (by AbstractionAnon)
by mjatt
help with string literals
 
const char * a = "jatt"; in what form ,the string literal above gets stored while compiling?
[3 replies] Last: Thanks for the correction giblit. I tried to compile on ideone and it... (by wildblue)
Hard coding a text file
 
So for this project I am given a text file that I need to hard code and read. Usually we have to ask the user to input the text file but this time there is onl...
[4 replies] Last: If you just put in the file name, the the program will look in the cur... (by SamuelAdams)
Game
 
In articles there is a game by Foxefde Oct 30, 2013 for c++ console I copied the code but screen jumps up and down and causes headache What should I ...
[14 replies] Last: i have to update and set my dev c++ or get new IDE then try again (by Mehrdad87)
Easy Question
 
I want to not let the user proceed if they have entered anything that is NOT the character 'a', 'b', or 'c'.. When I run it and put in g, or something that is !...
[2 replies] Last: I would just use a string and using getline(cin,stringname); (by closed account 2UD8vCM9)
Please help with cin multiple inputs seperatted by a comma
 
How do I let the user to input integer and character separated by comma? "example: 1,2,-1,a,b". I used the following code but my switch statement is not work...
[8 replies] Last: why would you repost my link? (by Little Bobby Tables)
by mjatt
increment of pointer??
 
int a = {2,4,6,8}; int * pointer = &a ; then please explain this : *p++
[2 replies] Last: Like all other C++ operators, ++ returns a value:- If ++ precedes ... (by KyiannaJones)
Program: Selling seats
 
Hello everyone. I'm supposed to write a code that'll sell seats in a three level auditorium for three different days (Days: Thursday, Friday, and Saturday (T...
[7 replies] Last: You were right about the constants for number of days, rows, and seats... (by psychoticbear)
by doc17
Help 2 condition while
 
when i use this statement it only works or username conditions instead of both why? while (userScore != 10 || compScore != 10);
[2 replies] Last: This true or you could do it seperately, the && symbols would work bes... (by KyiannaJones)
Array
 
Whats an array? & How to construct one?
[1 reply] : http://www.cplusplus.com/doc/tutorial/arrays/ (by Zhuge)
Help on Overloading operators.
 
So I have just been teaching myself C++ for a while now and I seem to have found myself stuck in a rut of code so to say. What I need help under standing is wha...
[3 replies] Last: Here is an example that should be helpful. http://www.cprogramming... (by KyiannaJones)
i want...
 
I am new to programming I want to write my own programming language just like java,c and otherss i want to name it tree language what should i do?
[13 replies] Last: Thanks Jones (by Mehrdad87)
April 2014 Pages: 1... 1819202122... 67
  Archived months: [mar2014] [may2014]

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