General C++ Programming - August 2009 (Page 2)

by Alan
implementing problems @@@@
 
This is a map of the basic structure of a replacable syntax class Im making for an experimental lang...
[2 replies] Last: Neither, I believe I didnt word it right... Maybe I should just take a... (by Alan)
Question on sizeof struct
 
Looking at this code: struct test { char c; // 1 byte int i; // 4 bytes }sample1, sampl...
[4 replies] Last: The pragma preprocessor command can be used to pack things to byte bou... (by kempofighter)
by vRltwE
How to declare a vector<vector<bool> > verified as false?
 
Hi, I want to create a matrix vector<vector<bool> > verified(m.getcols(), vector<double>(m.get...
[2 replies] Last: Are they not initialized to false automatically? Or are you asking how... (by kempofighter)
by peha
get number of input characters befor press enter
 
I want a method to limit number of characters than user can type before pressing enter. the reason i...
[8 replies] Last: Look at the last few characters in the URL you posted: ncurses ... (by helios)
C++ 2 Serial COM port reads Needed
 
Hello All: I have exhausted several google searches trying to find the code I need to finish my proj...
[no replies]
Q u e s t i o n s . . .
 
1. Can a class template or a function template have only non-type parameters? 2. Can a template hav...
[9 replies] Last: Indeed, but I'm not learning it anymore. I just ask little questions ... (by Return 0)
Optional arguments
 
This is my constructor: Object(arg1 = default1, arg2 = default2, arg3 = default3) Is there a w...
[6 replies] Last: You could use constructor overloading for this.....but if you have all... (by klkvgupta)
arrays problem. could learn something too...
 
HI! figured out problem while posting. for educational purpose i will still post its a good code ...
[1 reply] : http://www.cplusplus.com/reference/algorithm/random_shuffle/ EDIT: ... (by helios)
template stack
 
hello , i am new in c++ and i 'm strive to write a simple template stack to learn templates and st...
[7 replies] Last: thanks klkvgupta ,i put the Dstack.h and theDstack.cpp in one file an... (by humanfly)
overloading 'address of' operator
 
Hello, Let's say we have a 'Vec' class that it is defined using the vector class. Also, let's ass...
[3 replies] Last: Here is the example which you are looking for: #include <vector> #... (by klkvgupta)
"Far" pointers?
 
I've noticed that pointers are 4 bytes long, and guessed they are offsets. Is there a way to define...
[2 replies] Last: http://en.wikipedia.org/wiki/Far_pointer There haven't been far poi... (by helios)
C++ Certification
 
Hi, I have been programming using C++ for past few years and I wanted to get some kind of certifi...
[2 replies] Last: Ok, thanks! (by sunilkeshava)
by DCC1
Storing file to specific directory
 
Hello, I am attempting to write a file to a specific directory using: fstream myFile("c:\\Windo...
[11 replies] Last: Not sure how much you know about different linux distributions, but in... (by mrHappyPants)
by Alan
Inline array declarations
 
This is my fist post on this forum, I want to know what the syntax is for inline array definitions (...
[2 replies] Last: I originally wanted to know because I made a class: class OPTION... (by Alan)
How to integrate a c++ game to a web page?
 
Hi, i developped a c++ game and i want to know how to integrate it on a web page?? Thanks for you...
[2 replies] Last: If you look at big games ie World of Warcraft, MapleStory... none of t... (by Alan)
by Jacko
Return By Reference
 
I know it's not a good idea to return by reference unless you're sure the reference you're returning...
[8 replies] Last: It's hard to find these answers! No, they're not. Just take a look at... (by helios)
MySQL : Undefined Reference Errors
 
Hmm... Not sure what's going on with this. I'll give all the information I can think of, just tell m...
[5 replies] Last: Yup, it was my web-host. That's it. (by elvenspike)
Variable Length Integer Display Problem
 
Hi I'm new to embedded programming and am having a problem displaying unsigned integers on a 14 segm...
[3 replies] Last: How about this? char temp ; size_t l; sprintf( buffer, "%d", v... (by helios)
Regarding header inclusions
 
Hello, I was thinking about the extern variables and why if we define a variable inside a header (...
[5 replies] Last: I see. Thank you very much for your answers. Regards (by cppuser)
Exceptions
 
I know that Exceptions are used to handle exceptional conditions in a program. So if an exception is...
[15 replies] Last: The assignment operator of what ever class is in the stack may throw. ... (by closed account z05DSL3A)
August 2009 Pages: 1234... 12
  Archived months: [jul2009] [sep2009]

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