General C++ Programming - June 2010 (Page 2)

Time of build as program version
 
I would like to have variable that holds time and date of build. I have few classes and __TIMESTAMP__ is updated only if code is changed (class where __TIMESTA...
[8 replies] Last: Instead of using touch, you can just add and delete a space, then save... (by Athar)
by jfq722
How to give access to a Class' list ?
 
If this were 5 years ago, I'd be objecting to this question. But its not and I'm a little rusty, so thanks. I have a class contaning a list of something........
[2 replies] Last: #1 and #2 are definitely way better than #3 or #4, but the question ca... (by jsmith)
EXECUTABLE FILE
 
How is an executable file created in C++?
[10 replies] Last: Thanks for your help, Grey Wolf! (by jzornesky)
by wtf
Why 1 universal struct working from within a class, but not these others
 
I defined the following structs in my class header file, but before the actual class definition. struct int3{ int r; int c; int n; }; ...
[2 replies] Last: Post the actual source code and error message. (by jsmith)
by basics
Trouble reading from a file in dev c++
 
I have written up a c++ program that will read from a file. The file consists of only numbers ( from 1 to 50) and spaces with no other special characters. The m...
[1 reply] : Don't loop on eof(). If the stream goes into a different state (such a... (by filipe)
Refressing in console
 
I am coming to C++ from Basic, so i was wondering if i could do some of the same features. Main doing something like CLS (clears the console screen), and refres...
[3 replies] Last: Linux: http://www.cplusplus.com/forum/general/23269/#msg121845 (by Duthomhas)
Boost asio error message
 
Basically I'm writing a little app and am getting a strange error from boost. I havent actually written the server part of the code so I know that I won't get t...
[no replies]
why is << operator not recognized?
 
I have been trying to write a quiz-making/quiz taking program (super-simple, uses cout stuff etc.) and for some reason I get... "Error: no operator "<<" matche...
[16 replies] Last: Yes. If you had a lot of large objects stored in some container tha... (by Galik)
A question about libraries,the #include mechanism, and the design of C++?
 
I warn in advance some of you may find this question stupid or over the top. Nonetheless I am trying to make sense of the world I live in thus I still ask. C...
[10 replies] Last: but if java and python can do it why not c++? Exactly what is "it"?... (by Athar)
pointer-to pointer and aray of pointer
 
a char pointer-to pointer: char **ptr1; an array of char pointer: char* ; In int main(int argc,char **argv) = int main(int argc,char *argv ) as it does th...
[15 replies] Last: apologize.the output is as follows: //output of f() hello world... (by jackel7777)
by ghkdyd
Memory management between pointer-object and non-pointer object
 
First of all.. I have some memory management problem in my source code. I know the reason roughly. it is non-pointer object. in some function using pointer-...
[5 replies] Last: if the memory is on the heap, you will prbly have to use a pointer in ... (by soccermiles)
ctor-, dtor-like behavoir on functions
 
Hey all, Lets take a look at this code: class Base { public: Base() { /* initialization here */ } void DoWork() { /* work here */ } }; cl...
[3 replies] Last: There's also this approach: class Base { public: void DoW... (by Disch)
Doing different things to array elements - best practice for code re-use?
 
Hi. I apologize if this is in the wrong place - I'm not entirely a "Beginner" in C++, but at the same time this post deals almost entirely with aspects of it th...
[5 replies] Last: Sweet. (by moorecm)
VC++ document outlines
 
How do you write a document outline for VC++? I have been seeing that window on the left side and it's annoying the hell out of me that I can't use it (It says ...
[no replies]
One more Interview question
 
in singleton class how will delete the obj ? I don understand the question at all..
[13 replies] Last: The OS knows what pages of memory it gave to a process, but it knows n... (by jsmith)
by kulfi
two cpp files
 
Ragrdless of what i am doing i just want to know that if i construct more than one programs in one project and in Visual Studio 2010 how can i get the control o...
[3 replies] Last: If I understood your question correctly, then I already did anwser it.... (by Incubbus)
Problem with Multidimensional array
 
Hey all, I keep getting the following error message when I try to copy values from one array to another: error: expression must have pointer-to-object type ...
[5 replies] Last: Sorry I was away at the weekend, but here is enough code that should h... (by PHamnett)
by rcorcs
Database with C++
 
Hello there, I was wondering if a database management library would be something nice, 'cos it won't be necessary to install a database management system bef...
[no replies]
compound literal compilation error
 
after reading the introduction about it,i found it really amazing. just so you guys know,i encounter a problem,see the codes below #include <iostream> u...
[5 replies] Last: Use constructors. (by R0mai)
Using a config file and performing actions using entries
 
I'm making this program to start my windows services, the way I want to start them, not windows... Anyway, I want it to read a config file, like an INI, or some...
[5 replies] Last: What the.... That was the first thing I tried! It works though... T... (by RyanCaywood)
June 2010 Pages: 1234... 18
  Archived months: [may2010] [jul2010]

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