Beginners - June 2011 (Page 25)

by ELoken
Can't figure out how to implement classes in codeblocks (Learning from Sams Teach yourself C++ one hour a day)
 
Hi everyone, I'm new to this forum, so I thought I should introduce myself in order for you to better understand my situation. I'm a finance student spending...
[7 replies] Last: Figured it out! :D Thank you for your assistance :) (by ELoken)
Ctor, CopyCtor and const pointers
 
How Constructor, copy constuctor and overloaded "operator=" handles data members of type int* const i; cost int j;
[1 reply] : A compiler will refuse to generate a default constructor or a operator... (by guestgulkan)
Working with copy constructor and overloaded operators
 
Well i am new to c++ programming, i was trying to play with copy constructor and overloaded operator. They both worked fine individually but are creating proble...
[6 replies] Last: Problem solved... Thanks jsmith (by mahendrag)
nested loops
 
Im currently taking my first c++ class and i am having a very difficult time understanding nested loops. Could someone walk me thru it? how does the inner loop ...
[5 replies] Last: lnicole3 of course.......each time it is initialized.....or rather you... (by david91)
by caneta
Serialize a vector of lists with boost
 
Hi all. I have a program, simplified as follows: #include <vector> #include <list> #include <fstream> using namespace std; class MyObj { int val; public: ...
[no replies]
by ascii
Question Involving Inheritance
 
Hey guys, I have a question involving inheritance (hence the title xD). I'm trying to understand how initializing variables that a derived class inherits by c...
[2 replies] Last: Alright that makes sense. So when the CBox class is filling out the b... (by ascii)
accessing functions from other objects (1,2)
 
Hi - I'm trying to remember how to do this. Let's say I have classes A, B, C and D. Class A contains an object of class B. Class B contains objects of ...
[29 replies] Last: I think that did it, ne555. I'll test in the AM and report back. Thank... (by mzimmers)
z+y+z = -2314234124 and to this I say "What!?"
 
This code compiles fine. It accepts my values. Instead of returning 1+1+1 = 3 it returns a random number. I keep going over it but I am too new to spot my mista...
[13 replies] Last: [quote=Disch]It's like kfmfe04 said, 1 function = 1 task. This style s... (by moorecm)
Complete novice at C++
 
Right basically I know not heads or tails with C++, ive had some expirience with VB but in all honestly that's about the extent of my programming knowledge. I w...
[9 replies] Last: If you want to write a console application, run it from the console. T... (by Mathhead200)
by Mike1
Multiple Windows (1,2)
 
Hello. How would I make 2 windows? I would like to have the main window then have an About window like in most programs. I can make the main window but I don't...
[25 replies] Last: This should be the whole thing. #include <windows.h> /* Declar... (by Computergeek01)
pointer documentation example not working
 
Im currently reading this: http://www.cplusplus.com/doc/tutorial/pointers/ there i can see this: As in the case of arrays, the compiler allows the speci...
[14 replies] Last: Thanks. I'll do my best. My noob powers are at max today ;) (by adabo)
Beginning
 
Hi there, was just wondering if anyone can refer me to a GOOD book on beginning with C ++?? I am 16 and I understand the C ++ syntax but I don't lnow when t...
[7 replies] Last: I don't think that everyone is a dumb-ass when they start, I think eve... (by ascii)
Beginners C++ headache
 
I have been working on getting this code for four days now and cannot figure out what I am doing wrong. I get the complier log down to 2 errors make one change ...
[2 replies] Last: while 9 cash... while ( cash... surely? Just how many files ar... (by Moschops)
by rucafe
Syntax error
 
I have a .h that looks like the following: #ifndef dm_Steps_h #define dm_Steps_h #include "dm_Steps.h" #endif #ifndef dm_Tracks_h #d...
[2 replies] Last: vector is in the std namespace, so it must be std::vector. On another ... (by Athar)
fatal error: IOStream: No such file or directory
 
I know this is a topic well discussed, but I have looked through this and other forums, but others mistakenly use .h. I am running Ubuntu with G++ 4.5.2. My...
[5 replies] Last: Thanks everyone for the replies. I figured out my issue here. I don'... (by scratch509)
by camkii
EXC_BAD_ACCESS
 
I am writing a simulation that uses two classes that I have defined. One is called Network and one is called Neuron. One of the public members of Network is a...
[3 replies] Last: actually, kev82, you were right. (by camkii)
file to vector, edit vector, vector to file
 
I am very confused on how to do this. I have a file that tells you if a plane seat is available or not. I want it so that upon the user booking a seat, the si...
[no replies]
Unions and Structs
 
What is the difference between an Union and a Struct?
[14 replies] Last: Yeah, sorry - I wasn't on top form earlier... I meant to say "It won't... (by anonymous23323124)
by ascii
Heap Corruption (1,2)
 
I've been trying to define my own string class and have barely gotten started but am already getting an obnoxious error :/. I'm getting a "Debug Error: Heap Co...
[25 replies] Last: Alright thank you, I switched those two around :) (by ascii)
by Prudok
Words
 
I know, i ask a lot of questions, but don't blame me, i am just beginner. I tried to find about it in the internet, but nothing. So, my question is : I need, t...
[3 replies] Last: Thanks, this part of code is very important for my programm. 2Computer... (by Prudok)
June 2011 Pages: 1... 2324252627... 41
  Archived months: [may2011] [jul2011]

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