General C++ Programming - February 2009 (Page 8)

class working with int or string
 
We've been working on a class (bag) that holds values in no particular order. This is the original d...
[2 replies] Last: DOH!!!!!! I am so used to using string without specifying the namespa... (by grcunning)
Manipulating packets data within a network
 
Hi everybody! I am a newbie in cpp and I am trying to make some changes in a simulator through st...
[no replies]
Creating a function like Sleep()
 
Just wondering if it's possible to make my own function that does the same as sleep. To wait for a c...
[11 replies] Last: There is a lot more code than this but heres is the code I'm using. I ... (by Mythios)
hash calculation
 
For the function: unsigned int f(const String& S) { unsigned int i; long unsigned int bigv...
[1 reply] : I think your bit shift is wrong. Try (bigval<<16) . (by helios)
by ghkdyd
about .. Run time error..
 
I am using eclipse & mingw for c++ programming. I usually handle (multiply, tensor product ) big ...
[4 replies] Last: This sounds like a stack overflow to me. (by helios)
conversion from string to byte
 
hi, how we convert from string to byte, typedef unsigned char byte; string buffer; ...
[3 replies] Last: There's a member function on std::string that will do step 1. That gi... (by kbw)
project for dynamic allocation
 
Alright guys im honestly at the novice to begginer status of programing and im in the progress of a ...
[13 replies] Last: I've just seen that you missed one requirement for task 5 "poly::eval"... (by onur)
problem with cirillic
 
Hi, i have problem with printing cirillic symbols to console. here is my programm #include <ios...
[6 replies] Last: ... (by Mythios)
sort vectors based on other vectors?
 
how do i sort a vector based on the sorting of another vector? this is probably an iterator questio...
[2 replies] Last: It would be much easier if you had an vector of a struct or class cont... (by onur)
invalid use of member (did you forget the &?)
 
hi everyone, this is my first post, so bear with me. this is driving me insane. im trying to write...
[2 replies] Last: Haha - yeah got to admit I've missed that myself a few times from typi... (by Mythios)
parsing text file
 
hi i'm new to this forum but not so new to programming except that i've never really messed with rea...
[1 reply] : getline(file,*ch); Using a string type, not a char . Same for the .... (by Zaita)
by jui
Reading files in a vector or list and save these
 
Dear Expert Programmers, I need your help and advice in the following question and I will apprec...
[1 reply] : for (int i = 0; i < (int)files.size(); ++i) { FileWvIn tr(files ... (by Zaita)
Template List class wont display insertEnd.
 
Dear All, I am no where near a genius and most of this stuff jsut confuses me. Ive been seeking ...
[1 reply] : Hi! I guess the first code is list.cpp. This one must #include "list.... (by Smok006)
why i cant run program
 
why when i try run this program there is written STOPPED? :( #include <fstream> using namespace ...
[7 replies] Last: =\ errr ok (by Zaita)
by sknew
Loading and Saving XML files
 
I have to write a code in Native C++ using which i have to load the contents of an XML into GUI and ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by tition
Calling a template object's member function
 
Dear all, Recently, I wrote some code for computations with polynomials (stuff like x^2+xy+5 - ju...
[11 replies] Last: One word of Advice. "ElementOfCommutativeRingWithIdentity" Is very lon... (by Zaita)
space character bug using vectors
 
hi all ,as I know the C++ line spaces and the tab characters and the comments are dropped out when...
[1 reply] : Some older compilers do not handle the ambiguity of >> correctly. >... (by jsmith)
by ddii
Namespaces compile error
 
What is wrong? 1ns2.h:24: error: 'NameSpace1' has not been declared //test_nmspc.cpp #ifdef H...
[2 replies] Last: Thank you for your reply, Mr. Helios. (by ddii)
lock resources of remote computer
 
i am working on project to lock, resources(usb, disk drives, cd/dvd rom, folders) of remote computer...
[4 replies] Last: thank you, got it. (by zius oram)
[SOLVED]Can't Figure out whats wrong with sleep?
 
EDIT: Scroll down to see code Main reason I want to find this out is I want to find out someth...
[3 replies] Last: Fixed it changed the 5 to 100 and its all good. Was getting minus valu... (by Mythios)
February 2009 Pages: 1... 678910... 14
  Archived months: [jan2009] [mar2009]

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