General C++ Programming - July 2009 (Page 4)

A few quick questions
 
I made a simple "guess the number" program. #include <cstdlib> #include <iostream> #include <time.h> using namespace std; int main(int argc, char...
[10 replies] Last: I think I get it. I'll mess with it later though. Its 4am were I'm at.... (by Blitz Coder)
Pointer+Offset how?
 
need to figure out how to add a offset to a pointer then use it in this code Pointer is 00B835CC Offset is 1432 i thought maybe can use this somehow but ...
[3 replies] Last: #include <windows.h> #define BASE 0x00400000 #define OFFSET 0x00 ... (by Kiana)
call functions from a dll
 
i want to make a program that calls a function from a dll that i created. i found one method for loading the dll. loadlibrary but how do i call the functionstha...
[3 replies] Last: It's clearly explained on MSDN docs, for 20 years... (by george135)
Array Memory Issue
 
Hey guys, I'm having a strange problem I can't seem to figure out how to solve. class A { public: A(); ~A(); private: int* numbers; } ...
[6 replies] Last: Oh wait, nevermind, it was my mistake. It's all good. (by enigmatix)
by mc1982
Parallel programming working with large amounts of data
 
Hi, I need to speed up execusion of code in a software i have. The process doesnt use more than 10% of my processor but its written in vc6 and now im migrati...
[16 replies] Last: Thank you all, i've solved all my problems =) I should have come acros... (by mc1982)
precision formatting for iostream
 
Suppose I have 10 columns and a million rows in a matrix and I want to implement operator<<. Each of the 10 columns has a different, but known precision. I wa...
[4 replies] Last: Ah, that is a problem with how the computer represents doubles/floats.... (by firedraco)
by didijc
General C++ Tree
 
Hey C++ guru's... I would really appreciate some help... I'm building a general tree (a tree with one root and N children), I've written the code and comp...
[1 reply] : Have a tree node point to its first child and then its oldest sibling ... (by smilodon)
Simple Message Passing Library/Protocol
 
I'm looking for a simple library that can allow me to pass messages and data to another process running remotely on a server, preferably using the HTTP protocol...
[1 reply] : Have you looked at SOAP? (by kbw)
avoiding #define
 
Hi, Here are my requirements: - a Currency object can only contain double m_value as a member (I need sizeof(Currency) to be the smallest size possible). ...
[2 replies] Last: Thanks Bazzy! I will try it out... (by kfmfe04)
input data from a text file.
 
Okay, here's my situation, I'm writing a program with a bunch of stuff in a text file, and I need to take the data from the text file (say, a written paragraph)...
[2 replies] Last: getline http://www.cplusplus.com/reference/string/getline/ http://w... (by Bazzy)
How to make a console ignore something
 
Ok so i need a way to make it so if a user enters 6.71 the program will ignore the .
[5 replies] Last: Perhaps, it would be better to read it in as a string. Then you can e... (by smilodon)
by aarmin
punctuation character
 
Can you tell me what is wrong whit this code. I want it to remove all punctuation characters but the output is always empty. Correct this code please. #inclu...
[4 replies] Last: Please get rid of your system call, there are better ways of pausing t... (by smilodon)
compareDates
 
seems as though my account has been suspended.....YAY!!! Now to just get it deleted.....emailed the admins and asked them to do so. I will be gone soon......a d...
[3 replies] Last: After seeing your latest reply on your other thread, I decided to r... (by smilodon)
by exidis
How would I go about displaying?
 
Alright so here's the code I'm using: #include <windows.h> #include "bscan.h" int main() { BOOL (__cdecl * damage)(DWORD, DWORD, DWORD, DWORD,...
[no replies]
by Disch
Static lib global ctor issue
 
I posted a poorly phrased version of this question a while back. I've since done more research on it and am able to reproduce the error in a minimal compilable...
[no replies]
by reddog
open file
 
hello im new to c++ normally i would open a file for appending with a code that looks like outfile = fopen("test.txt""a"); but now i want to use a variab...
[2 replies] Last: There is also a tutorial on file I/O: http://www.cplusplus.com/doc/tut... (by Bazzy)
Linking a console onto another app/game
 
Ok so this will be a real challenge for you all who can help me. I want to make it so it reads a settings.ini file. to get certian information. Thats in the m...
[no replies]
by nny
TRUE random
 
hi.. i`m trying to make something like yamb game, and i`m far from making it, but here is my first problem: numbers must be in range 1 to 6 and random() gen...
[14 replies] Last: I suppose I'm more of a skeptical agnostic. I don't believe in God, b... (by helios)
PIC programming
 
Where can I get some resources for programming PIC's. More hardware related then anything. I've done console programming for a while now, but I am looking to ge...
[4 replies] Last: We use quite a few pic's in the projects we have, the one I am current... (by dmoore210)
reading binary file to unsigned char
 
Hi all, For my program I need to read data from a file then "join" two chars as an unsigned short. Currently I am using fstream to read the file (to signed ...
[2 replies] Last: Ah... POINTERS! Haha thank you once again helios. I think I've been s... (by mrHappyPants)
July 2009 Pages: 123456... 14
  Archived months: [jun2009] [aug2009]

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