Beginners - August 2013 (Page 22)

by elfeck
Pointer to object in std::vector
 
Hello, I store and access an object in a std::vector as follows: //vector is a member variable vector.push_back(MyObject()); //storing the pointer to t...
[4 replies] Last: As a side, my_vector.data() returns the pointer also. No need for ... (by Lowest0ne)
problem with file tranfser
 
I created a client and server application. This all works fine but now i want to add file transfer code. so the client has a GUI form with a listbox that displa...
[8 replies] Last: you problem is that you don't set the value for Header . One way to ... (by coder777)
Program help. Assigning wrong values
 
Hi I'm new to C programming and i was wondering if you could help me with this, in my program im asking for three subjects to enroll and total it every time i ...
[10 replies] Last: Thank you so much! :) You're of great help. Sorry for the troubles i h... (by Justin Segovia)
About Pointers
 
Hi everyone, sorry for the dummy question. I just wonder why a char pointer pointer points a char ? Namely, how does a char represent a memory location. ...
[5 replies] Last: char *p1; //pointer to char, holds address of char int *p2; //pointe... (by LB)
file i/o
 
i m having error in my output.. in c++ documentation i took one program and then compiled it, then i m getting wrong output .. could someone help me ?? // ...
[1 reply] : Are you sure example.txt is in the same place as the program executabl... (by LB)
Converting int to base16
 
Any easy way to do this?
[3 replies] Last: naraku9333 wrote: Really easy and works for all bases. Taking ... (by condor)
output in file using stdin
 
why i cannot take input from std::cin and store in file directly as in 12th line using myfile instead of str? str is also an object as well as myfile is also a...
[8 replies] Last: Define "not works". It has already been stated that std::getline is s... (by keskiverto)
Compilation problem
 
Hello, i am very noob at programing and i need help at this code: #include<iostream> using namespace std; int main; { int n, a=0, sum; do{cin...
[5 replies] Last: Now it works... thank you firedraco and techno01 .. (by fluture)
what is this error about??
 
weird error while compiling a program in dev c++ ERROR : cc1plus.exe C:\Dev-Cpp\cc1plus.exe unrecognized command line option "-fdollar-in-identifiers" t...
[3 replies] Last: omg its fixed, thanks (by reiki222)
Int in Struct having problems
 
I'm currently working on something where I have structs in structs, and I'm fine with the strings, but the ints don't work. struct questionEffect { ...
[3 replies] Last: Thanks Techno01, That was it. (by dunnmifflsys)
Text RPG Help
 
Hey guys, wondering if some can help me (im sure you guys will be able) So im starting to make a C++ RPG, and i need some clarity. iv started out the batt...
[8 replies] Last: Thanks guys. I looked into Polymorphism and thats exactly what i neede... (by Chillieman)
Looking for a partner to make console c++ text game
 
If you're interested, let me know..
[13 replies] Last: Hey I am interested. I am not experienced with making games, but I can... (by Smac89)
C++ Pass by reference with .h and .cpp files
 
I have a HUGE problem that is really putting a barrier between me, and development in C++. I understand pass by reference, But one thing I never seen explained ...
[1 reply] : Please leave an example with header files and explain in a brief para... (by cire)
Can't End Line
 
I get the following error in my program on lines 26-28: warning C4551: function call missing argument list Any help would be appreciated Thank you. #...
[6 replies] Last: Thank you all. Sorry if it looks like a stupid mistake, i'm very new t... (by ti83programmer)
Unable to use stringstream
 
Hello I was working on the code of a pong game in C++ and SFML 2.1 and had to use std::stringstream in my code. But when I declared a stringstream as follo...
[2 replies] Last: I have no idea if this will help you, but I did this when Ii was tryin... (by mack44)
Getting information from a website?
 
Well, first, hello everyone! Nice to meet you all! Now, here's my problem: So, i want to make a program that will take information from a website and proc...
[7 replies] Last: They are archived eventually which prevents any new replies, but they ... (by kevinkjt2000)
by stp777
Making an overloaded operator recognize a base class pointer's pointed object type
 
I'm having lots of trouble getting int main() { attribute *aPtr, *bPtr; aPtr = new size; aPtr->is = 1; bPtr = new shape; bPtr->is = 3; hypothe...
[3 replies] Last: I highly doubt this resembles your custom class code, but you gave so ... (by kevinkjt2000)
by nhix
OOP: Class (object) data type 'string'
 
I haven't been able to find a video or 'tut' that showcases what I'm trying to accomplish, which is this: Class must have a constructor. Class must have 2 cla...
[4 replies] Last: Is this OOP: Class (object) data type 'string' Class must have a ... (by andywestken)
c++ text rpg
 
Hello everyone, this is my first time posting on these forums so if I am in the wrong place, please let me know. Basically, I am trying to learn c++ and sinc...
[15 replies] Last: So something like this? class playerClass { public: ... (by willscarlet)
What is the purpose of Explicit Specialization?
 
I have tried Googling explicit specializations(function templates), but can't seem to warp my head around what the intended purpose of using it is. Can someb...
[8 replies] Last: You can use either with functions. But you should not mix the two; if... (by andywestken)
August 2013 Pages: 1... 2021222324... 51
  Archived months: [jul2013] [sep2013]

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