General C++ Programming - January 2009 (Page 4)

constructor doubt
 
a question, please help me answer 1)Consider a single inheritance where class D inherits from class...
[2 replies] Last: The construction order is done that way because typically your parent ... (by Zaita)
Alternate TAB/SPACE Printing for Vector
 
Dear all, I have vectors which content is multiply of 4. For example this (surely the actual vec...
[2 replies] Last: for (int i = 0; i < vector.size(); ++i) { cout << vector << " ";... (by Zaita)
converting method from java to c++
 
I am not very well versed in c++. I need a little bit of help with some code in converting a simpl...
[2 replies] Last: At first glance, I'd say that Java function was poorly written to beg... (by Zaita)
by dietzi
alignment of different data types ???
 
hi all, I do have troubles with the alignment of data which I read from a file. The data in the ...
[3 replies] Last: Well, I would do it like this: xy::xy(uchar *data,ulong *offset){ ... (by helios)
When is a static function-scope object destroyed?
 
Hi all, I'm trying to find some reference material for the destruction of a function-scope object. ...
[4 replies] Last: Thanks helios (by JivanAmara)
by dkaip
wchar_t and reading unicode strings
 
Hello. I am a newbie in c++. I've a txt file with ancient chars, utf-8 format, and must be open all ...
[11 replies] Last: It works just fine. I just try the strtok but there is not on codeb... (by dkaip)
Avoid including a library twice
 
Hi all, My problem is that I have a main file which includes "file1.h" and "file2.h" and both of th...
[2 replies] Last: Oh, I understood! Now it seems obvious! I though that by some conventi... (by kunigami)
Basic in Pointers
 
hi, i am new to programming.. i have a code.. #include <iostream> using namespace std; i...
[4 replies] Last: Hi Scipio, thanks for the links...i will look into it... (by littleson)
What is the c++ code for recognizing a valid c++ identifier?
 
What is the c++ code for recognizing a valid c++ identifier? there are some conditions to be followe...
[1 reply] : 1. it should start with a letter or an underscore 2. no two succeedi... (by helios)
by PhDP
Matrices
 
For a math project I want to create a class to deal with matrices (two-dimensional arrays). I want t...
[4 replies] Last: For the speed it doesnt matter at all. (by Scipio)
Reading and Replacing a String in a Buffer
 
Hello all, I am trying to replace a string in a buffer. I have code that will replace the string ...
[14 replies] Last: Nevermind, I figured it out. (by workboy)
Compressing String and Manipulating It
 
Dear All, I have a C++ code that prints such output. AAAAA 00000 0.00264776 0.00264776 0.00...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files.html >>Binary file (scrol... (by Scipio)
Printing 100 factorial
 
Printing 100 factorial using C++ sounds to be easy. But please note that it is not capable of storin...
[4 replies] Last: A vector would take care of the dynamic memory allocation without havi... (by egregory314)
Simple Getopt Problem (newbie question)
 
Dear all, I have the following simple code that uses Getopt. #include <unistd.h> using nam...
[1 reply] : I never herd of getopt before your post, but I went to http://www.gnu.... (by egregory314)
connecting to another computer through LAN
 
Hey, how would your connect to an application on another computer through the LAN using c++? muchas ...
[2 replies] Last: sw33t tanks (by splatbert)
Array values passed from external function
 
Hello all, I have run into a problem I can't find a solution to. I pass an array from IDL (a progr...
[1 reply] : More info is needed especially about the architecture of your program,... (by anders43)
by jrohde
An if-statement performance question
 
Hello all, Let's say I've got the following statement: if (number > 10.0 && number < 5.0)...
[2 replies] Last: most compilers optimize it anyways so the main objective for you as a ... (by anders43)
Data Type Problem with Different GCC version
 
Dear all, I have the following code, that uses some arithmetic in 'id2tagnum' function: ...
[3 replies] Last: Safer is to use boost::numeric_cast<>: int fm = boost::numeric_c... (by jsmith)
How to pass into a macro different functions with different parameres.
 
I have a piece of identical code that need to be executed in several places of a program. The only d...
[9 replies] Last: What you are trying to do sounds suspect to me. You should re-think ho... (by Duthomhas)
by masiht
problem in a program
 
// my first program in C++ #include <iostream> using namespace std; int main () { cout << "...
[7 replies] Last: Read the link that Helios posted!!! (by closed account z05DSL3A)
January 2009 Pages: 123456... 11
  Archived months: [dec2008] [feb2009]

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