General C++ Programming - July 2013 (Page 13)

hostal management system
 
hello everyone i have worked on the part that comes before void main() plz some one check this out weither i am doing it right or not please.. #include<iostrea...
[5 replies] Last: Without seeing the code that's generated this error, we can't possibly... (by MikeyBoy)
what does <> means?
 
I'm working with libviso and I find in some tutorials that they use something like this in their functions... bool process(std::vector <Matcher::p_match> p_...
[1 reply] : I found the answer http://www.cplusplus.com/doc/tutorial/templates/ (by linkoftheworld)
Finding x,y pixel address in mode 13h VRAM?
 
I'm currently working with linear VRAM (a buffer with 256KB memory, divided into four 64k planes, so plane 0 at 0x00000, plane 1 at 0x10000, plane 2 at 0x20000,...
[4 replies] Last: I've found out that my emulator is missing the support for the MAP13, ... (by superfury)
error???
 
C:\dasdasff.cpp(153) : error C2447: missing function header (old-style formal list?) how to remove this error plz tell mee?????
[1 reply] : Show some code and we can help. I'd wager it's a stray semicolon or b... (by MrHutch)
by aritra
Doubt2
 
What is the complete list of names of the standard narrow-character iostream objects? Choice 1: cout, cin, stderr, stdlog Choice 2: cout, stdin, stderr C...
[1 reply] : We're not a homework service. (by MikeyBoy)
Turning recursive to iterative form
 
So I have a code like this one below : void get_sum( INNER_ID id, vector<INNER_ID>& dont_check ) { vector<INNER_ID> below = get_below( id ); vect...
[4 replies] Last: I start thinking again and again, I find one iterative solution, I try... (by rmxhaha)
VGA i/o port 0x3B8/0x3D8 and 0x3D9 effects?
 
What happens when, on a VGA, you read or write to ports 0x3B8/0x3D8 (depending on MDA mode) and 3D9? Is this compatible with the older adapters? Or is read/writ...
[no replies]
Help with coords please
 
So I want a program to start at a sertain coord on the screen how do I do that? I've never needed to do that before can any one tell me please?
[8 replies] Last: thanks to all.... because i also needed these types of information... (by Debraion)
Recursion code question
 
My question involves the bit of code in the function below called inOrder. I know the code works because I got it from a book and tested it, so that's not the p...
[11 replies] Last: you are on your way, to greatness. (by TinyTeeTree)
free()ing a _strdup'd value correctly?
 
In this EXAMPLE, am I free()ing this _strdup()'d return value correctly? char *getText(); void someFunction(void) { char *msg = NULL; msg = ...
[4 replies] Last: char *getText(); void someFunction(void) { char *msg = getText(... (by xwielder)
by aritra
Doubt
 
class A { int i; public: A(int ii) { i = ii; } A(const A& a) { i = a.i; i++; } A& operator=(const A& a) { i = a.i; i--; } }; int main(void) { A a(4); A b = a;...
[2 replies] Last: Nothing undefined about it. http://ideone.com/0J9qvS (by cire)
by aritra
Doubt
 
class A { int i; public: A(int ii) { i = ii; } A(const A& a) { i = a.i; i++; } A& operator=(const A& a) { i = a.i; i--; } }; int main(void) { A a(4); A b = a;...
[2 replies] Last: You should use a debugger. Step through the code and you can look at t... (by firedraco)
Taskbar icon disappear on mouse
 
Hello, I am trying to add icon task bar to my program. When i put my mouse on the icon created on the task bar , it disappear. The program is still runni...
[no replies]
for loop to find vector length
 
Ok my assignment has me doing vector math with some canned code provided for me by the instructor This is the header file to the class I'm working with and the ...
[1 reply] : Scalar Vector2D::Length() { Scalar lengthSquared=0.0; ... (by closed account o1vk4iN6)
Rand number gen help
 
Hey i have been playing around with random num gens and have had some issues. First of all i keep getting a the same string of numbers(i have even tried srand)...
[3 replies] Last: Thanks for the help! (by harnman)
by aritra
Question
 
Sample Code class Foo { int i; public: Foo(int x) : i(x) { } }; Referring to the sample code above, which one of the following lines of code is syntactical...
[2 replies] Last: The only correct line is line 4. (by vlad from moscow)
Summing up arrays
 
So the question is to let the user put in two integers and put each integer in an array as separate numbers, and then sum these arrays together, so putting in t...
[3 replies] Last: You should declare a third array that will have size equal to max( siz... (by vlad from moscow)
Quick Sort Implementation
 
Can someone help me with quick sort implementation. I am not able to sort using this implementation. Something is wrong with the partition section of the prog...
[no replies]
Random vector
 
I need a random unit vectors in n-dimensional space. Any idea how to build it in C++?
[6 replies] Last: Thanks a lot! This sounds good. I think each of your ideas, a gaussian... (by fotoni2)
Sending a string to a program.
 
I have a project, to make a program that spams chat programs. I've been trying to figure out how to send a string to an open program such as notepad, or a chat ...
[1 reply] : Did you try std::cout << a << std::endl; ? What other way do you have... (by Smac89)
July 2013 Pages: 1... 1112131415... 34
  Archived months: [jun2013] [aug2013]

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