49,761 Topics

Member Avatar for
Member Avatar for Lance Wassing

Hello Everyone, My question is pretty basic, i hope. Basically, what i have is an extremely large text file, which acts as a flat file database... in essence. Text file formatting looks like this: CLIENT CODE | CLIENT NAME| CLIENT ADDRESS 1 ... This pattern goes on for about 23 …

Member Avatar for WaltP
0
130
Member Avatar for jan1024188

Hello, I wanna know if there is any way to make a window transparent using Win32 API Thanks in advance, Jan

Member Avatar for jan1024188
0
139
Member Avatar for user333

Hi guys, I am working on a program in C++. I need some help with writing objects to a disc and then read the information later. Thank you,

Member Avatar for John A
0
31
Member Avatar for CRD

I'm using SAMS Book "Teach Yourself "C" in 21 Days" sixth edition. useing the Editor/Compiler that came with the Book. DEV C++ The saubject program that I'm trying to compile is Print_it.c it prints files w/line numbers and when the compiler gets to the first line with "STDPRN" it stops …

Member Avatar for CRD
0
236
Member Avatar for negbballer54

Hey, I'm writting a program in C that is supposed to be a simple connect four game. I ran into problems when I tried to assign my array connects to a set value. The compiler gave me the error, Invalid indirection. Heres a little bit of the code where the …

Member Avatar for negbballer54
0
98
Member Avatar for Prog.Learner

