General C++ Programming - April 2011 (Page 34)

Finding the MaxSum of two numbers
 
Hello! I was wondering if anyone can suggest a solution to my problem. The main objective of this...
[1 reply] : Given three integers A, B, and C, write in English how you -- a human ... (by jsmith)
by avnis
option 4 crashes with a wrong input
 
it crashes after city not found so here is the code http://pastebin.com/Vgy5dKt5 if you run and r...
[1 reply] : line 230 cout << cities[findLocation(citynm, cities)] << endl; if y... (by Mathes)
Overloading exception::what()
 
Hello guys, I've created my own exception class which is inherited from the class std::exception....
[2 replies] Last: ah! thanks a lot buddy! it has worked :D I'm grateful :) (by TheDestroyer)
New Operator
 
Can use mix up new operator and free().if not why? And please give internal details when new,delete,...
[9 replies] Last: If you allocate an object of std::string for example, it will allocate... (by Bazzy)
TaskBar icon Problem
 
I'm writing a program in c++ using CodeGear platform. I have an icon in my application but when I lo...
[no replies]
making an array with a struct
 
i have created a certain struct and i want to create 8 instance of it as an array. struct Accoun...
[7 replies] Last: Actually I cut and paste it from his message. From what I understand ... (by Azagaros)
entering in the code using "//" and "/*/*"
 
There are two ways to enter comments in the code. 1: Using // 2: Using /* /* What's the ...
[7 replies] Last: @OP: I personally don't use // except to diagnose something or insert ... (by ciphermagi)
by Comhk
[Help] Using same header in different Form
 
I have made a header file called Record2.h Howvere, I can using it in Form1.h and Form2.h in the sa...
[1 reply] : Try not to include header files inside of header files, instead includ... (by ciphermagi)
Is parents created first or the child ?
 
Which constructor are called first? and why? Parents are like a member variable right? Don't we cr...
[1 reply] : parent (by closed account 1yR4jE8b)
Can Destructor be Called Automatically?
 
void HelloWorld() { string Hello="Hello World"; } As we know, the string implementation of sta...
[7 replies] Last: I've heard a lot about this boost thingy. Will try. Any smart pointers... (by teguh123)
Do while loop problem
 
I'm trying to make a rpgish text based game and when I get to my makeshift combat system (which is a...
[3 replies] Last: No problem, they're just little tricks that make coding a little easie... (by ciphermagi)
Trying to deal with string to int conversion
 
Hello I'm taking an intro c++ class and we are creating a program to use zeller's equation from a us...
[17 replies] Last: Glad you got it to work. (by shadowfox)
Very beginner error. Console closing to soon.
 
After I press enter after it says enter second number and I do it automatically closes even though I...
[8 replies] Last: @ jumper007 You're in over your head. Why don't you calm down and lea... (by Duthomhas)
program exited with code 3
 
I made a savegame loader to load basic game information (level, etc) and then information for each o...
[5 replies] Last: Thank you! I would never have caught those! In my game, they would hav... (by ModShop)
conio and buffer
 
Hi I was searching to understand the function of conio.h. I found this on the page mentioned in "...
[4 replies] Last: Azagaros, thanks a lot for your detailed reply. I would ask some follo... (by jackson6612)
by amiref
Problem of dirent.h
 
Hi When I use #include <dirent.h> in my C++ code this error happen : " Cannot open include file: '...
[3 replies] Last: dirent.h is a POSIX header so to have it you should be in a POSIX envi... (by Bazzy)
reading
 
If for instance I have a text file that contain the data below. Here I call it as mytextfile. 2 ...
[10 replies] Last: Sorry.. I already edit that part in my previous post. it suppose to be... (by student 123)
Sax-Parcer
 
Hello Guys! I want to create 2 applications for analysis of xml via help of sax-parcers msxml and li...
[2 replies] Last: It was question without question Mark. (by Uzumaki)
by Faurax
Values to heap question (1,2)
 
Hi, i´m Faurax and I got two questions about writing to ram/buffer/memory. The lower lines of inte...
[23 replies] Last: Once again, thanks! (by Faurax)
by Xabre
Pointers the final frontier...WTH
 
Hi you guys, it seems that my C++ skills are super rusted these days... i have the simplyfied p...
[9 replies] Last: woops:p never old enough to learn:p thx! (by Xabre)
April 2011 Pages: 1... 323334353637
  Archived months: [mar2011] [may2011]

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