General C++ Programming - June 2011 (Page 9)

Need help working a clock
 
we are suppose create clock, and its complies, but when i run it does nothing!!! could anybody tell me whats wrong #include <iostream> using namespace std; ...
[no replies]
about strstr
 
str2 at start pos of str1;strstr return 0x0000 == NULL; and if not fount str2 it also reture NULL; this is may make mistake。 reference: const char * str...
[2 replies] Last: ye,thats my fault! how to close this topic (by hellocyf)
by t1dUs
Output operator overloading problem
 
First of all hello to everyone. I am trying to create a small program that does the following: stores a series of aircraft types (class acfttype in acfttype....
[1 reply] : I just tried the following in a test app in windows and it did not c... (by binarybob350)
infinite while loop
 
my intension is to have an input that would not accept characters. But for some reason my while loop wont stop to let the try again. It just runs on.... ...
[3 replies] Last: This works: int iAnswer( 0 ); while( true ) { std::cin.sync( )... (by closed account zb0S216C)
How to email a simple plain text on windows form applications?
 
I using visual studio 2010 C++ Windows form application with net framework 4 and I want to send a simple text email without any login requirement. The code will...
[10 replies] Last: Disable C++ Exceptions? If that fixes it temporarily then it could be ... (by KeyForge)
i am new here
 
Hi everyone, am Enunekwu, from Nigeria and am very new to c++ and other programming language, so am looking for a friend to guide me through it, thanks
[4 replies] Last: thanks Albatross just did it n it work liked charm, will ask again whe... (by enunekwu)
Class with map containing function pointers of another class
 
As the title, suggests, I have a class that needs to have a map of pointers to members of another class. Because the name of the class should not matter, I have...
[5 replies] Last: [quote=rem45acp]So is there a way to store *this somehow inside the te... (by m4ster r0shi)
getline(cin,mystr) and while loops
 
I am working on a program that is a simple math game and I have a function called add but for some reason my while loop wont stop for my getline(cin,mystr). I ...
[1 reply] : This may be it: When you use cin>>, you leave a newline ('\n') in the... (by Zhuge)
by NewDev
Question on Copy Constructor
 
Can someone verify my code for copy constructor and assigment operator? Having a problem with delete in the destructor,I assume I am going wrong somewhere,Can ...
[2 replies] Last: So is this the right way.This works anyways... hello &operator = (c... (by NewDev)
printing out to files
 
i Have a pure virtual function called print(). In each of my derived classed i have the function with it giving the commands cout<<information<<number<<endl...
[10 replies] Last: "student::printf(std::basic_ofstream<char, std::char_traits<char> >&)... (by Ambeco)
by Evolve
2 Dimentional Maps : Passing values from a map to a function.
 
The difficulty I am having is to do how to access data from a 2d map of definition map<string, map<string, Data_class> > ; Particularly how to access every inst...
[3 replies] Last: I do not know if this is acceptable forum etiquette . Let me know if i... (by Evolve)
unsolved externals error
 
Can someone take a look at this and give me an idea of what I need to fix? Thanks #include <iostream> using namespace std; int main() { //Re...
[5 replies] Last: Change cout << "Your amount " << amount << " consists of \n" << to... (by Moschops)
by Janlan
PlaySound()
 
Hey!! I need help with playing .wav or .mp3 sound form Win32 console application. Thanks for the help... Janlan
[2 replies] Last: For PlaySound(...) will work for small WAV files, but for MP3 an... (by lnk2019)
by tajwan
c++ vs C#
 
Witam nie wiem czy dobry dział wybrałem nie wiem czego się uczyć c++ czy c# każdy mówi co innego że c# jest przyszłościowy a zaś inni że lepiej c++ s...
[3 replies] Last: I don`t good writing englis google chrome translate all langue. I hav... (by tajwan)
Help with jump between functions
 
I have 3 isr's ( interrupt service routines) isr1() { } isr2() { } isr3() { } all the 3 isrs have a particular statement that ...
[2 replies] Last: Does this look good? #include <cstdio> #include <cstdlib> #include <... (by m4ster r0shi)
if/else question
 
I put together a code to break down the monetary units of an inputted number. For example you input 11.56 it returns 11 dollars, 2 quarters, 1 nickel, 1 penny....
[12 replies] Last: ok thanks a lot guys! (by jkretzer)
OpenGl avoiding redraw shape
 
Hi, I am trying to make animations in OpenGl. I have a number of objects and only one object moves everytime. I saw a lot of tutorials and they say to redraw ...
[2 replies] Last: Are you experiencing poor performance from drawing the static objects?... (by helios)
Console Ideas
 
I have run out of ideas on what to program to increase my C++ programming skills. Could someone give me ideas for programs that i can make in C++ please tell me...
[5 replies] Last: An IRC bot is a good idea. Add some of the standard functions, like ba... (by Athar)
by HenriK
Game Engine design problem
 
Hello again. I have question concerning polymorphism. I´m reasonably aware of inheritance, virtual functions etc, but when I was creating my game engine projec...
[13 replies] Last: [quote=HenriK]Player can face enemy. Enemy can face player. [quote=M... (by Mathhead200)
by arorni
How to Keep the socket live
 
We are working on communicating between Filezilla Client and Filezilla Server having two proxies in between them. Between the two proxies we are having 2 tcp co...
[no replies]
June 2011 Pages: 1... 7891011... 28
  Archived months: [may2011] [jul2011]

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