General C++ Programming - May 2009 (Page 9)

What type of cast to use
 
Hi all! What is the appropriate cast to use in tine 5? #include <stdio.h> #include <string.h> int main(int argc, char *argv ){ char character; if(str...
[3 replies] Last: char character = {0,0}; character = the_character_you_want_to_... (by Disch)
More than 64 Winsock Sockets?...
 
Hey... I am working with Sockets at the moment to create a small chat program. But i read about a limitation of the number of sockets supported by Winsock......
[5 replies] Last: yes thats what i said.. i will go with what the above posts said.. ... (by writetonsharma)
what the meaning of * in C++
 
//-------------------------- struct RateInfo { unsigned int ctm; double open; }; struct MqlStr { int len; char * string; }; # define ...
[2 replies] Last: big thanks to GREY WOLF it really help ~~ (by chiwing)
writing a binary file
 
Hi, i'm working on a little compression project. I wanted to ask you how could i put my compressed data into a file. Here's a little sample to help you understa...
[15 replies] Last: Ok, I changed everything using <fstream> library instead of <stdio.... (by Tarnish)
by wretch
refactoring C++
 
Does anyone have any experience with good C++ refactoring tools, either open source (preferably) or commercial? The most basic refactoring would be applying ...
[1 reply] : There are only two that I know about . Visual SlickEdit (commercial) a... (by PanGalactic)
by nanger
about member class object
 
if there is a class object which is a member of another class i.e class in {.....}; class out { private: in in_example; ..... ...
[1 reply] : Yes. Moreover, you can specify which constructor will be called with ... (by helios)
by JacKal
UTF-8 in DEV-C++
 
Hi everybody! I would really appreciate any help on this. I have googled for an hour without a result. Few different hints but no one understandable enough. ...
[6 replies] Last: can you really write "я" in Dev-Cpp ? I can't write unicode character... (by ganjaman73)
my first project
 
hey friends i have got my first project as follow: IT Enabled interaction system. A system through which user can post/receive a message to/from a user, group...
[2 replies] Last: Not enough info. "On login": does that mean when you log into the o... (by Hammurabi)
by hicks
Running average
 
Hey I was told to find a running average using this code to find the radius of a circle. any idea on how to do a running average?: void DrawStuff() { CO...
[no replies]
Reading in doubles from a text file
 
Hello, I currently have a text file I call num.txt which contains 0.0016 So just one number and that's it. when I run this code #include "std...
[10 replies] Last: double d; scanf( "%lf", &d ); http://www.cplusplus.com/referen... (by Duthomhas)
by Denis
own operation system
 
Hi folks, As I think a lot of developers dream by own OS. Maybe we can do it together ?
[1 reply] : up up up (by Denis)
by nanger
to define a derived class or modify the original class
 
I want to modify a class in a software. the class is class Chunk { ChunkID c_id; ///< The ID number (sequence number) of the chunk Time c_initiation_t...
[2 replies] Last: And another example. Please see in function print(). It wasn't modifie... (by Denis)
Recursion in C++
 
I'm a java programmer and I really can't find my coder error. I have a normal recursive method in my program: int i = 0; void Graph::calc(){ if(i...
[6 replies] Last: void SPBruteForce::getSPAll(Vertex *e, Cycle *c){ Cycle *b = n... (by Denis)
Splitting string based on Delimiters
 
hi, i need a solution. I have a string which contains some thing like string str = "my , name . is ' heman`th"; i need to extract the invidual words i...
[2 replies] Last: inline std::vector < std::string > split(const std::string &s, const c... (by Denis)
sorting a vector of pairs:
 
i am sorting a vector of pairs. and the pair is pair<int,char> when i am sorting the vector, it is sorting in ascending order having int as primary key and ch...
[4 replies] Last: Your function does not match your initial requirements because it does... (by jsmith)
Calling in files
 
How do i code a search through my working directory in order to use a switch case so that i can display cases of files to open... In this case i have 3 .csv ...
[1 reply] : switch only works to compare an integer to a static number of options,... (by helios)
static Data Members initialization
 
hi every body......... There are two ways (I know) to set the members I tried both but none has worked I'm gonna show you a Template of what I have(My code...
[6 replies] Last: }; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); I'm so... (by vbnetskywalker)
Is this performance gain possible?
 
I have an application I'm working on which does a lot of data processing. It's threaded, and the number of threads used in a given run can be set as a command l...
[4 replies] Last: 128 is already way too much, but 50k? Still, it's an interesting ex... (by Hammurabi)
XML files with C++
 
Hello all Are there any in-built functions in C++ to manipulate xml files? If yes, which ones? Which Library? Thanks & regards Vijay
[9 replies] Last: libxml2 ( http://www.xmlsoft.org/ ) and libxml++ ( http://libxmlpluspl... (by PanGalactic)
Syntax Highlighting
 
Who has a complete non-mfc source code of an example or a software that forms syntax highlighting? I'm looking for it. Thanks.
[1 reply] : There are a lot of open source apps that do it. Search the 'net. (by jsmith)
May 2009 Pages: 1... 7891011... 17
  Archived months: [apr2009] [jun2009]

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