Beginners (Page 8)

by Winsu
Pointers
 
When is it neccesary to implement a default constructor,a copy constructor,an overloded assignament ...
[6 replies] Last: Ok, I'll have a good look, thanks!! (by Winsu)
How are objects initialized when they are used to initialize a STL container?
 
class t { public: int i; t() { i = 44; cout << "Ordinary\n"; } t(const t& x) { cout...
[5 replies] Last: Thanks a lot... (by PSYCHAMERON)
Outputting text from Array/Vector
 
I am having quite a bit of trouble just getting user input/ or even storing strings, etc. so let me ...
[2 replies] Last: Move using namespace std; to just after the #lincludes Andy... (by andywestken)
What does the 'new' operator exactly do?
 
What does it do? Could someone explain why we need it and how we can use it in other ways? Much appr...
[3 replies] Last: Operator or expression? http://en.cppreference.com/w/cpp/memory/new/op... (by keskiverto)
by cGuru
Cannot Access Data Of Struct
 
When I try to access my struct elements in another class function besides the one that modified it, ...
[4 replies] Last: I figured it out. It was a function that I didn't list here. (by cGuru)
Chess Queen moves [Help] (1,2)
 
So I was asked to build a chess game that only contains a queen and the queen must not have another ...
[23 replies] Last: Thanks @AbstractionAnon!. Now my program is complete :). (by kroragna)
.txt RGB array to BMP FAULTY OUTPUT
 
Hi everyone, My purpose; RGB values at txt,To convert a file in BMP format. Bmp to blab...
[7 replies] Last: It is OK Thanks to everyone who helped (by dangerzone37)
How can i read/save from txt?
 
Greetings cplusplus users! This is my first question on this site, and please, forgive me if my eng...
[9 replies] Last: Yeah the character separation is always the "," (by Siberius)
calculations are different in ide vs school server
 
hi, so the results of an average() and summation() functions are different in my ide (visual stud...
[2 replies] Last: Definitely show your code. What is "a"? Are you reading that from a ... (by dhayden)
complex matrix
 
hello, i want to initialize a 2x2 matrix with complex numbers but i don't know how i can ! thank...
[9 replies] Last: I made an example how to do that. Just continue to multiply resulting ... (by MiiNiPaa)
C++ Class Error (no matching function call)
 
So I am writing a mini (very mini) game in C++ and Qt like the space shooting game where you shoot s...
[1 reply] : Morning, You've given your class a constructor: EnemyHealth(QGraphic... (by mutexe)
Simple multiple choice question; Assignment Operator
 
1. What type of copy is performed when using the assignment operator with two objects if the assign...
[5 replies] Last: Thank you so much. (by Elysian)
by iEpic
Cannot figure this out!
 
Hello everyone, this is my first time posting here and I hope someone can help me. I am having iss...
[6 replies] Last: I've been trying for hours and finally just gave up haha. I can't figu... (by iEpic)
Strange problem when compiling a program
 
Hi, every time i try to compile the following code the compiler strangely opens another window wit...
[2 replies] Last: Sorry ,i wasn't sure if it is more suitable with biginner or general c... (by mescalito)
by Ch1156
DLL question
 
Ok so i've been thinking about creating a simple DLL just for fun, I believe It's a file that contai...
[5 replies] Last: ok, I got it working thanks! (by Ch1156)
2d array max min
 
I dont understand the error #include<iostream> #include<cstdlib> using namespace std; c...
[4 replies] Last: One has to start from the first error; some of the later errors may be... (by keskiverto)
Recovering from errors
 
Hi, I'm a beginner in programming and I'm studying the C++ programming language using the book : Pro...
[3 replies] Last: IMO, exceptions are overkill for editing user input. It is much simpl... (by AbstractionAnon)
What do these lines of code mean?
 
Question says it all. //Number 1: int length; length = (int)input.length(); //Number 2: ...
[4 replies] Last: http://www.cplusplus.com/doc/tutorial/arrays/ (by MiiNiPaa)
by cGuru
Alphabetical Sorting Algorithm Help
 
My program is freezing when I run this code which makes me guess that it is going into an infinite l...
[10 replies] Last: In that case lines AC and AB would be threated as if they were in corr... (by MiiNiPaa)
Copy constructors for vectors of pointers
 
I'm trying to make a copy constructor for the following class, but since I got a pointer vector of p...
[5 replies] Last: You should try to avoid pointers as often as possible(especially raw p... (by Gamer2015)
Pages: 1... 678910... 73
  Archived months: [apr2015]

Cannot post in this page. To post a new message, go to the first page.