Beginners - June 2009 (Page 9)

by agaria
Pointers & Refrences
 
From pointers and references; which one is more efficient in terms of memory usage? Give valid reasons.
[3 replies] Last: http://en.wikipedia.org/wiki/Reference_(C%2B%2B) (by kbw)
by ab1988
fstream
 
when i run this code it gets compiled successfully but after running gives me an error and closes down abruptly!!! #include<stdio.h> #include<conio.h> ...
[1 reply] : str = (char*) malloc(sizeof(char*)); allocates a block of four bytes... (by kbw)
by Hoerne
Magic square - odd output in a correct(?) program
 
Hi, I am doing the magic square problem for my c++ class and I am getting a few errors. I was hoping you guys could give me a few hints on: Here's my code: ...
[3 replies] Last: Here is the code magic square. :))) template <typename T> T** al... (by pupkin)
Program closing out after I get input
 
My program is a game. Two numbers are randomly generated until they match, and the player must guess where these two numbers will match. However, at line 111 ...
[1 reply] : SOLVED. (by Warrior2089)
by wretch
C++ debugger extensions or API's ?
 
If I am stepping through a C++ debugger, I am able to see the current line being executed, values for local variables, etc... all through the IDE. Is there a w...
[no replies]
Rand and Floor
 
Hello, I'm having some problem with the floor and rand functions. What I want to do is create a random number 1-6 and make sure it's a hole number. Right now...
[11 replies] Last: Thanks, this helps a lot. (by EpsilonOmega)
by levone
unhandled exeption with try and catch even..
 
right now im learning about exception handling using visual c++ express. this code #include <iostream> using namespace std; const int DefaultSize = 1...
[9 replies] Last: oh, thank you Grey Wolf. thanks you to Null for the link. gonna look ... (by levone)
accessing static members
 
Hi, Imagine i have such code: struct A{ static int a; int Get_a(){ return a; // do something with a } }; struct B:public A{ st...
[2 replies] Last: That would be annoying if Get_a() was a longer function. I'm currentl... (by hamsterman)
Class & Template Recursion
 
Hello cplusplus.com Forums, I am pretty new to programming and I have been searching for ways to write classes and templates with recursive function and data...
[5 replies] Last: Thanks Disch, and again, thank you Hammurabi, with your help I have... (by AngelGithara23)
by GameOn
return type of v[i].size() where vector v is vector<string>
 
i was making a programme in which i had a vector<string> i need to return the string in this vector having longest length so i simply write this loop int max=...
[6 replies] Last: Now that's just showing off. :0) (by closed account z05DSL3A)
opensuse compile using konsole
 
I've just been given OpenSUSE as my workstation and I have no previous experience with it. I do have some C++ knowledge with using Windows and Visual Studio 20...
[1 reply] : g++ hello.cpp -o hello ./hello (by helios)
Book recommendation for a sort-of beginner
 
So I'm not a COMPLETE noob to programming and C++. I've programmed a few small things in VB and C++, like a few games using DarkGDK etc. I would say I know ever...
[1 reply] : Search the site (top of the page) for Book , You will find there are ... (by closed account z05DSL3A)
pointer with array
 
#include <cstdlib> #include <iostream> using namespace std; int LEN = 10; int j = 0; int k = 0; ////////////////////////////////////////// class par...
[5 replies] Last: thanks (by areyoupp)
"Address boundary error" with struct
 
I am using gcc 4.3.3 on Ubuntu 9.04. The following code: #include<stdio.h> struct TEST { int test; }; int main(){ struct TEST *test; test->test ...
[2 replies] Last: Oh I see. Thank you very much. (by lilydjwg)
character to Int conversion error...
 
Hello All, Here is my program followed by the error. its almost complete but for some reason it doesnt like one of the last while statements that i entered....
[9 replies] Last: You don't want the ';' after your while loops. Also, you still aren't... (by firedraco)
Trouble Importing Text Files
 
Ok. I need to import a text file called LOG.DAT and I'm having some trouble. I can't figure out where to put the file 'flag'...I guess, that tells you what to...
[2 replies] Last: Oh yeah...... ......thanks! (by ClarionCoder51)
mail.dat
 
hi i have this project and i need help with it, maybe someone can help me. please? im really new and really confused. "You're working for a company that's ...
[3 replies] Last: Oh, goody. They've gone from just wanting code to wanting well-written... (by helios)
Gpa Calc (1,2)
 
I am making a program in which i want to teke the Grade from the user and calculate his semester Gpa. There are 102 errors in this program. So plz help me...
[27 replies] Last: its kinda akward that you say dear in every post, just sayin (by jloundy)
Can't compile
 
As some other threads I have looked at stated, I am a very new member, working on my very first C++ program as we speak. I would be much further on with my n...
[7 replies] Last: I've gone to file > properties > advanced > and saw that it (for some ... (by Sanity Pig)
by namXut
save linked list to .txt
 
How does one go about saving information in a linked list to a .txt file. I have a working program that can read a .txt file and make a list but I am having tr...
[4 replies] Last: the info in each node is a bit big for that. each node of the list con... (by namXut)
June 2009 Pages: 1... 7891011... 18
  Archived months: [may2009] [jul2009]

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