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

Need urgent solution for this problem
 
i have develop a very small program in C++ but its not working correctly can anyone help me on urgent basais my code is the following i think so error is ...
[7 replies] Last: is their any one can help me to solve this problem... i just want to ... (by gujjar302)
speculation program
 
I wrote this program as basically my first real program. I am looking for some help/suggestions on how to clean up the design of this program, and also how to i...
[1 reply] : Heres the position sizing program: position sizing.cpp #include... (by marlowe)
Unsigned short to char array
 
Hi! I'm trying to assign bits of an unsigned short number to char . Suppose that we have 2 unsigned short numbers ; unsigned short num1 = 30 ; unsigned ...
[2 replies] Last: If you want a generic method, better convert the numbers into bit stri... (by msram)
by SoloXX
Class - wierd 'salary.displayPay(pay)' output?
 
Hi all, To start, I am beginner in C++ (2nd week), and we're learning about classes and all that goes with it. I'm not even sure that my functions are even b...
[3 replies] Last: The problem is in your "get" functions. I think what you want is fo... (by idbentley)
Use dirent.h in MSVC 2008
 
I have a problem to add dirent.h in the project. These days I start to use dirent.h windows API(http://www.softagalleria.net/dirent.php) to read the specific fi...
[5 replies] Last: Does anybody have the same experience? (by RobBinS)
Question mix, one thema
 
I need to prevent my window from going minimized to tray when I click the Minimize-Button. I write in native C++ with additional use of DX10, DXGI, Direct2D an...
[5 replies] Last: Resume of the Get the right answer within 24 hours ForumContest: Pos... (by Mike911)
Winform And C++
 
I created a winform named GUI But when i run the application the GUI doesnt come up. Can one give link to a good tutorial for the same? Thanks
[no replies]
Libraries needed to network?
 
Hello, I'm a beginner in c++ programming and i would like to create a program that would transfer characters or strings from a Windows 95 to a Vista computer th...
[no replies]
Sorting Input files
 
I've got a program that needs to read in 3 input files with integers out of numeric order and I need to read in all three and sort them numerically then after t...
[2 replies] Last: This format helps a ton...I appreciate it but now i cant get it to out... (by Tester84)
Switching from a list to a vector
 
Hi there, I'm using a std::list to store some data, because it's very likely to change frequently. insertions, and deletions are both common. However at ...
[2 replies] Last: Actually, the above will run 2*N constructors (where N = list.size()).... (by jsmith)
Optimize integer program in speed
 
I want to optimize the following small integer program in speed. My g++ compiler version is 4.3.4 on 32 bit linux. Please suggest or comment the following ide...
[3 replies] Last: If the body of operator() within the function object can be seen by th... (by jsmith)
flush cin line
 
I want write a simple program that gets a date from the user in the form dd/mm/yy and flush the forward slashs so i can output the date as e.g. February 23 ...
[3 replies] Last: All you need are the standard I/O functions. struct my_date_t ... (by Duthomhas)
by Gio
Checking if something is near you with SFML
 
I am writing a Rougelike Game in C++ with SFML and want to know how to make it so that the game checks what object is up to 20 pixels above/below or 13 pixels l...
[1 reply] : It really depends in what data type you are storing the objects. If... (by idbentley)
vc++ twu dimensional vector in CLR
 
Hello, I have one problem with something like this. I have vector 2D: vector < vector <int> > tab(1000); and i try: tab .push_back(1); and t...
[1 reply] : I'd recommend using tab.at(1).push_back(1); . It's safer and it doesn... (by Albatross)
by declan
Very confused about including files
 
So I have a file, ParticleList.h, that is a class declaration for a linked list. A few other files declare and use this linked list in them. So I have #include ...
[3 replies] Last: Read this: http://cplusplus.com/forum/articles/10627/#msg49679 (by Disch)
by Ensei
public: problem
 
I have a Consumer class with every funcion public. Then I have a class MainMenus : public Consumer One of it's funcions evokes a Consumer funcion, and...
[6 replies] Last: [quote=Ensi]If the functions are public, shouldn´t all the other cl... (by Galik)
by melter
Returning object by a class name
 
I was hoping to have a method that could return a object of class. I have classes Class1 , Class2 and Class3 , which are derived from base class named a...
[2 replies] Last: I think your manager class is going to have to know all the types. ... (by Galik)
by Ensei
Split program + #include""
 
I'm having problem spliting a program I have the header files .h and then the .cpp The cpp file includes the header file. But how do I connect the res...
[1 reply] : Post the header. (by helios)
Modifing a constant in a compiled file.
 
Hi everyone. I have an aplication compiled. I would like to modify a constant in that application, but the constant is of type char *, so it could have differen...
[5 replies] Last: Windows executable resources are stored in the executable. The same th... (by Duthomhas)
problem starting to write program
 
Write a C++ program file that has three functions: void substitution (double&, int&); void newton (double&, int&); ...
[3 replies] Last: Use an int to make the user select which method he wants. int choi... (by m4ster r0shi)
June 2010 Pages: 1... 1213141516... 18
  Archived months: [may2010] [jul2010]

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