Beginners - January 2014 (Page 19)

Can't define a function in struct
 
Tried to google the solution, couldnt find anything. #include <stdlib.h> #include <string.h> ...
[4 replies] Last: Got it. Changed the name of the file, and it worked. thank you. can u... (by codewalker)
by Jazpy
memory corruption when inserting elements into vector
 
Hello, I'm trying to create a fractal design with C++ and OpenGL, however I've run into trouble with...
[2 replies] Last: Thanks you very much, keskiverto, It's working great now (by Jazpy)
Can't constructors be call in other methods?
 
I'm writing an explicit assignment method, i find a big block of codes are same as copy constructor,...
[2 replies] Last: I'm writing an explicit assignment method, i find a big block of code... (by Cubbi)
Declaration variable of type specified by string value
 
Hello. I wonder if there is any way to declare variable of type specified by string value. For examp...
[2 replies] Last: The basic problem is you're treating compile time and run time ideas. ... (by kbw)
Creating portable stand alone application in Visual Studio.
 
Hi folks and gurus, I am an absolute newbie. I just wrote a simple program for temperature unit c...
[11 replies] Last: By being a Windows executable, it is not portable but is, by definitio... (by LB)
undefined reference to `swap'|
 
Hi all! it's my first time posting on this forum altho, I used it for a while now. I tried to find t...
[6 replies] Last: Nah, i just defined it wrong. after few tries and some google. i defin... (by Simon Izraev)
by Nata
Vectors. I do not understand why my program is not right. help me out please:)
 
I should input cin n integer, which will be stored in a vector. From positive numbers I should cout ...
[8 replies] Last: Thank you very much!!! (by Nata)
What is the difference?
 
what is difference? 1) c = (f-32)*5/9; // result OK. 2) c = ((f-32)*5)/9; // result OK 3) c = ((f...
[7 replies] Last: You're welcome. (by MikeyBoy)
by xkara
How to filter out integers in a string of Vectors
 
I am new to C++ and the code below is a general concept of what I have std::vector<string> x; st...
[3 replies] Last: You could use a string stream and stream the numbers and discard or st... (by giblit)
Working with Arrays of Objects
 
In my main.cpp function, I'm trying to print out an array of objects which I called "Friends." When ...
[5 replies] Last: Yeah what I was trying to do is this. (This may be what you said) Her... (by JRimmer)
by cmog
if statement trouble
 
Hi, this is like only like my third c++ program, so I apologize if it is riddled with errors. The pr...
[3 replies] Last: Thanks for the tip and yes I do now see that the sign was the wrong wa... (by cmog)
by venros
Multiple User/Pass - While Loop
 
Hi Guys, I need help with this program, I tried multiple things already but nothing is working. Cur...
[6 replies] Last: This site has a pretty good reference section :P http://www.cplusplus... (by giblit)
by Tieria
1st project of intro C++ course compiling error
 
I am taking an introductory C++ course and am attempting to complete the first assignment. The task...
[11 replies] Last: After the user enters a number they press enter. Pressing enter genera... (by Yanson)
Trying to figure out
 
Hi, new to this. I am trying to figure out where I am going wrong with this code. Thanks #include...
[5 replies] Last: Im trying to figure out this sorry I thought it all went in thank you ... (by nwhis001)
by slour
Add values (1,2)
 
I am in need of help writing some code to open a file take two values, then add them together and ou...
[31 replies] Last: Look at line 4 very clearly...I have no idea what that is supposed to ... (by giblit)
How can I increase the char capacity? (1,2)
 
This program is supposed to convert a 1-10000 characters line to binary code. When I enter more than...
[24 replies] Last: Thanks a lot! The problem is in the input method not in the char capac... (by omareg94)
The result does not happen
 
I did this code and my result always shows me 0. double c; double f; int main(){ print...
[6 replies] Last: If control reaches the end of main without encountering a return stat... (by JLBorges)
Translation from C to C++
 
I have debugged this code and it works perfectly fine in C, but I'd like it to work in C++. If a...
[7 replies] Last: Actually I guess C does have bool type (well the recent versions of it... (by Smac89)
expected ';' before '{' token
 
Getting the following error: expected ';' before '{' token. Error is in line 3: for (int i=o;i { ...
[5 replies] Last: Since for-loops uses semicolons to separate them, you need to add one ... (by ngbeslhang)
help with open GL (C++ 2008)
 
I want to draw a car and house but I could not set the vertex of them even though I did draw square ...
[2 replies] Last: Opengl is a language agnostic standard. There are bindings for many l... (by closed account 3hM2Nwbp)
January 2014 Pages: 1... 1718192021... 44
  Archived months: [dec2013] [feb2014]

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