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

problem with template and inner struct
 
Hello, I'm having a problem with the following code: template <class T> class List { stru...
[2 replies] Last: sorry, I couldn't copy and paste the code, it was just a typo, this is... (by kleberstender)
Confusing object issue....
 
I'm trying to set up this project but I'm getting caught on strange errors. #include<iostream> ...
[3 replies] Last: Nevermind, I somehow fixed it. Thanks anyways. ^^ (by hamnat487)
Errorss.....
 
Hey im getting a couple of compile errors in this thing im trying to compile could someone help me o...
[3 replies] Last: Did you copy it from Stroustrup's book, modular programming paragraph?... (by m4ster r0shi)
by emko
character frequency class
 
Hi, I need to make a class that counts the ASCII characters from a file, and outputs the count o...
[2 replies] Last: I understand now. Thanks a lot (by emko)
by DLNOOP
Convert char to String^
 
I have data in a char variable defined as char . I need to display the char data in a textBox but it...
[4 replies] Last: Thumper, YES! THAT'S IT!! Thank you! Thank you!!! (by DLNOOP)
by onako
Append to each line
 
My file needs to be updated frequently, meaning that new data has to be appended, but in a very spec...
[3 replies] Last: That's very wasteful with filesystem resources. You only need a maximu... (by Duthomhas)
overloaded '<<' and '>>'
 
Hello everybody. I wrote a class like below: class MYCLASS { private: char Number ; ...
[3 replies] Last: std::stringstream is a subclass of iostream. http://www.cplusplus.com... (by R0mai)
by spamme
#define + template
 
Dear all, on top of my program I would like to define the applied data type to switch easily betw...
[3 replies] Last: And main should be declared to return an int ( int main() )... (by Bazzy)
by LB
Compiler Bug or User Error?
 
I'me getting some strange errors with some code here. I am not sure if it's a compiler bug (this err...
[5 replies] Last: Oops, I didn't see the rest of the errors! Full build log: http://pas... (by LB)
Learning Template
 
I'm learning template and trying to built fixed_vector which will function same as STL vector but i'...
[3 replies] Last: Hi guestgulkan, Ya you are right. That was only the problem. Thanks ... (by sujalsheth)
by zoeloe
Inheritance and polymorphism
 
What is a difference between Inheritance and polymorphism?
[1 reply] : Inheritance is when one class carries over functionality of another. ... (by Kyon)
by hannes
Null-terminated string operation
 
Hi, I'm making some null-terminated string operations, and for one of me operations i need de re...
[3 replies] Last: ok, i'll use the string class. hannes (by hannes)
Practicing Enumeration
 
Hi there. I'm practicing enumeration. I wrote this program in which you enter the day of the week ...
[5 replies] Last: enums can be used anywhere an int is required - you dont even need to... (by R0mai)
problem with void pointer
 
Hi, I just wrote a simple program, but it is not working as expected.. #include <stdio.h> ma...
[5 replies] Last: Haven't worked with them for a while, forgot how to use them, Disch is... (by Kyon)
by upad
array problem
 
the following code is supposed to read an array of exam scores for a lecture section of up to max_si...
[3 replies] Last: void readScores(int, int, int&); //prototype void readScores(int sco... (by ne555)
Display junk values
 
hi guys i am trying to work on the file and array at the same time. first i am trying to open the fi...
[9 replies] Last: Why don't you use a std::vector? #include <iostream> #include <fs... (by filipe)
main function
 
Hi, I have seen the main function declared as follows: int main(int argc, char **argv) { ...
[6 replies] Last: And to complete the number of different ways to print out the argument... (by jsmith)
by yman
Exception HANDLING speed
 
Hi! Another question on speed, now concerning exceptions. I know that exceptions are not the faste...
[14 replies] Last: In my Java code, when I call that method I need to have a try/catch... (by xorebxebx)
array question
 
in php i can do an array like this Array ( => Array ( =>...
[5 replies] Last: Hi Carlsum1986, If I am not mistaken, you would like to define sever... (by naivnomore)
by vukki
bug or feature
 
I've wrote some code which failed to compile by gcc-4.4.1: //here was mistake - struct written i...
[13 replies] Last: Thank you for the enlightenment. I guess every compiler we tried wa... (by jsmith)
September 2010 Pages: 1... 7891011... 20
  Archived months: [aug2010] [oct2010]

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