49,761 Topics

Member Avatar for
Member Avatar for Greyspectre

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 …

Member Avatar for Greyspectre
0
122
Member Avatar for cam875

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 …

Member Avatar for cam875
0
169
Member Avatar for QuantNeeds

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 …

Member Avatar for QuantNeeds
0
223
Member Avatar for allena
Member Avatar for n1337
0
491
Member Avatar for solaf_111

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

Member Avatar for mitrmkar
0
172
Member Avatar for cam875

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"; …

Member Avatar for ninjaneer
0
117
Member Avatar for QuantNeeds

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. …

Member Avatar for QuantNeeds
0
2K
Member Avatar for mrboolf

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 …

Member Avatar for mrboolf
0
587
Member Avatar for abacian1983

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 …

Member Avatar for Nick Evan
0
230
Member Avatar for QuantNeeds

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 …

Member Avatar for QuantNeeds
0
295
Member Avatar for CheesyBeefy

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 …

Member Avatar for VernonDozier
0
135
Member Avatar for integer*09

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 …

Member Avatar for integer*09
0
309
Member Avatar for CoolGamer48

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 …

Member Avatar for Dave Sinkula
0
79
Member Avatar for FTProtocol

[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

Member Avatar for FTProtocol
0
106
Member Avatar for n00b3

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 …

Member Avatar for n00b3
0
126
Member Avatar for cyrinius

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 …

Member Avatar for AceofSpades19
0
158
Member Avatar for lahom

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 …

Member Avatar for Ancient Dragon
0
738
Member Avatar for manzoor

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 …

Member Avatar for VernonDozier
0
89
Member Avatar for VernonDozier

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> …

Member Avatar for VernonDozier
0
248
Member Avatar for ranseed

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 …

Member Avatar for Lerner
0
79
Member Avatar for 1q2w3e

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.

Member Avatar for Lerner
0
95
Member Avatar for adarshcu

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?

Member Avatar for writem
0
117
Member Avatar for adarshcu

Can anyone provide me a program with comments regarding generating fib series using copy constructor??

Member Avatar for stephen84s
0
60
Member Avatar for FTProtocol

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.

Member Avatar for writem
0
69
Member Avatar for Alex Edwards

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 …

Member Avatar for Alex Edwards
0
5K
Member Avatar for vender hak

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 …

Member Avatar for vender hak
0
89
Member Avatar for jen_

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 …

Member Avatar for pradhan.nc
0
87
Member Avatar for mike issa

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 …

Member Avatar for mike issa
0
341
Member Avatar for garblund

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 …

Member Avatar for mike issa
0
167
Member Avatar for manzoor

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; …

Member Avatar for manzoor
0
97

The End.