General C++ Programming - January 2009 (Page 5)

Assistance with console based program
 
I'm trying to write a console program, but i'm having difficulty with three things: 1. > Making two or more console apps communicate with each other. 2...
[11 replies] Last: Oh, awesome. That helps a lot, I hadn't looked at that link. Thanks, I... (by brentc628)
by tition
Carry over with integer operations
 
Hi all, I want to know how can I figure, when I am multiplying or adding two integers, whether there has been an automatic carry over due to the integers bei...
[5 replies] Last: Yoinks! Sorry about that. c = a + b; if ((unsigned)c <= max( (uns... (by Duthomhas)
Passing anonymous struct in C++
 
Hi all, I'm looking for a little advice with regard to the differences in "struct" behaviour between both C and C++ implementations. As illustrated within...
[4 replies] Last: Would you be satisfied with BogStandardClass mystring2(mystring1) + ... (by kbw)
tangent points on a circle
 
hi we have a circle's center coordinates, its radius and an external point coordinates. We need to find the coordinates of the points (2) where this exter...
[1 reply] : Do you need to do this in a C++ program, or is there another reason th... (by Corpus)
by Disch
Need ctor parenthesis with new?
 
Hey, I just have a quick question regarding C++ standards and the new operator. If I have a class with a default ctor: class A { A() { /* Do Stuff ...
[3 replies] Last: Excellent. This is what I thought, but I'm glad to hear confirmation.... (by Disch)
Making Boost Portable with Our Code
 
Dear all, I have a set of codes that use a lot of Boost tool. I then want to release the source code for public. Is there a way I can make port Boost ...
[4 replies] Last: Boost has 2 types of libraries. Include and Link. Include libraries... (by Zaita)
Reading HTML with <fstream>
 
Hello, I reciently downloaded some webpages with wget (see http://www.cplusplus.com/forum/general/6826/) and wrote a small program to parse them. It's a si...
[4 replies] Last: Yeah, that wasn't a smart question. Got confused cuz I was getting ga... (by enduser000)
strtok
 
char *ptr ptr = strtok( buffer, " " ); ptr = strtok( NULL, "\0" ); cout << ptr << endl; whereby buffer is a space in memory that got its data from a f...
[4 replies] Last: ok I found out the reason from my lecturer, turns out I was using a wi... (by unregistered)
by helios
Memory debuggers
 
Well, I've given up on finding my memory corruption error buried somewhere in my 16k LOC, What memory debuggers for Linux (x86 and x86-64) would you recommend? ...
[5 replies] Last: Well, I ended up using Valgrind, and it's pretty good. I fixed like fi... (by helios)
inventory problem
 
i got a problem with a program that i am doing, i was supposed to create a menu which contains 4 different selection, i got the menu up and running but i couldn...
[1 reply] : Function buyDrinks does some calculations, but the values are lost w... (by kbw)
Executing Commands from a Command Line to External Program
 
Hello, I am trying to input lines of code into a command line for a program from C++. I have read up on the system command, however, my main problem is once ...
[2 replies] Last: Hi Zaita, I'm not sure how to use CreateProces(). Can you expand on it... (by workboy)
by CNoob
Raw Socket - Recv/Send Problem
 
Hello, Iv recently been researching raw sockets, and have tried to create a program which simply sends a raw packet, and then receives it (from 123.4.5.6:55000...
[no replies]
by levone
sending a class address to a new function..
 
first, hello all. err... was gonna say more on the lines of hello but i forgot... that quick... sad... moving on. so here's my problem. Attack( &Main,...
[3 replies] Last: i have the entire class, and all its methods(functions), in Character... (by guestgulkan)
Copy File
 
I'm Trying to make a program that copys files and pastes them in the same folder. I got that far but i want the copyed file to be... hard to explin here is and ...
[4 replies] Last: Thank You Very much. You Explained it just right. I got the program to... (by GrosseVogel)
system() Calls
 
Hello, I've got 2 problems i'm hoping someone can help me with. Problem 1: I've written a program that creates folders or directories on the user's hard ...
[1 reply] : Problem 1: http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/i... (by Zaita)
Graph
 
Hi, I just started with learning C++ and I think to understand the basics but I miss a lot of experience with all the library-functions. I need to creat ...
[1 reply] : www.google.com :) (by Zaita)
by ishii
I need Code ((Classes and Objects ,Operator overloading))
 
Write a C++ program which contains a class named Time having three data members. • Hours • Minutes • Seconds The class must have • A default...
[8 replies] Last: A bundle of thanks to you specially syedmuhammadali and egregory314 ... (by ishii)
Encryption using Genetic Algoritms
 
I've been working on a program to read strings of bytes from a file and use "crossover" to swap bits between the strings and then write them to a new file. The ...
[8 replies] Last: I found that paper when I was looking for some help LoL. I got stuck t... (by Leon4116)
Simple Makefile Problem (with a simple dependency)
 
Hi all, I have 4 '.cpp' files and 1 header files: Tools.cpp Code1.cpp Code2.cpp Code3.cpp and Tools.hh Now all Code1.cpp, Code2.cpp, Cod...
[1 reply] : http://www.cplusplus.com/forum/unices/6710/ (by kbw)
by t0t0
#import Directive collision problem , error C2061
 
I think I have a collision problem : I have two intefaces defined in a idl called Car and Garage. in Garage Two properties are defined : HRESULT Cars([out, ...
[2 replies] Last: sorry I didn't know about the formating. Error is really this dener... (by t0t0)
January 2009 Pages: 1... 34567... 11
  Archived months: [dec2008] [feb2009]

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