Beginners - June 2010 (Page 2)

by Kyon
Header file optimization
 
Heya, I'm just creating some random stuff to kill time and I was just wondering if there was anyway to further optimize or in anyway improve the following code:...
[6 replies] Last: unary minus? use boost::operators where possible provide friends... (by jsmith)
need multi thread programming tutorial...
 
hello everyone. i wanted to do a multi thread programming. but i am unknown about it. i did some example. but i did not get what i want. can anyone give me a ...
[2 replies] Last: You'd better use the boost threading library: it's in C++ ( not C ), i... (by Bazzy)
by Claymz
default constructor for child classes?
 
Hi, is it possible to make default constructor for derived classes? Or can default constructor only be the parent class itself? TY
[7 replies] Last: Ok, i figured out everything now, thanks to you! (by Claymz)
Using more than one file
 
I am thinking of using more than 1 file for a project. I wrote a program for test purposes..Some appears to be wrong,have I missed something very basic? mai...
[2 replies] Last: Thanks....will be testing classes now.. (by manasij7479)
Do I need to use cin.get()
 
Our lecturer at Uni said we should use cin.get() after every using of cin , so that the newline char isn't left in the buffer. However I wrote the following...
[1 reply] : see this post: http://www.cplusplus.com/forum/beginner/24470/ (by sourena)
by myspip
Method in a class calling upon method in encapsulated class variable
 
Sorry for the confusing title; as a newbie I haven't learned much of the jargon. Okay, here's the simplified structure of my problem. I apologize in befor...
[4 replies] Last: Ah, you are entirely right. When I tried the latter part i forgot to... (by myspip)
aphabetical sorting
 
Hi,im trying to write a c++ code for aplhabetical sorting.... I succeeded partially...But the code wont work if the number of characters goes beyond 6. I ...
[5 replies] Last: ya....that is a better idea..thank you. (by pratap04)
by Drj312
counting values
 
I'm writing a program that reads a list of sales prices and then outputs them along with the highest and second highest sales along with how many times they occ...
[2 replies] Last: By the way, try getting the habit of commenting on your program (use /... (by kaduuk)
by kulfi
two cpp files
 
hi, i am just new to c++ and the compiler i am using for this visual studio 2010 i want to know that can i work with two executible files in one project. thank...
[2 replies] Last: I'd think you're saying you'd like to be able the first .cpp file at t... (by kaduuk)
string conversion problem
 
Q: input : 23/1/2010 output : January 23, 2010 #include <iostream> using namespace std; int main() { string operation; int a, c...
[5 replies] Last: Are you sure that b needs to be a string in the first place? a and c a... (by Galik)
While Statements
 
I am having some problems with the program I am working on. Thanks for your help! Sarah /* This program will ask the user for two numbers between 0 and ...
[15 replies] Last: [quote=xcrossmyheartx]Can somebody tell me what these lines of code ar... (by filipe)
by sendjy
compiler can't find memeber function
 
...
[2 replies] Last: ohhhh, i've actually read about this from a book. Thanks a lot. (by sendjy)
Problem with member func. O.L
 
while Compiling this code, compiler(both dev c++ and visual studio), return following Errors : Error 1 error C2801: 'operator ' must be a non-static member E...
[2 replies] Last: thank you very much! R0mai! (by hamed2005)
how to use .net containers
 
now i'm trying to use System::collection::Generic::array and List and LinkedList i tried to set the array type of my defined type as i made a new class ...
[5 replies] Last: [quote=mohamedhassan]is my question in algebra !!!! Your question is a... (by Bazzy)
by Krahl
#Include and functions
 
Hi, I'm very new to C++, i've just began learning a few days back and wrote 4-5 programs which are just very simple programs. This is my 5th program, it work...
[4 replies] Last: Thanks Disch, Sourena and Kyon for your time and your repies. I kne... (by Krahl)
what is a "Future"
 
is there something called a "Future" in c++ and what exactly is it?
[1 reply] : There's not. It will be a feature of C++0x threading library http://w... (by Bazzy)
Organizing Dates/Times
 
Hi all, I'm trying to think of a way to organize time stamps. Basically I'm reading in a CSV file and need to chronologically sort the data by the parame...
[4 replies] Last: Boost.Date_Time: http://www.boost.org/doc/libs/1_43_0/doc/html/date_t... (by moorecm)
by Sorcus
Typedefs of boost types inside classes
 
Hi all, I am trying to use Boost with C++ for a project that I am working on, When I try to do #include <iostream> #include <boost\multi_arr...
[1 reply] : You can't initialize the data member myArray in that way; it has to be... (by jsmith)
case problem.
 
the first bold line gives me an error error: no match for 'operator<<' in 'std::operator<< [with _Traits = std::char_traits<char>] the second bold line gi...
[5 replies] Last: yeah, sorry, that reply got added right as i posted.... thanks anyway... (by Blooded)
Errors again
 
Hello everyone I post last night with this same code, and I got a lot of advice. But there are 3 more errors that persist after I changed the code a bit. Anyone...
[2 replies] Last: diameterMain = diameter(radius); circumferenceMain = circumference... (by sourena)
June 2010 Pages: 1234... 26
  Archived months: [may2010] [jul2010]

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