Beginners - April 2013 (Page 28)

How to get a sentence?
 
I want to get a sentence. also check how many words in the sentence. I tried to use string like t...
[4 replies] Last: You mean only read in the first three words? you would have to modify ... (by giblit)
Pausing a calculator program
 
Can someone explain "cin.get()" and "cin.ignore()" to me? I don't understand how it works and i want...
[1 reply] : cin leaves the newline character in the stream. Adding cin.ignore() to... (by palauan73)
Please Help!! Cant see what im doing wrong
 
Making a program to calculate change and I cant figure out where ive gone wrong Program is ment to ...
[3 replies] Last: As I said this function has no sense. Instead of processing of the loc... (by vlad from moscow)
by antu55
c++ fstream
 
hi im kind of new to c++. can anyone help me with this code? i want to enter the data into 1 txt ...
[4 replies] Last: thanks man. now i know where my mistake. (by antu55)
Templating Errors
 
So I've been working on this program to maintain LinkedList, and I've gone to now use templates, for...
[1 reply] : templates must all be in the header (cut/paste from the cpp). Also, s... (by Lowest0ne)
Can Char be given numerical values?
 
Lets say i initialize a variable x and give it a value of A, and i declare value A to be 10, why wou...
[10 replies] Last: 'A' is output as a character, but it is really a number: char ch = 'A... (by Lowest0ne)
by Fenrir
Question about Input ! Need your help!
 
Hello Everyone. I am new to C++ and have a quick question. I am working on a part that involves me w...
[7 replies] Last: I'm in a basic c++ class as well and to me that stuff is a necessity. ... (by giblit)
A more efficient code?
 
Is there a more efficient way, better than this to find the largest or smallest number out of a set ...
[3 replies] Last: This should work: int indexToMax = 0; for(unsigned int i = 1; i<10; ... (by closed account D80DSL3A)
Help with array sorting
 
Can someone show me the code to do the opposite so it takes gets the largest of index of an array. ...
[2 replies] Last: Haha I definitely feel silly. I was changing too much. Always the litt... (by Nooby23)
Need help shooting projectile at character in C language
 
The code below handles the direction my boss is facing, then allows him to animate in such direction...
[5 replies] Last: > Well... it is indented? No, it is not. By instance, ¿where does the... (by ne555)
A spell check...
 
Here's my code. I need a lot of help. Bonk.txt is the file that has to be read, and Dictionary.txt i...
[5 replies] Last: Here's what I've come up with since then. I know its been a long long ... (by Nickjagg)
assigning and object equivalent to object of same type with argument
 
Why can't I set and object without argument equivalent to another object of the same type with an ar...
[1 reply] : Instead of Cents CCentsum = cCentss2(8); you shold write Cents CCen... (by vlad from moscow)
Classes help
 
I think I have the general gist of classes. This code works, but what I want to change is what numb...
[5 replies] Last: I greatly appreciate you help. I have one other question though. in... (by toonhead85)
by giblit
Which is better function() return; or function(reference)
 
Which method is better to use? return or reference or is it just a preference thing. #includ...
[4 replies] Last: Yeah I can't think of too many scenario's I was just wondering because... (by giblit)
need help with c++11
 
I installed new GCC compiler, thinking it will let me work with C++11. Now when I try to run a cod...
[5 replies] Last: I can compile it fine with 4.8.0 By the way, that code is overkill. (by ne555)
Reading the "+" & "-"
 
I am a newbie trying to write a program where I can input a letter grade and gives me a grade point ...
[3 replies] Last: Thank You very much!!! Problem Solved! (by Gluttons)
by rcast
Need help understanding linked lists
 
I'm having trouble understanding linked lists. I understand they are generally LIKE arrays, in that ...
[2 replies] Last: Yes when I use new I use delete this is an example from a book. (by rcast)
Problems with defining an increment function
 
First of all I'd like to say 95% of this is working perfectly, I just need a few small tweaks. I'm h...
[4 replies] Last: I changed both of those functions to the following and they are now wo... (by Jangoon24)
Help with I/O file program
 
I have the description of the code here, but I have absolutely no idea how to program it. HELP!!!! ...
[1 reply] : ok, let's start from the... start. first, i believe you should use the... (by Stauricus)
I need a tutorial for void
 
Hello, Does anybody know how to use void ? I would be thankful if somebody can tell me. I have n...
[1 reply] : There are two uses of void: 1) A void function: a function that doesn'... (by Fransje)
April 2013 Pages: 1... 2627282930... 83
  Archived months: [mar2013] [may2013]

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