Beginners (Page 52)

Vector Initialization
Why can't a vector be initialized as follows: vector<int> ivec = {1,2,3,4}; I get the followi...
[11 replies] Last: I entered the two statements into the header. It work beautifully. T... (by phztfte1)
template class friend member
template<typename T> class Stack { public: friend void swap(Stack&); } what is the right syntax t...
[8 replies] Last: swap(first, second); (by cire)
Huge Error List in xmemory0
I'm trying to write something like TBS game, but when I tried to compile it gived me back a huge err...
[1 reply] : We can't help you if we don't have the actual source code. Those error... (by IceStorm)
by koopey
visual c++=visual studio?!?
I am struggling to set up QT for starting GUI for which I posted a thread earlier(no replies though ...
[7 replies] Last: LOL. (by Duoas)
Good way to start a login system
Hello I am trying to wonder how would someone go about starting a login system? Just want criticism ...
[2 replies] Last: Thanks yeah I noticed some of these mistakes I will fix them. (by Blackhart98)
by wrymn
Concatenate strings inside function parameter
Hello, I want to create function which accepts string as parameter and prints it to console, e.g. ...
[6 replies] Last: Ok, I am making a game. Now I will need many prints into console, lik... (by wrymn)
how to create and use object in c++
Can anyone tell me how to create object in c++
[1 reply] : (by mutexe)
by i9try
How can I sort a list of objects by using a variable inside the class? #include<iostream> clas...
[5 replies] Last: calculate it using your other variables. Edit: oops sorry i re-read w... (by mutexe)
by fdsgjj
Counting prime numbers
#include <iostream> using std::cout; using std::cin; using std::endl; i...
[1 reply] : You have the right idea. You can speed it up by lowering the loop limi... (by dhayden)
by zecbmo
Object does not name a type. Declared in the same header
So I have created a class. And declared an array of objects based on it. When running the program ...
[1 reply] : You need it to be in main. lines 28 and 30 shouldn't be floating aroun... (by mutexe)
Reversing Arrays Using Recursion
Is there a way to reverse an array by ONLY passing in the array? It seems that it is pretty easy if ...
[4 replies] Last: @cire I understand. Thank you so much! Best regards, Jae Kim (by jhykima)
by i9try
iterator: end-1
how can i find the iterator end-1? I want this one: list<Athlete> athletes; list<Athlete>::it...
[1 reply] : use the condition athl<athletes.size()-1 instead of using iterators... (by mutexe)
by Diedes
coupling an int and string together in a node, linkedlist
Hey, What this program does (the main), is read a txt file and create a node for every line with a...
[no replies]
write a matrix
Write your question here. how can i write a matrix of size m*n? have just started learning c++.plea...
[1 reply] : edit: it's good manner... (by mutexe)
What is going on in this program?
Can someone please give a trace/breakdown of whats happening in the program below? #include <i...
[12 replies] Last: Thanks, but I think I already understand that now. I even replaced l... (by Arslan7041)
3d game programming
I'm not a complete beginner to c++, i do know the language fairly well. I want to make a retro look...
[1 reply] : Download the engine SDK and look through the documentation - if you k... (by Softrix)
Writing the command for getting the average of three numbers.
Hi guys, so this is what I've been working on. Our assignment is to write a program that the user wi...
[1 reply] : Try putting your code in code tags. The current program wouldn't com... (by Softrix)
by Ch1156
Why cant I pass this array to the function?
I am making a small console game and I made the map, and an working on putting things into functions...
[8 replies] Last: How does this output the map? It does produce exactly the same outpu... (by keskiverto)
C++11 move semantics
Hello forum, I think that the C++11 move semantics only applies to the class that has member wit...
[2 replies] Last: > If there are is no member of the class has pointer type & reference ... (by JLBorges)
by Winsu
strange output
According to my code I was expecting to have the option of entering the variable sex..but in somehow...
[2 replies] Last: @rafae11, you should always add supplementary explanation to your ans... (by shadowCODE)
Pages: 1... 5051525354... 64
  Archived months: [may2015]

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