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

input without pressing enter
 
hi, Im trying to get input without pressing enter I was wondering if I could achieve this by havi...
[11 replies] Last: Oh, thanks. It would of taken me a long time to find them myself. (by blueberry)
by RaxeN
C++ Array. Counting the number of instances?
 
#include <iostream> #include <iomanip> #include <string> using namespace std; int main() ...
[2 replies] Last: Do you realize that you can initialize and declare simultaneously? i... (by kempofighter)
? multi-definition error of a class?
 
so i'm testing some of my code with a basic Address Class first. It runs fine as long as it's in one...
[4 replies] Last: I appreciate it! :D (by nscruggs)
Function as a parameter of another function
 
Hello, I apologize for my poor programming vocabulary, so I will try to explain it simple. The...
[8 replies] Last: [quote=kfmfe04]don't really have to be static, either If you want to... (by m4ster r0shi)
Remote C++ Program Start up (1,2)
 
I was wondering if it was possible to have a C++ program on a different hosted server, and when some...
[25 replies] Last: There's nothing in the C++ model that deals with this sort of thing. ... (by ultifinitus)
Packets and hex
 
I was trying to send the size of a buffer over to a server and came across difficulty along with a c...
[16 replies] Last: Can you try something like this?: unsigned short sHeader = 0; ... (by kooth)
how do I encrypt an int with a keystream that produces unsigned char?
 
how do I encrypt an int or some other data structure that has a larger size than an unsigned char wi...
[1 reply] : struct MyStructToBeEncrypted { char field1 ; int field2 ; ... (by kbw)
Recursive Descent Interpreter (1,2)
 
Guys Im kinda new to programing. I have an assignment which I have now idea on what to do. Im asked ...
[23 replies] Last: Here are my interpreter.cpp and interpreter.h files //************... (by shadow29014)
Functions in a Text Based Adventure
 
In my class we have started programming a Text Based Adventure and the instructor has not yet taught...
[17 replies] Last: You need to close the main() function. And put something in there. ... (by Pax)
Always output negative numbers or zero
 
Hello, I'm taking a beginner C++ class here in school and for our assignment this week, we have t...
[8 replies] Last: firedraco: Just like in algebra, F-X is F minus X, not F times neg... (by Cazicss)
User input DialogBox
 
Hi, I'm trying to make a dialog box that have userinput interface and then prompt up a MessageBo...
[5 replies] Last: I think I got it work! Thanks everyone!! (by parvati)
Addition of stringstream & string
 
I am performing addition on strings but not getting desired result .Kindly help me with proper solut...
[2 replies] Last: I believe stringstream does not overload operator +. (http://www.cplus... (by sohguanh)
Problem with Pointers and Classes
 
Does anyone have any idea why this code doesn't work. It takes in the data, but it only spits out ...
[4 replies] Last: OH SHOOT - IT WAS SUPPOSED TO BE AN ARRAY!!!! HOW THE HECK DID I miss ... (by waqqassheikh)
String arrays
 
Alright, I'm wanting to create an array of strings of letter grades in C. But, it's not giving me th...
[1 reply] : Modify your array definition to accommodate the string terminating nul... (by naivnomore)
asynchronous I/O to two I/O ports
 
I need to receive data from two different serial ports simultanenously in linux c++. I would like s...
[3 replies] Last: Yes, I remember using select when doing sockets. Its been a long time... (by rpinsky)
Function pointers
 
Below is a declaration of function pointer: void * (*(*fp)(int)) ; fp is a pointer to a ...
[4 replies] Last: thanks (by DennisWu)
by YyYo
how free() method know where to stop deallocated memory
 
Hi All... I have a question on free() method. How free() method know until what address to stop ...
[3 replies] Last: ... which is why buffer overruns are catastrophic. (by kbw)
by bbgst
OpenGL and GUI
 
Hi. I have learned C++ and OpenGL and I consider myself quite proficient with them. What I would ...
[3 replies] Last: Hi ... I am using Gtk to display OpenGL. You can look for GtkGlExt(... (by YyYo)
Ever programmed something and surprised yourself how you got it to work?
 
Hi there - this is just a general Question. Has anyone here had that experience where they've just ...
[13 replies] Last: I think most of us have social lives but we don't see a reason to disc... (by MottMan)
string.c_str() troubles
 
Hi Guys, I'm having some problems with c_str of the string() method of a boost::filesystem path o...
[4 replies] Last: Excellent, thanks for the help Bazzy! (by jameshume)
September 2010 Pages: 1234... 20
  Archived months: [aug2010] [oct2010]

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