General C++ Programming - September 2010 (Page 3)

Some feedback please
 
I just created this program and I would like some feed back. It does geometry equations. Notice I haven't done the triangle equations. #include <iostream> us...
[4 replies] Last: I'm also 12 so I think this is a big achievement for me. :D (by Fbar800)
by chee
linked lists c++, pass in and pass out
 
the code works, but im having a little trouble with the output. #include <iostream.h> #include <fstream.h> #include <stdio.h> #include <stdlib.h> #inclu...
[1 reply] : hello chee, that format isn't easy to read. Does your code always l... (by coder777)
stack memory and heap memory
 
Difference between stack memory and heap memory?
[1 reply] : This is explained in our tutorial area. This should also go into the B... (by closed account S6k9GNh0)
by Heinz
Trouble with my homework
 
Problem Statment : A person born in the 18th century was x years old in the year x 2 . Is there a corresponding puzzle for the 19th Century? also show...
[18 replies] Last: i have the same problem, and need some help. Could you guys look at my... (by zonk)
by bobmac
Saving, editing, retrieving and deleting record from and to a text file
 
I am a new in C++ programming using dev c++ editor, does somebody could show me a sample source code on how to save, edit, retrieve and delete data from and to ...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by LB)
by mking
Overloaded[] Operator with 2D Vector
 
I am trying to use a 2D string vector as a class private variable in unix with the bash subshell. It is a requirement that the overloaded operator be used in c...
[15 replies] Last: [quote=L B]Sounds like a mentally unstable constructor. Yeap. @mk... (by m4ster r0shi)
Wondering I there are any websites to share.
 
Hello. I have been programing off and on with C++. I'm not very good, but I just created I very good program (It was good for a begginer). I was wondering if th...
[3 replies] Last: It is quite difficult to get someone to review your code in any site i... (by naivnomore)
by LB
This is supposed to crash...right?
 
I ran this code through the VC++ debugger to see what would happen. All that happened was nothing...the program continued as normal after this code. { int* a ...
[9 replies] Last: You guys are skipping over posts. I mistyped my code. (by LB)
i really can't give a title to this. please assist!
 
okay I'm making a POS system for a grocery store and i'm kind of stuck. for example, lets say I have a variable called cheese which is equal to 5. I have anoth...
[14 replies] Last: What you both suggested doesn't seem it work. I have a theory that ... (by the2kanman)
by Icy
A quick question
 
Hello everyone.My name is Icy and i am new to this forum.I have started C++ a while ago and this site has been my main source of information.Ok now my question....
[6 replies] Last: When you chose an identifier for your header guard you have to make su... (by Bazzy)
can't figure this on my own..
 
I have a class GzMatrix,Gz. and a struct GzVertex. GzVertex struct is defined as below. #define X 0 #define Y 1 #define Z 2 struct GzVertex:public vec...
[2 replies] Last: I've no idea what this Gz stuff is about, but surely fromVertex() shou... (by Pax)
strcat for char[] & char *
 
I have written code in following manner - part of code is map<std::string,char *> a; char y ; sprintf(y,"add this string : %d",val); char *x = a["M"]; ...
[8 replies] Last: My mistake. The test should be: if (p == a.end()) (by kbw)
by sag430
filler in struct
 
Hi, I m new to this forum and new to c++.I need to use filler in structure.I dont want to change the size of struct that i am receiving from server but i would...
[4 replies] Last: A union is a variable that may hold (at different times) object of dif... (by kooth)
by ozzyh
Printing error
 
ok so this is my code for some Movie rental thing there seems to be no problem during compile time but in runtime when i enter some character in cin >> choice; ...
[2 replies] Last: thx a ton Luc! (by ozzyh)
Multi-level inheritance problem in MICO 2.3.13 with cygwin
 
Hi All, We have a problem when running MICO 2.3.15 on cygwin, here is the transcript: // ERROR -- Unhandled exception caught: caught signal 11 - SIGSEGV:...
[no replies]
by garob
Operator precedence
 
Hi I was looking up operator precedence on wikipedia for my current project of making an interpreter and it says that in C and C++ the operators <, <=, >, >=...
[4 replies] Last: but if that is changed to [...] Precisely. (by moorecm)
Vector Erase and C++ boost paths
 
Hi Guys, I'm pretty new moving from C to C++ so please excuse me if this has an obvious answer... any help will be much appreciated. I am using the boost ...
[2 replies] Last: Oh dear... school boy error! Sorry chaps, don't bother reading further... (by jameshume)
compile error
 
I am having a error that I can't figure out.The following error occurs in the IF conditional statement. invalid types `char ' for array subscript for (in...
[7 replies] Last: [quote=sohguanh]C++ compiler is smart enough to figure out the first d... (by Galik)
by dlugo
Name spaces in classes.
 
Hello! I have two functions that are called the same but pull in different info. How do I use using namespaces in a class? I know how to do it with a function ...
[5 replies] Last: The name of a thing matters. Along with its type , a thing is uniqu... (by Duthomhas)
classes
 
can we create a class within a class??
[4 replies] Last: You can only initialize objects (by Bazzy)
September 2010 Pages: 12345... 20
  Archived months: [aug2010] [oct2010]

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