[COLOR=#0000ff]Hi folks,[/COLOR] [COLOR=#0000ff]I get this error message on this line when I try to count the amount of characters in a string. I wanted to count the characters so I can manipulate how the output is shown. It tells me no argument is made whereas I feel that the particular …

Member Avatar for John A
0
242
Member Avatar for Sturm

I am using debian linux and I cannot seem to get sdl_ttf working. It compiles fine but the program quits due to error checking in the code. It returns false at the ttf_init() part. Do not know if this makes a difference but I got sdl and ttf via apt. …

Member Avatar for John A
0
2K
Member Avatar for grunge man

why isnt this program working? [CODE]#include <iostream> #define SIZE 10; using namespace std; main () { char Black,Brown,Red,Orange,Yellow,Green,Blue,Purple,Grey,White; int a; int Color[10]; { int i, array[size]; for (i = 0; i < size; i++) { array[i] = i; } } cout<<"enter the color of the stripe"<<endl; cin>>Color[i]; color[0]=Black; color[1]=Brown; color[2]=Red; …

Member Avatar for Salem
0
97
Member Avatar for maverick786

Can anyone help? here is my code: passing an array base list to a function and search for an item. [code=c] #include <iostream> #include <fstream> const int MAX_LENGTH = 10; using namespace std; class IntList { public: IntList(); void GetList(ifstream &data); void PrintList(); int LengthIs(); private: int length; int values[MAX_LENGTH]; …

Member Avatar for WaltP
0
108
Member Avatar for nanodano

I'm trying to create a general buffer that I can use in my program. It will work with ints as well as strings. So far I've been using a strstream, and it works without a hitch, but I was wondering if there is a way to just create a generic …

Member Avatar for iamthwee
0
76
Member Avatar for Praetorian

My prof. gave us this class project to do and we had to more or less fill in the blanks. So here is what i have for my code and it works up to the point where it asks you if you want to go first or not. So weather …

Member Avatar for Praetorian
0
366
Member Avatar for ganbree

Ive been writing a DirectX application for some time and there has been a bug that I have been unable to fix, but this is to do wth the Windowsx API. I can run my DirectX application (Fullscreen) fine, but when I Minimise it then restore, fullscreen mode does not …

Member Avatar for ganbree
0
207
Member Avatar for fmlyman

Yes, this is homework. This is my first course in programming and I am having a problem translating what I know I need to do into code. I basically need to write a progam that reads a person's name in the following format: first name, then middle name or initial, …

Member Avatar for John A
0
125
Member Avatar for Jmosure

i am having two problems with my code. the first error message highlighted in green says i need to return a value instead of what i have written down. and the line highlighted in red says that my value is not being ignored. can anyone help? I am totally lost. …

Member Avatar for thekashyap
-1
423
Member Avatar for abhinav.sharma

[CODE]#include <iostream> using namespace std; int main() { int a; cout<<"Enter a number"; cin>>a; [B]if(a=5)[/B] { cout<<"Five"; } else { cout<<"Not Five"; } } [/CODE] When I use the assignment, the result is always "five". I understand that a is assiged 5, but there is no statement to check for …

Member Avatar for abhinav.sharma
0
103
Member Avatar for kartik911

Hi i am a beginner in programming C++ language and am having a bug in the doubly linked list program. The problem is while printing the list in fwd direction the prgm prints the contents just fine. however while trying to print the list in reverse direction nothing gets printed. …

Member Avatar for kartik911
0
132
Member Avatar for RaCheer

Hello! I have written a program that lets the user enter numbers and they are then sorted into ascending order. The number of times each number occurs is also displayed. I previously wrote it using a selection sort but could not get the times each number occured to display correctly. …

Member Avatar for Lerner
0
105
Member Avatar for CRD

I am trying to print to my printer which is on LPT1 from a C program Am using dev c++ which came with Teach Yourself C in 21 Days here is the code that is supost to print th my printer which is a HP Photosmart 7350. [code=c] /* Demonstrates …

Member Avatar for CRD
0
288
Member Avatar for Jmosure

hello everyone I am trying to create an array that will prompt the user for 5 numbers in the array and simply display them. but I keep geting this error message saying i have too many arguments in my function... please help. here is my code: [code=c] #include <iostream> using …

Member Avatar for Jmosure
0
796
Member Avatar for SHWOO

Can anyone explain why I am not getting any output from this code [code] int _tmain() { String *sym[] = {S"BA", S"CA", S"MS"}; int shares __gc[] = {25, 100, 30}, price __gc[] = {25, 31, 37}; Random *randomCurVal = new Random(); int purVal, curVal; int totalPurVal = 0, totalCurVal = …

0
79
Member Avatar for maverick786

I have a program that creates a linked list and is required to count the number of elements in the list. This is what I have thus far. [code=c] #include <iostream> using namespace std; struct listrec { int value; struct listrec *next; }; listrec e1,e2,e3; int listsize(listrec); struct listrec* temp; …

Member Avatar for maverick786
0
140
Member Avatar for FlyingRedneck

hi everyon i'm new and i need some help. I've been taking a class in C++ and i downloaded the C++ 2005 express edition to my laptop to work on it at home, and the header file iomanip.h doesn't work. I bet this is probally an easy fix but help …

Member Avatar for John A
0
101
Member Avatar for Riazansar

dear people! i have made a program to calculate the smallest and largest of numbers trough a reference funtion. i am stuck in a very small part. in main function i should do like if somebody dont enter anynumber or enter a number bellow 0 the program should say NOTHING …

Member Avatar for John A
0
125
Member Avatar for confused!

My program is reading from a file that has the following lines (plus quite a few more....) the name of the txt file is palindromes.txt. [code] Able was I ere I saw elba Go hang a salami I'm a lasagna hog Dennis and Edna sinned Satan oscillate my metallic sonatas …

Member Avatar for WaltP
0
286
Member Avatar for guy40az

I have a general question about compilers, I just want to know the opinions of people that have been using them for a while. I want to know what is your favorite one (the name and version) and why you like it the best.

Member Avatar for WaltP
0
137
Member Avatar for RaCheer

I am writing a program that allows the user to insert numbers and then the program sorts them into ascending order. I have this accomplished, however, I also need an array to count the number of times each number the user inserts occurs. For ex: Say the user inserts 3 …

Member Avatar for RaCheer
0
151
Member Avatar for afr02hrs

Hi I am new to C++ and I would be grateful for some help with the following: [code] #pragma argsused int main(int argc, char **argv) { AnsiString Line; int Index; Line = ReadStringPr("Enter your text. It must not finish with a space character." ); Index = 1; while (Index <= …

Member Avatar for Lerner
0
343
Member Avatar for jan1024188

I have this code (example) [CODE] const char g_sz_className[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UNIT msg,WPARAM wParam, LPARAM lPraram) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage; break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int WINAPI WinMain(HISTANCE hIstance, HISTANCE hPrevIstance, LPSTR lpCmdLine, int …

Member Avatar for jan1024188
0
114
Member Avatar for addicted

please i need someone to help write a program that receives some sets of binary numbers and convert to decimal..... using C++

Member Avatar for thekashyap
0
95
Member Avatar for thekashyap

Hello *, I was writing an assert() stmt when I realized the following (see code). Can anyone explain why/how. My final aim is to be able to write an assert stmt for verifying that my function (a demo function) works fine. I heard from someone that there are special assert-macros/comparision-operators …

Member Avatar for thekashyap
0
1K

The End.