General C++ Programming - April 2010 (Page 8)

Hello all, i need with my assignment please!!!
 
Hello, i need HELP with this assignment please if anyone has done it or knows how to do it PLEASE HELP, i know nothing bout C++ been doing it for only 2 months....
[15 replies] Last: MSDN is usually pretty good for finding what you want. I've always fou... (by Mythios)
Fastest way to write a file
 
I have a file to be written: So to minimize the number of system calls to write(), I am dumping my lines into stringstream ss and then after n lines I am dum...
[13 replies] Last: Oh! You were expecting i%2 to be written as it binary representation? ... (by helios)
by shenh
How to change current directory in c++
 
I am using VC++, and need to run an exe file in another directory A. I assume i need to change my directory to directory A to run the exe. Since this exe reads ...
[1 reply] : The CreateProcess () function allows you to specify the working direc... (by Duthomhas)
class error
 
i have a small stupid error in my default constructor that i cannot figure out what it is GuessingGame.cpp:5: error: expected `)' before "tree" GuessingGame.c...
[1 reply] : Looks like the type "BinaryTree" is unknown. Perhaps a missing include... (by TheBear)
how to change number to *symbol??
 
im new to C++, for a class i have to create a program where the user enters a number between 1and50, and then outputs * in values up to that number ex: user en...
[5 replies] Last: im starting to understand the concept of a loop in a loop but i havent... (by chevyvan76)
Receiving data from serial port?
 
Hi everyone! I'm a new member here. First of all I would like to address my problem on C++ programming in serial communication. My program is expected to rec...
[no replies]
by yapic2
Cannot define the Default Constructor
 
I need help defining the default constructor for this following block of code. It's a list object that contains a linked list of coffeehouses, rated in two cate...
[5 replies] Last: cafe * const find(const char * const name) const; // Returns a ... (by jsmith)
about dynamic casting
 
#include<iostream> using namespace std; class base { public: virtual void fun() { cout<<" base ::fun()"<<endl; } }; class der...
[4 replies] Last: Nothing i was going through the dynamic_cast topic and want to underst... (by agoswami)
double free or corruption error
 
In the Headerfile I declare: static const int BT=37,WE=345,SN=264; int i; double *data_array ; In the Implementation File: //Const...
[7 replies] Last: THANK YOU! You guys are always so helpful- for those of you reading th... (by stavros)
Testing a multi threaded C++ application
 
Hi all, here's another thing making me think. I have designed a framework, which needs testing. So far, i have used UnitTest++ , the best C++ unit testing fr...
[1 reply] : Ahoi, i have found valgrind, the subtool drd does what i want. It i... (by TheBear)
Newbie: Boost Signal question
 
I’m working through the excellent Boost Online course that can be found here. http://en.highscore.de/cpp/boost/ I’m looking at the event handling chapte...
[no replies]
diagnosing input
 
when i type( 2 3 ) how can c++ read both of them and use them
[1 reply] : operator >> ? (by Bazzy)
Download file from https server using sockets
 
Hi, I have written the code for downloading a file from a https server using sockets in C++(Unix). However the file is only partially downloaded and the proble...
[4 replies] Last: Try to find your problem in line 11. (by imi)
by minix
MultiThreaded client server sample source code
 
Hi, Do anybody know any website, from where i can get a multithreaded client server sample source code in C++. Thanks a lot in advance. Andy
[1 reply] : http://tinyurl.com/25ggfuc Click on any link but the first one on t... (by Skillless)
Against own preprocessor flags
 
Hi there, I was reading one person's 10 tips for portable C code and the fourth states: Use Only Built In #ifdef Compiler Flags, Do Not Invent Your Own I g...
[2 replies] Last: I was wrong in writing "compiler flags", actually "preprocessor flags"... (by KarlisRepsons)
by danep
Improving a factory function
 
Hi all! This is my first time posting but this site has already been an invaluable resource- thanks for that! I have a factory function that goes something l...
[17 replies] Last: This is probably nothing like you need. But another way would be havin... (by Mythios)
Slicing Problem
 
How can I use virtual functions and pointers to solve a slicing problem? Thank you
[1 reply] : http://www.cplusplus.com/forum/articles/18757/ (by jsmith)
Count Frequency
 
This program will generate random number from 1 to 100. It depends on how many number you would like to generate. You can enter 500, then it will generate 500 r...
[2 replies] Last: Where I should add that part? In int main() ? or i should make another... (by teddymok)
getCurrentDirectory issue..
 
Hello... I tried using getCurrentDirectory to load a sub folder of my program... but it just says app.cpp: In function ‘bool load_files()’: app.cp...
[4 replies] Last: thx but i got it! (by closed account y8h7M4Gy)
forwarding and address
 
I have a function which is over loaded like this: void clear(string * var); void clear(int * var); In my program I call the function like this: ...
[4 replies] Last: You can do this with boost::variant, however I don't know your level o... (by jsmith)
April 2010 Pages: 1... 678910... 24
  Archived months: [mar2010] [may2010]

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