49,761 Topics
| |
Hello, I have been writing a piece of code to pull a set of numbers out of a text file and store them in assorted int and double variables and int and double arrays. Currently my program does this and successfully stores all the values, however it returns a large … | |
Ok, now I am getting really lost with all the different things with client-server architecture. I know the basics and stuff but I was originally going to use ODBC to have my C++ program connect to my SQL server but than I started reading about sockets and winsock and I … | |
I am not sure what to do for this error because I do not want to create an object that I initialize. I just want to use it to call the functions. I have included my header file and main() in case that I am doing something wrong. It is … | |
Please tell me what is the basic differences between C and C++? | |
hello for all i read lines from file as : getline(infile,word); but i want put condition :don't read the spaces that in begin of lines this problem appear with me now when i end my project :'( please help me | |
My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up. void AmasiVillage() { CharacterLocationID = 1; system("cls"); cout << "\n"; cout << "\n"; cout << "\n"; … | |
Hello, I am working on two separate programs because I was trying one differently. I got my other program’s issue solved but now I would like to complete this one. But I am little lost on the error because the data it is complaining about is part of the class. … | |
Hi all. I'm trying to write a "simple" program for a word game (something somewhat similar to Scrabble) and I got stopped by the task I tought to be easy enough to start with. I have a text file (Italiano.list) wich is a collection of italian words listed alphabetically as … | |
Hello I want to make pairs between random number and non random numbers. so that random number will come twice to its corresponding value. I think it is better to see the output so it will give the idea. Like the first column have the numbers from 1 to 25 … | |
Hello, I have 3 major problems: 1) I am not sure if I am doing my static test method correctly. 2) I am not sure if the wagering class is actually checking the bankBalance and the wager 3) I have the following error, which I am not sure how to … | |
Hey everyone, I'm new to the forums here, and also new to C++ and hoping to get some help. In my code, I want a random number to be displayed but in between two numbers. (ex. with my code, it generates a huge random number in the thousands, I only … | |
Hi all, I have done a word search within a text file and managed to find it on a particular line, but i dont know what to do so as to get the word/number directly after the searched word. e.g content with the text file sdakodjskfjsdkfjasook sample1. : ihavemakeit sdofjsdfjasfjsdkf … | |
Hey, I'm working on a chess game, and I'm creating two enumerations - for piece_color and piece_type. I'm wondering what the difference is (whether it's an actual difference in the way the program executes or a matter of good object-oriented practice) between having the enums be global or having them … | |
[CODE] GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); FindWindow(NULL, szContact); break; [/CODE] once its found the window of szContact, how can i bring that window to the front | |
Hooked Procedure Early Return In/External Trigger Hello, I've hooked into an application succesfully using WH_CALLWNDPROCRET or WH_CALLWNDPROC both give the same issue detailed below. In the hooked callback function I trigger my code by waiting for a spceific window message. Once the hooked callback function receives this message, my code … | |
Hey guys, new to the forums, and was hoping to get a bit of help on some C++. I am looking for a few professionals who know a lot on the code, and have a little patience. When you just started to learn how to code, what did you do … | |
hi i have an application made of several dialogs each has its own exit button my question: whan i press the exit button ... iwant to exit the whole application (not exit the present dialog and return to the Previous one ) how can i do that .....please help me … | |
I have two programs both do the same thing but both when run gave totally different results. I am sure there is a lesson to learn from this and that will teach you a fundamental difference between the ‘if’ and the ‘while’. Can anyone explain to me why both the … | |
I am using Windows XP SP II and Visual Studio 2008. I've created a little program that I'd like to run when the computer boots. Here is the code: [code=cplusplus] // dummy1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <fstream> #include <string> … | |
Hi, I have this assignment from my information structures class that is kicking my butt!!!!! I would really like some help with it. I have to use a graphical user interface which I already built to display a binary file. The binary file is shown based on a BST, a … | |
Im new to C++ and i dont know where to start so im asking you to do this. Generate all possible 4-digit combinations of words(lowercase)+ numbers(0123456789) into .txt file. | |
Can we initialize an array of objects to unique values without using constructors.... can anyone provide me a program to demonstrate this if it is possible? | |
Can anyone provide me a program with comments regarding generating fib series using copy constructor?? | |
Just wondering what functions i would need ( possibly includes ) to print someones msn contacts to a window ( selectable ) and then print text to it and send it. | |
I know this is a really sad question to ask, but please tell me... how and when should I ever use extern? I recall an example that Narue showed me but even if I read through the definition from MSDN.com as well as other sources, I still can't quite understand … | |
Please help me ! I read a book . I had new project . Following the instruction that : File->new->projects->C++ templates. The book require " Managed C++ application" templates. I use Visual Studio.NET 2003 professional . So I can't find that templates . But the book don't say use what … | |
here it goes.. example prog. output: Input a number/s, (-) to stop: 5+6-7+8-9+1-2[B]-1[/B] -the user will input numbers, if he/she inputs a (-) number that will be the time that the program will stop. -the operations between the numbers should be + and - (alternate). how will i do the … | |
i have a header file and one of the function prototypes is [CODE]extern "C" LONGBOOL _stdcall LT360LIB_CmdValue(LONGINT Handle, LONGINT CmdID, char * ParamValue);[/CODE] and there is an example of using this code [CODE]z=LT360LIB_CmdValue(0, lt_Goto_CCW, "5.5");[/CODE] when i try this code it compile and builds correctly but when i run the … | |
I have Visual C++ 2008 Express Edition and I am just trying a sample program to see what happens when it is run. I just don't know what to do to compile it. All the examples I have seen so far don't help. Some show going to "Build" on top … | |
how do you find the minimum and maximum number from a given set of numbers without sorting them ? i have the code but the it isnt working properly [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { const int SZ = 7; double sales[SZ]; int x; double lowest = 0; … |
The End.