Beginners - January 2014 (Page 20)

/n means in this code
 
I know that/n means new line but what does '/n' mean in this code? #include<iostream> #include<string> using namespace std; void main() {char c; in...
[5 replies] Last: Actually, it's "\n", NOT "/n". EDIT: And your code is quite messy... ... (by ngbeslhang)
by xkara
multiple inputs c++
 
I am new to C++ and am trying to create a program that asks the user personal questions. std::vector<std::string> name, age, favsinger; std::c...
[4 replies] Last: What do you actually meant by? Seems you did not copy the code properl... (by ngbeslhang)
Convert from java into C++.. Give me the c++ code.. Help me..
 
public class CountCurrecy { /** * @param args */ public static String numWords = { "One", "Two", "Three", "Four", "Five", "Six", "Seven"...
[2 replies] Last: Learn C++ by yourself, not asking to convert a programming language's ... (by ngbeslhang)
Project
 
So an interesting idea came to mind while watching my brother play grand theft auto 5. he was working on making a death match for him and his friends to play. s...
[10 replies] Last: You can use game engines if you want to make games with a little of/no... (by ngbeslhang)
Can't do this program at all
 
write a program that prints out these following numbers using C++ 5 7 10 14 15 20 21 25 28 30 can someone help please ?
[9 replies] Last: Did you ever bought some books or reading any tutorials to learn C++? (by ngbeslhang)
by phil94
Default Constructor issue
 
I have a class whose Default Constructor is giving me issues. I am trying to make it so that, when the class object is instantiated, it will have only an array ...
[2 replies] Last: I hadn't realized/didn't know that quarterSales ={0, 0, 0, 0}; and ... (by phil94)
stackdump error
 
Hi, I am trying to make a simple program of two array, one array will hold the string of names of type of salsa bottles, and other one will hold number of bot...
[1 reply] : figured it out.. thanks again.. corrected code: /* * chips.cpp * *... (by austin7)
Taking Sets of Data from File
 
So I have a file with information (such as name, age, etc.) about different players, and I somehow need to move that into my program, but keep it grouped by eac...
[9 replies] Last: Ok, here is the full solution. Taking my packers.dat file, I added ano... (by CplusplusAcolyte)
trouble with rock paper scissor problem
 
hi all, I am a beginner, I am trying to do rock paper scissor problem, but even after numerous attempts my program does n't work, I'll appreciate any help, b...
[3 replies] Last: Hi Cire, Thanks for the help, I got it figured out, the problem was no... (by austin7)
Function for circle
 
I wrote a function in C++ visual for circle. Was wondering is it legit. Im total newbie so please be gentle :) If you have better one please post it. ...
[1 reply] : Plotting individual pixels on the CPU side is going to be slow. Stuff... (by Disch)
by fiodis
Class pointer needs to be initialized in initializer list? Also why not "this->"?
 
I have two custom classes, Font and GlyphStr. Font stores info about glyph sizes and textures and so on, while GlyphStr stores an array of vertex positions and...
[2 replies] Last: I would want to keep the setFont function if I could. Changing font t... (by fiodis)
by pukol
Christmass tree c++ help me.
 
I need help with an exercise that was given to me ages ago.. I just remembered it and realized that i never really got the answer.. This exercise is making a...
[2 replies] Last: Yeah i found the answer using my codes.. for(int i = 0; i < height; ... (by pukol)
C++ user input numbers to be written into a text file.
 
Got it working, thank you!
[2 replies] Last: Got the output working, thank you so much Peter. (by geekytom777)
Getline Malfunction
 
I'm back again with another question -_- sorry for asking too much in this single project but i ask these questions because for me, these are "no way out" ques...
[5 replies] Last: oh I get it now :) tnx.... i think i'll go for a bigger number if i en... (by NoobProgrammer03)
Text based rpg help please.
 
Im making a new text based rpg and im kinda failing and i need some help. i code in bloodshed c dev. i know it's long but ty if you help NOTE: i am not fin...
[3 replies] Last: ^^ What he said. Until you learn basic functions and control structur... (by cnoeval)
by enemy
stringstream to string, conversion???
 
Hello, here I have the error, says sth wrong withth identifyer: stringstream ss; string v; v=ss.str(); Please what is wrong here? Still not familia...
[5 replies] Last: Include sstream. (by IWishIKnew)
Write/read stack in file
 
So i got this program to do and i am stuck.. The main point is to build a program that writes in file several changing bureaus with name and address for them, s...
[no replies]
Eliminate goto Statements
 
My teacher wants me to get rid of all of the goto statements in my code. I have already restructured the code to eliminate many, but there are still some that I...
[5 replies] Last: You HAVE to learn how to do this, because it is only going to become m... (by IWishIKnew)
Problem about displaying Linked List
 
uhm guys... i need help i'm doing a project today from the subject DATA STRUCTURES. It's about implementing the linked list operations (construction, empty, in...
[4 replies] Last: wow! it worked! :D thank you so much mister! it really helped me a lot... (by NoobProgrammer03)
how do you declare and populate arrays of intergers
 
hi really need with several pieces of code if you could help me you would be my life saver first code is Using a for loop to output array values */ #inc...
[4 replies] Last: @Nathan2222 : Yeah, thank for pointing out unused variable. I removed ... (by Shravan40)
January 2014 Pages: 1... 1819202122... 44
  Archived months: [dec2013] [feb2014]

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