General C++ Programming - June 2009 (Page 2)

by lasha
connect to mysql from visual studio c++ 6.0
 
hi all, can somewone help me?? foregzample i have some variable and i wont to write it in mysql,how i can do this?? can somewone show me example?? thanks beforh...
[no replies]
problem with compiler
 
i just installed code blocks on my lap top and i downloaded the gcc 4.4.0 but when i try to build my project i get this error. "project - Debug" uses an inv...
[1 reply] : It can't find the folder clearly. Just change the location on where it... (by closed account S6k9GNh0)
by vRltwE
Program is geting very slow because of cout
 
Hi all, I am writing a program, about a thousand lines, and I put some cout in the code. But the code is running very slow, so I noted that the problem is th...
[10 replies] Last: In my experience, a very output-heavy program can be dramatically sped... (by helios)
2D UI using DirectX
 
I'm tring to create 2D Windows using DirectX. Does anyone know some tutorials that are about 2D UI creation using DirectX or have some advices about how should ...
[1 reply] : Why don't you read the dozens of samples inside DX SDK ?! (by george135)
by Gregor
HEAP CORRUPTION | Cant find the reason
 
Hello. I've been debugging and searching for some time now, but I cant find the bug! I'd be very gratefull if someone checks the following #include <prot...
[2 replies] Last: tyvm :) (by Gregor)
Reading file two ints at a time.
 
Does anyone know how I would go about reading a file two ints or chars at a time? I already know how to read one char/int at a time, using the .get() method....
[10 replies] Last: Didn't I show you how to do that? http://www.cplusplus.com/forum/gene... (by Bazzy)
clearing cin stream
 
I have a problem with a program I am writing initially the segment that I am having trouble with for(/*stuff*/) { std::string temp; std::cout<<"\nEnte...
[1 reply] : I figured out my problem I was using cin>>int in another line of code ... (by smilodon)
Gettin Linker error
 
I'm new to using functions and trying to write a program to print out a calendar. While compiling in Dev C++ i'm getting a [linker error] undefined referen...
[8 replies] Last: Heres the finished program in case anyone is interested. Thanks for t... (by vince510)
can we return pointer to a character array from a c++ function
 
Hi everyone, i was trying to return a pointer to a character array in my c++ program and got a warning....i submitted the program with a warning on the online j...
[1 reply] : How did you create the array? You can't return a pointer to a local ar... (by helios)
#ifdef #undef in function
 
Hi, I am wondering what's wrong with the following code. I simply want to #undef the macro _CHAINED_LLR_LOADING. However, the macro get's undefined even when th...
[1 reply] : #ifdef is executed by the preprocessor at compile time, if (foo) i... (by Bazzy)
by Rudk
Convert a C Structure to C++ class
 
Hi all, I am about to convert a C structure to C++ class. Example: C code: struct sTag { int siVar1; struct sTag *next; }; struct sTag ...
[3 replies] Last: Ya. Its working fine. Thank you for your clarification (Bazzy and Zhug... (by Rudk)
segmentation fault
 
I am getting a segmentation fault during the execution of the following code. The program executes the first "for" loop correctly only on the first pass and it...
[8 replies] Last: Worked like a charm? Thanks a lot guys... (by tsilis3)
string full name
 
Hi im really new to c++. Im trying to finish a program. Write a C++ program that takes a string containing a full name, and outputs each part of the name se...
[9 replies] Last: #include<iostream> #include<string> #include<fstream> using namespa... (by naeem)
Vista problem
 
Hello everybody! I have a BIG error) I wrote a client-server application on winXP using MSVS2005. in my application a used winsock2.h. For trasmiting data I...
[1 reply] : close topic. problem sold (by SpbJimbo)
by mb1980
Class Report Problem
 
I need to write a student grade report using C++ classes, i am a beginner with C++. Sample Output: Student# Student Name Mt F...
[5 replies] Last: Can u please fix this for me i have been working on this since 6am it ... (by mb1980)
nonrequired input, modifying loops as they run, not stopping.
 
hey guys, so i am doing a project in which i need to be able to get input to alter the processes of a loop while it is running, but without disrupting the loo...
[1 reply] : You'll either need multi-threading to get user input in parallel, or a... (by helios)
Something stange with a variable
 
This variable in my program is used to accumulate the size of a folder. As soon as i press F10 to start debug(I use Microsoft Visual Studio), the variable fs (f...
[8 replies] Last: Return a non-reference, non-pointer Yup that works, thanks helios... (by Ima noob)
error C2447: '{' : missing function header (old-style formal list?)
 
OK here's the problem I am trying to write a program that is trying to find the average of a set of numbers and i keep getting the following error: error C24...
[9 replies] Last: Here is the basic steps of your program: 1. Open File open_input(... (by guestgulkan)
by dkaip
problem with finding
 
Hello all. I have a problem. I whant to find if the wchar_t before place pos, and only that character if there is in L" +-", but this solution give the all char...
[no replies]
Bubblesort Algorithm
 
Hey im working on a program that takes in times for appointments. In this program i do use a bubblesort algorithm to display the appointments in time order. I w...
[2 replies] Last: I suppose using the second pointer would be pretty useful, i think i m... (by RicksteR)
June 2009 Pages: 1234... 13
  Archived months: [may2009] [jul2009]

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