General C++ Programming - September 2009 (Page 12)

by mosay
Vectors
 
What I'm trying to do is create a vector that will hold a message. So by using cin I am trying to store numerous characters into my vector without any limits. W...
[5 replies] Last: Have you seen this yet? If not, read it. You can do all kinds of thi... (by kempofighter)
objects
 
Can anyone tell me how objects and member functioins interact? Could I get the information in simple, non-technical terms perhaps followed by an example. If you...
[5 replies] Last: Taking the simplest case, the layout of an object in memory is as foll... (by jsmith)
memory editing
 
i am trying to "hack" windows pinball through dll injection.when i inject the dll i made a message box pop up so i know the dll is injected. now the memory edit...
[11 replies] Last: Just for clarification: Yes, but DLL injection != memory editing. ... (by Lodger)
by garob
Will this work?
 
Hi I was wondering if using namespace std; enum variableType {real, string}; would work when I #include <string> because it would create a naming conflic...
[1 reply] : Wouldn't it have been faster to actually try it? No, it won't work.... (by helios)
Problem with link
 
I'm trying to work with Link Lists and I keep getting a link error when I try and create an instance of the class. I've been working on figuring out this proble...
[1 reply] : Okay, do this. What's on line 33 of blackjack.h? Spoiler: rotcurtsed s... (by helios)
missing function header (old-style formal list?)
 
Hey you guys...I'm having trouble getting this problem to run...any help??? #include <iostream> #include <cstdlib> #include <ctime> using namespace std; ...
[3 replies] Last: THANKS YOU GUYS...:)... (by CATCH3624)
linking up C++ and spice..can any one solve this..
 
hi this is rajesh kumar, can any one help me by giving me a solution 2 my problem.. my problem is i have to run a huge circuit in pspice(as spice cant handle ...
[1 reply] : C++ does not have the ability to display any graphics so you will need... (by Return 0)
by icu812
math.round
 
This is C#. I am trying to do the same thing in C++ (VS2005) but can't seem to get the right combiniation. sraise = Math.Round(sraise / 100, 1) * 100; ...
[1 reply] : Streams round numbers, so you can use manipulators to get the number r... (by Bazzy)
by rissel
postfix to infix notation. need assistance, T.T
 
good day. i just need assistance in converting postfix to infix. i already have a code which convert infix to postfix so i only need to revese the code.. here i...
[no replies]
templates & iterators & pointers...
 
So, I've been playing with this toy example for finding the max in a container, trying to get it into a more generalized form. Now, I've lost my overloading ...
[3 replies] Last: I know, I'm just doing this for my on personal pleasure. Yes, I kn... (by turbozedd)
1 byte data type ouputs junk
 
the following code outputs junk, int _tmain(int argc, _TCHAR* argv ) { char j = { 9, 10}; cout<<j <<" "<<j ; return 0; } Its almost like...
[4 replies] Last: That's because uint8_t is equivalent to an unsigned char. uint32_t is ... (by NGen)
[c++] a problem with memory...
 
i'm writing in c++ a class to manage matrixs. matrici.h #include <cstdlib> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <mat...
[6 replies] Last: wow... now it works perfectly... thank you very much for helping me!!... (by mamo139)
by icu812
string replace question
 
I am trying to create a filename based on a window title. I can get the window title with: std::string filename = w_title; but the window title will ...
[1 reply] : loop through the string and change any char if necessary. like this: ... (by hamsterman)
Random Accuracy
 
Because I'm using Neural Networks I need to generate accurate random numbers between 0 -> X. For that I tried to use rand function but I noticed that the genera...
[10 replies] Last: I told you. Don't trust the output. You are absolutely right thanks... (by mbnoimi)
by chuwie
studgrade
 
Write a C + + class including the code of the functions to maintain information about a Student. The class data members are Student ID, subject, unit, prelim gr...
[2 replies] Last: I doubt it, just a lot of illegible code not posted into [co de] tags... (by chrisname)
Function return error
 
Hello, I've ran into a problem with my code. You see for some reason or another, when my function finally gets done executing everything I told it to, it nev...
[7 replies] Last: Your solution worked like a charm. Thanks alot helios. (by hex2Text)
How to read file without missing the space
 
like in a file i got a line which is "Ali Baba" and my code will read only the word,become "AliBaba",how can i read the space also? this is my code for load(...
[6 replies] Last: Thank you,i have solve the problem. (by nananya88)
wrong answer//thanks guy I solved
 
1. Evaluate a postfix expression 0. Exit Enter the number for the option: 1 Evaluate a postfix expression Enter the expression: 34*873-//4+ The Postfix ...
[1 reply] : Please use [co de] . Check stack.h because seems 'stack' wasn't decl... (by Bazzy)
by Such
GetLastError() 1407
 
I can't create a window and GetLastError returns 1407 WNDCLASSEX wc; ZeroMemory(&wc, sizeof(WNDCLASSEX)); wc.cbSize = sizeof(WNDCLASSEX); w...
[2 replies] Last: OMG what a terrible mistake thx a lot (by Such)
by rahulk
Copy Constructor
 
Hi All, I am going through a book for CPP. While explaining the utility of the copy constructor, following program is given. #include <fstream> #include <st...
[1 reply] : You aren't increasing 'objectCount' in the copy constructor -you are u... (by Bazzy)
September 2009 Pages: 1... 1011121314
  Archived months: [aug2009] [oct2009]

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