Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duoas)
How to assing string value?
 
I created my own list (template) and I want to assing string value, but I got error in file "SuperLi...
[2 replies] Last: Exactly, it cant assing string at line 24 inside SuperList.h. But it ... (by TheBasix)
by Ch1156
Vertex array tile sprites
 
Ok so I found out that drawing my tiles to the editor was a really bad thing to do because it create...
[no replies]
Beginner c++ math question
 
I'm doing a practice question in which I have the answer to(below), but I'm having a hard time under...
[4 replies] Last: Okay, so I need the sum. MY answer for the code above is .64, is that ... (by hellworld136)
Fractions
 
Well I pretty much have the code 100% complete except that our submission program, Athene, keeps say...
[1 reply] : Nevermind I got it. I thought the negative swapped in the reduction fu... (by RobGillespie)
passing arguments by address
 
Consider the following program. The function modifies the value of the variable "iNumber" and prints...
[1 reply] : The asterisk on line 5 is the dereference operator. http://www.cpluspl... (by giblit)
Insertion sort
 
I was working on the last question of a basic program and I'm having trouble implementing an inserti...
[no replies]
error
 
Hello, Getting error when trying to compile a C program: g++ Documents/firstchess.c Doc...
[4 replies] Last: Then either get a new different compiler or use a standard library. ... (by giblit)
Vector with mixed class type?
 
I'm trying to write a basic RPG style battle system to practice classes, but I'm having a little tro...
[5 replies] Last: You can call the base constructor. Weapon::Weapon(std::string name,... (by giblit)
delete operator
 
I have a question regarding delete operator. In case there are 3 instances each holding the next/pre...
[4 replies] Last: I like RAII approach, i.e. some wrappers around naked pointers, I mean... (by BenCPlusPlus)
Storing and reading vast sums of numbers..
 
Hello there, I have been doing some exploring over ways of dealing with large sums of information, h...
[13 replies] Last: that C++ is going to know which ints should go in which elements of t... (by AbstractionAnon)
I have looked around, problem with range
 
Problems with using a set range for an input I want the input to only allow 0.05 to 0.20 0.05 =< pg...
[4 replies] Last: Thanks a lot guys so I will try using a different data type such as in... (by djninjanz)
Coud any one give me a hand?
 
How to read file in array if you know the number of rows but you dont know the number of columns? ...
[8 replies] Last: Like I said earlier you could either read in each row twice first time... (by giblit)
Differences between Cout and Printf
 
Im actually programming in c++ so I wrote those lines with the same message and I knew that the prog...
[1 reply] : printf comes from C and doesn't handle C++ types. cout is C++ and ... (by Peter87)
setscrollpos
 
I am confused completely, How can I fix this? Background: I am trying to rewrite really old but u...
[2 replies] Last: I saw that, but what is wi.hscrl in my case? Thanks (by SteveOshnall)
by lekha
how is it calculeting..??
 
Greetings everyone... i would like to know how c++ is calculating this equations manually...?? ...
[5 replies] Last: [quote=keskiverto]Peter87 wrote "Right-to-left", probably as typo, for... (by Peter87)
Basic c++ math question
 
I'm doing a practice problem that gives me a function header, and a function and expects me to write...
[5 replies] Last: Opps, I forgot to remove line 19. Is this correct? // Example pr... (by hellworld136)
by klay2
need help with if statements
 
I think the problem is that I'm comparing strings in the if statements #include <iostream> ...
[4 replies] Last: You can use && instead of two if statements. Also, once you find ... (by dhayden)
Help me in getline function..
 
Write your question here. #include <iostream> #include <string> using namespace std; v...
[3 replies] Last: If you only want to enter one address, why do you have the code inside... (by AbstractionAnon)
Pages: 123... 79
  Archived months: [jun2014]