Beginners - July 2014 (Page 28)

Loops & Switch Statements
 
Hey everyone, I'm working out some of the practice problems that are on this website, and I just had a question about this one. "Write a program that c...
[8 replies] Last: Why dont you mark this thread as solved (by xenovia12)
Squaring numbers
 
Still practicing basic code, wrote something to square a number inputted by the user, but some values (e.g. 5, 10, 11, 13, 15, 20) come out as the squared numbe...
[10 replies] Last: you could also do this squared(n) (by xenovia12)
I need help understanding somthing
 
I want to make a game were the user can go back and forth between diffrent places but Im not sure how I go about doing that because If I want my character to go...
[1 reply] : That's a really vague question and depends entirely on what you're doi... (by Ganado)
Graphics Flickering In Turbo C++
 
Hi, I Developed A Simple Snake Game In C++. The Functioning Of The Game Is Almost Perfect (Little Bugs Here And There), But The One Problem I Face Is The Const...
[no replies]
need help for explain the program.
 
please explain this program. how is it work. i dont understand the unordered_map and algorithm #include <iostream> #include <unordered_map> #include <al...
[2 replies] Last: thank u very much. one more favor is that can you simply this program ... (by zeewaqar)
Opinions on Efficiency of Code
 
Hello all, I hope I'm posting this in the right forum. I also hope you don't mind my posting of over 100 lines of code. I'm just asking for your opinions on h...
[2 replies] Last: I saw somewhere that that would be one way to make the program loop, a... (by brimstone)
567894 output will be 56894
 
i have a problem, if the user will enter 567894 and the output must be: 56894 and the number remove is 7 what will be the possible code on this one?
[1 reply] : There are several approaches to this problem. Without more details on ... (by giblit)
Access violation writing location
 
I am getting an access violation writing location on line 267. The first document it read has the numbers 1 - 100. The second document is blank. It is checki...
[3 replies] Last: So it looks like my issue was i was wanting to create a new node call ... (by mattm86)
Help with a Tic Tac Toe Game.
 
I have this code that I am suppose to use to make a simple tic tac toe game. But i am just lost and need some direction of what to do next. Any ideas is appreci...
[no replies]
Propeller Spin
 
I'm almost done with my project. The last thing I need to do is make my propeller stay on my airplane and spin like propellers do. I just can't figure out how t...
[3 replies] Last: This is what I mean: //... void drawAirplane() /* const */ { glP... (by TwilightSpectre)
by Sgreen
Merge two input texts
 
Hello, this program is to merge and alphabetize two input text files and output them. (assuming files are already alphabetized) The example used is: (input 1) ...
[10 replies] Last: http://www.cplusplus.com/faq/sequences/sequencing/sort-algorithms/merg... (by Duthomhas)
Run-Time Check Failure #2 - Stack around the variable 'board' was corrupted.
 
Write your question here. Hello everyone, my code that takes input, puts it in a 2d array then reverses it is crashing. It always gives me the error Run-Time C...
[2 replies] Last: Dumb mistake. Thanks! (by neel3123)
NO clue what I'm doing wrong- Arrays + Pointers
 
I have no idea what the heck I'm doing. This isn't homework by the way, I'm doing this to study ahead of class. Basically I have to make it so that this program...
[6 replies] Last: Hmmm....I'll read this over again later!! Thanks a bunch for all your ... (by NookLines)
by omurad
Help with hangman
 
I have an array with the letters of the word that the user is attempting to guess, after I ask the user to input their guess, how can I have my program scan for...
[1 reply] : Use a for loop. for ( int i = 0; i < [array size]; ++i ) // chec... (by Yay295)
Drop lowest score
 
Hello, I am having issues with my program. I have to get six test score from the user and the scores have to be in between 0-100 and it has to drop the lowest ...
[9 replies] Last: http://www.cplusplus.com/forum/beginner/137767/#msg730998 You need to... (by Mathhead200)
Polymorphism and Command Pattern Problem
 
I am trying to implement a Command pattern with polymorphism. This is the first time I have tried either. It isnt working. The pointer to the Command class is e...
[no replies]
by omurad
For loop error
 
I am getting a segmentation error and the core gets dumped when the for loop is run. I know it's because I have a dangling variable (letterInputting) but does a...
[3 replies] Last: I see several possible problems: 1. The following is not allowed in C... (by jlb)
problem with passage by const&
 
hi, i'm trying to avoid the copy made during the appel of a function by using const&, But it results a compilation error, here is a function, it works with <C...
[2 replies] Last: Thank you so much,"twice"; Sorry for not using code tags. (by whiteReve)
problem in print array saved in note
 
hi all i don't know why func output after i give 1 print nothing the program will end #include <iostream> #include <fstream> #include <string> #inclu...
[1 reply] : Where are you calling output in the first case? The program ends becau... (by jlb)
How to return itself object?
 
Debugger say it's access violation on runtime. MyClass &MyClass::operator = (const MyClass &myClass) { a = myClass.a; // it's crash after this line b = myC...
[2 replies] Last: Oh. Sorry, I mean debugger. Nothing special on MyClass Myclass () {... (by Arrandale)
July 2014 Pages: 1... 2627282930... 43
  Archived months: [jun2014] [aug2014]

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