General C++ Programming - April 2011 (Page 28)

#include <> question
 
I am trying to include a header file that is in a different directory. The header file I am trying to include is back one folder. For instance, I am currently i...
[3 replies] Last: ^^ no worries =] (by ultifinitus)
2003 acm programming contest
 
please can anybody help me plllllllllllllllllllllease with the source code and a few comments about the problem in the link below: http://icpc.baylor.edu/pa...
[1 reply] : ...the source code && a few comments... Are you nuts ? Have you tri... (by ultifinitus)
Help with Program please
 
Im getting an error when trying to initialize some some objects of a class. I am supposed to initialize the accounts 12387.87, "Ralph Wilson" 144.00, "A. Connor...
[no replies]
by Qmage
IntPtr causing memory leak?
 
This function is in a loop. When I run the program, the line with IntPtr is giving me memory problems, I've put delete , but it still doesn't solve the memory p...
[1 reply] : You didn't allocate ip with new, so you shouldn't be deleting it. You... (by Disch)
HELP ME PLZZZZZZZZZZZZZZZZZZ :(
 
hi everybody! I am quite good at writing c++ programs but i don't know how to make GUI for my programs and then pack my program into an installation package ...
[4 replies] Last: @magnificence7: thanks a lot for ur help.. (by engraamir)
by ne555
Convert from FILE* to std::fstream (or alternative to popen)
 
popen() allows to communicate the process trough a pipe. The problem is that it returns a FILE* So what could I do to work with fstreams instead? I gues...
[2 replies] Last: I will regret this. Bump (by ne555)
by eso
enums
 
Hi, Can anyone help me with this : enum bird { PIGEON, DOVE, HOX}; What is the runtime cost of this enum?
[7 replies] Last: I think what guestgulkan meant is that you wouldn't choose #define o... (by eso)
There seems to be some problem with my class
 
This is my.cpp file #include <iostream> #include "admin.h" #include <process.h> //for exit() #include "stdafx.h" #include <string> //header file for ...
[3 replies] Last: @inception13 He means that all your doing is comparing the address ... (by king214)
by Gldnbr
While loop help?
 
I'm trying to create a program that reads a text character by character. I'm also trying to make it display every variable before the equal ("=") sign. But it...
[5 replies] Last: I agree with the above, using strings would be much safer. Also find/s... (by ceruleus)
Best C++ Jobs?
 
What I really want to do is work on video games, it sounds like a blast where I would love going to work every day and hate leaving. But I've read a couple plac...
[9 replies] Last: This does not at all represent the typical work environment My poin... (by ceruleus)
Taking inputs using vectors
 
I want to make a programm in which i will add a device, than i will add its voltage, at the end i will get the total voltage of the devices added. Now the probl...
[1 reply] : while(...){ string name = get_a_single_device_name(); int vol... (by hamsterman)
Calling Template Constructors
 
I have a template class for generic resource management. It's template parameters are as follows: class Resource, class LoadData = Void, void (*Loader)(Resour...
[no replies]
inheritance
 
If i have a base class and a derived class which inherits base privately then can a friend function access the base class private members: 1)Why not, when b...
[8 replies] Last: Yes, you would because you can't access the private members directly..... (by firedraco)
by kwb13
Help with redo please ,... (1,2)
 
Hi im trying to make some kinda stupid story im just fooling around with c++ and now i try to do this : I want to ask do you want to start over ? Y or N and thi...
[22 replies] Last: Hmmmm interesting... A compiler is a crazy place! I'll work on succes... (by ceruleus)
by koki
Traditional Singleton Implementation vs Static Object Singleton Implementation
 
I have usually implemented Singletons as described in the Design Patterns book. Recently someone suggested another implementation of Singleton using creating a ...
[5 replies] Last: Some reading about the problems with statics: http://www.parashift.co... (by Galik)
Stylistic (somewhat) constructor question
 
I have written a tiny little (and stupid) iterator class, that's supposed to print the current line number on a specified ostream while reading from an istream....
[no replies]
Compiler choosing to cancel inline-ness of functions
 
I have this function to set a variable to some 'default': template <class T> inline T Default() { return T(); } Now, if T is a large type, I don't want ...
[2 replies] Last: Ah yes, I forgot about RVO... it should be fine then. As for why I ha... (by anonymous23323124)
real-time vedio programming
 
Recently, I began studying video development, I do not know how to get started, please advise.
[2 replies] Last: There is a framework for processing images that is very good. It's cal... (by pavanetti)
Help with running the program
 
I am trying to get the time for sorting a large array using bubble sort and insertion sort. however, my program always crash when I tried the size of 750000, I...
[6 replies] Last: try putting unsigned or long in line 6 of your program void insertio... (by tejashs)
by homan
ruining two simultaneousness coupled program
 
I have two big programs (more than 5000 lines in C++)and I wanna to couple them together. in fact each program needs the the other program result to start next ...
[3 replies] Last: each program after each iteration must be wait to get new data from t... (by ultifinitus)
April 2011 Pages: 1... 2627282930... 37
  Archived months: [mar2011] [may2011]

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