Beginners - July 2010 (Page 30)

nesting namespaces
 
Is it legal to nest namespaces, so that distinct user-defined sub-scopes can exist within a single larger scope?
[1 reply] : Absolutely! (by Galik)
a simple line
 
Hello How do you draw a line segment in the middle of the screen and make it always be on top of other programs? Thanks alot
[2 replies] Last: windows(32) sorry im noob. (by Kazamman)
when must/not namespaces be declared in headers?
 
When I write a header containing only the prototypes of functions with distinctive names, it works without my creating a special namespace, as long as I include...
[2 replies] Last: 1) a namespace is not to avoid redundancies, it's to avid ambiguity be... (by Bazzy)
virtual file system
 
hi every body i'm having a project of a virtual file system where it consists of 4 logical parts 1)VFS super block containg information about the next 2 par...
[4 replies] Last: @athar can i ask a question FAT: stores the list of files stored i... (by ramy ahmed)
Where to learn Win32?
 
I need help learning Win32...actually, I don't know whether I should be learning it yet. So far I know all the basic stuff (the language, that's it). Should I b...
[15 replies] Last: Thanks for the advice. BTW, if you are going into game programming, th... (by soccermiles)
the cin.fail() not work good
 
If you write in x and y chars that closes the program code: main.cpp #include "header.cpp" int main() { Tester x(13,64); x.printMap(); x.setM...
[1 reply] : Mate, could you please elaborate on your question. What exactly you wi... (by Rockysaini)
Concept of Class inheritance
 
#include <iostream> using namespace std; class A { protected: void functionA() { cout << "\nI am in Function A of Class A" << endl; } }; ...
[3 replies] Last: Ahh, I get it. Yeah, you basically just create wrapper functions for ... (by firedraco)
big numbers
 
hi.... i have a problem we know that when we wanna to use big numbers we can t use (int,long int,...) how we can solve this problem..... for example when we...
[11 replies] Last: Well mate, try to use gmp library functions. Its public available on t... (by Rockysaini)
Heap Error while deallocating memory
 
#include <iostream> using namespace std; int main() { unsigned char name = "Rocky is my name"; unsigned char hptr ; memset(&hptr, 0, sizeof(hptr))...
[6 replies] Last: @ magnificence7 thank you Mate!!! (by Rockysaini)
by vkaul1
stl map value datatype
 
Can the datatype of the value(not the key) be a struct with 2 different integers(parent and child)? If yes how do I access the the parent or child element using...
[7 replies] Last: Why don't you just write some code and try these things? read the doc... (by firedraco)
Header files
 
Hello again, i've just finished defining my first fairly large c++ class. However i would like to now place the class definition somewhere else and just work on...
[1 reply] : http://www.learncpp.com/ (by Incubbus)
by EdBoon
menu presentation
 
I am working on a personal project using allegro/c++ and currently am displaying menus as an array of bmps. So if user hits down arrow the screen shows the nex...
[2 replies] Last: Yeah that makes sense. I can make a guy run around and kill a bunch o... (by EdBoon)
Strings, Files and Integers
 
Hey guys, I've been stuck on several problems. I'm still an inexperienced programmer of C++, and I've recently learnt arrays, pointers and dynamic memory. ...
[4 replies] Last: Sweet, that looks like what I need :D Thanks for your help. Is there ... (by closed account oE6pX9L8)
How to remove largest item from a Linear Linked List
 
so here is my problem, I need to remove the largest integer from a linear linked list only traversing it once, I need to do this iteratively. I believe this...
[1 reply] : You are trying to do too many things at once, and getting overloaded. ... (by Duthomhas)
why is the iterator no longer valid in this example?
 
Hi, I'm reading about vectors att this site (cplusplus.com) and came across the section about the member function insert. In the code below an iterator is cr...
[2 replies] Last: Ah, of course. Thank you very much filipe! (by SirSkorpan)
by vkaul1
STL map erase
 
If I use erase for a key that does not exist in the map, is it a problem or the function does not do anything and returns harmlessly? For example map.erase('b...
[6 replies] Last: Read the documentation here. It will tell you the same thing that jsm... (by kempofighter)
Multiple conditioned if statements
 
I can't seem to get this to run without errors. if (sex == "m") && ((age >= 18) && (age <= 35)) && (military = "yes") || (pushups >= 50)) cout << "Yes, ...
[14 replies] Last: That can be further simplified. Note that all conditions depend on age... (by helios)
is it right
 
# include <iostream> using namespace std; int main(void) { float a, b, result; char symbol; cout << "enter first number a: "; cin >> a; ...
[7 replies] Last: [quote=khalidhussain]how can i set the timing to while loop I think ... (by m4ster r0shi)
how can
 
how do get this output 1 2 3 4 5 6 7 8 9 10 in that 1 2 3 4 6 7 8 9 10 how to get multi line output in one line
[13 replies] Last: Literally any, I find it rather depressing that I'm the only one going... (by Kyon)
Desperate!!! Function Question.
 
Hello, I am taking C++ and am not good at it at all. I have lots of problems with functions. The following program is a question on hw and every time I think...
[11 replies] Last: Which book/online guide would you recommend after finishing this one?... (by closed account z05DSL3A)
July 2010 Pages: 1... 28293031
  Archived months: [jun2010] [aug2010]

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