Beginners (Page 50)

From void back to main (How)?
 
Hello I've got an a pretty annoying problem. I have one main function, and a lot of void functio...
[8 replies] Last: Indeed! While loops are the solution! :D This is what I did: bool ba... (by Nielyboyken)
by mehak
union
 
why does union a z2 = {0, 2}; give error ? #include<stdio.h> int main() { union a ...
[1 reply] : dot operator should be used to initialise z2,that is, a.ch =0 and a.ch... (by mehak)
Passing a string into a function as argument
 
Why can't I pass the string str to the function? What will be the correction? #include <ios...
[2 replies] Last: You're intermixing C-strings and C++ std::string. You've declared th... (by AbstractionAnon)
push_back on vector<class> ???
 
Is it possible to use push_back to create instances of a class in a vector, in the same way as you w...
[3 replies] Last: Thanks a lot guys. (by slouchcouchgamer)
by yepMe
Relation between "this" and "VPTR"
 
Hi Techgurus, I understand the meaning and functionalities of both of the in built pointers. TH...
[15 replies] Last: http://deepakgiri123.blogspot.fi/2011/05/c-up-casting-down-casting-in.... (by keskiverto)
question from job interview
 
Write your question here. void func() {int i; int *pint=new int(); Do things delete pint...
[16 replies] Last: this interview question is stupid and so open ended that any answer y... (by dhayden)
by Aceix
Configuring eclipse and cdt
 
Hi all, I just downloaded the latest available versions of eclipse luna(4.4.0) and cdt(4.8.0), but ...
[3 replies] Last: Ok, I've figured it out. Thank you, Aceix. (by Aceix)
by zdzero
Remote debugging with WinDbg over 1394 cable
 
I really don't get it. How can I make this work? On the host computer I opened a WinDbg with Admini...
[no replies]
Object with a Constructor as a member of a class
 
Is it possible to have a member in a class of a type of a class that has a constructor? As in: c...
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/classes/#member_initialization (by Peter87)
by T4l0n
input and sort array
 
I wanted to make a program where i input the number of elements in the array, input the elements val...
[2 replies] Last: A simpler one: #include <iostream> #include <array> #include <algori... (by Aceix)
by Ch1156
ifstream not working in program
 
I dont knwo whats going on here, this ifstream is not working at all, its this one: Line 40: ifstrea...
[2 replies] Last: Ah I forgot about that, I had it set in my other project but I started... (by Ch1156)
name spaces
 
Write your question here. Hey guys, I am trying to write the value entered on line 7 to the i...
[5 replies] Last: @OP To give pers a value, it can be done this way: example::pers=5; ... (by Aceix)
by Ch1156
Can you please explain some of this code to me
 
Ok So i'm learning SFML and I learned how to make a program that gets a grid from a text document an...
[6 replies] Last: You find() on line 7, so repeating the search on line 12 is unnecessar... (by keskiverto)
by mehak
this pointer
 
the output of the following program is 10 0 whereas according to me the output should be 10 20 becau...
[3 replies] Last: obj1.setX(10).setY(20); When evaluating the above: First get obj1 ... (by Grey Wolf)
by Ch1156
Cant pass ifstream
 
I'm trying to pass ifstream by reference to a function but it's nt working for this last one: ...
[3 replies] Last: Nevermind I forgot the & in the main game part -_- I could have sworn ... (by Ch1156)
Operator Overloading
 
Hi! I made a class "vec2f" and i was trying to overload its operands. According to what a read, b...
[8 replies] Last: Thanks helios! That's what I wanted! (by asus1575)
Restart confusion (1,2)
 
I am currently making a program that acts as a simple bowling score calculator, it allows for multip...
[31 replies] Last: Don't worry, I'm not made for software design, I'm struggling to make ... (by LiamTrolls)
by mehak
size of empty class
 
why is the size of empty class non zero in c++?
[1 reply] : Because if it was zero bytes then there wouldn't be a class. You can s... (by Cody0023)
by yj1214
Help me!!
 
Ok, first of all, i'm newbie to computer languages. However few days ago, i started learning c++ an...
[1 reply] : DirectX is a framework that encompasses various game-related libraries... (by helios)
Char* can refer to a string of characters?
 
I was curious on how a char* (variable name) can be set equal to a string of characters demonstrated...
[5 replies] Last: the << operator is overloaded to treat char pointers as if they point ... (by Disch)
Pages: 1... 4849505152... 71
  Archived months: [jul2014]

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