49,761 Topics

Member Avatar for
Member Avatar for crazybitez

Hi, I'm trying to write an array of linked lists to disk using c++.I'm running this program on Linux.My data structures are as follows... A Hashtable class which holds the array of linked lists... A linked list class which also has a writetodisk function.. An indexer class which adds entries …

Member Avatar for crazybitez
0
108
Member Avatar for Dragon Master

Hi, I need help with what to start with... Allegro or DirectX or something else??? I program in C++, and I have found the books, but what should I start with as a beginner??? Thanks in advance!!! ;)

Member Avatar for Dragon Master
0
117
Member Avatar for Frogstar

Hi, I'm trying to compare two text files (outputs from a database and corresponding spatial table in a GIS) to check for errors. Basically, i'm assuming that the output from the database is correct and any missing/repeat numbers in the spatial table will be errors and should be reported. I've …

Member Avatar for Dave Sinkula
0
147
Member Avatar for gray

Hie I have got a problem , the problem I cannot extract the values from a file (eg I created a file called gray.txt for extraction and a file called average.nbr for insertion) the program is running but if I check in the file average.nbr there is nothing written. here …

0
65
Member Avatar for mmmmar

hi guys! ;) i'm tryng to make a [B]class string[/B]... i'm wondering how to make a member function that can show the string length w/o using strlen..please help! :?: i already made a program that prints the length of the string w/o using strlen...but the problem is, it's in the …

Member Avatar for mmmmar
0
149
Member Avatar for chound

How do I use the resources I created in Visual C++. For eg, I created a dialog box. How do I call that in my program. :cry:

Member Avatar for BlackDice
0
99
Member Avatar for kohkohkoh

for a simple program... #include <iostream> using namespace std; int main() {[color=magenta]int x[/color]; cout << "enter password\n"; [color=red]cin >> x[/color]; return 0; } for the pink colour part.. if i want my password to be in integer and alphabets, so what command line should i put? and when i enter …

Member Avatar for saji
0
108
Member Avatar for Ghost

I need help solving two macro questions in C++. They are: Define a macro PANIC that expands to code that uses cout

Member Avatar for Ghost
0
1K
Member Avatar for the_one2003a

Hi I tried to use a pointer to point to address of an enumurated constant but this made a compile error. so can can I know address of an enumurated constant and use it with a pointer? down is a sample code: #include<iostream.h> main() { enum Date {mainX=1,mainY}; const int …

Member Avatar for the_one2003a
0
680
Member Avatar for the_one2003a

Hi I made a class that has a public integer pointer and I use this pointer in main like code below: ([I]Just a sample code,I know about memory leaks and other related bugs,just a sample[/I]) #include<iostream.h> class Cat { public: int *Pointer; }; main() { Cat *pCat; pCat=new Cat; pCat->Pointer …

Member Avatar for the_one2003a
0
134
Member Avatar for Sukhbir

EXplain me about these function cin.clear(); cin.ignore(); tell me what function i use for flushing a input bufer in c and c++;

Member Avatar for stg110
0
102
Member Avatar for drdregambit

struct vertex //object in the list { int data ; list <edge*> edges ; }; list <vertex> thenodes ; //user defined function object struct checking : public binary_function <vertex,int,bool> { bool operator()(const vertex &a,int b) { return (a.data == b) ; } }; //the function using the find_if function list …

Member Avatar for glSuccinct
0
164
Member Avatar for ihvc4

I have the 10 classes car and a member of this class is the integer weight how can i create an aray of the ineger weight with ponters to that member? [B]car[/B]

Member Avatar for glSuccinct
0
280
Member Avatar for Pikachu

I've created a file called country.txt which holds a list of 100 countries' name. Eg (to name a few): [COLOR=Blue] America Bahamas Canada Denmark Eygpt France Germany Hong Kong[/COLOR] My question is, how would I have the computer pick a random country name from the list above? Do I have …

0
121
Member Avatar for edison

#include<iostream.h> #include<math.h> void main() { float x,y; cout<<"Please enter one number "; cin>>x; y=x*x; cout<<"The square of the number you enter is "<<y<<endl; } :eek: Pls help... thx u very much...

Member Avatar for freesoft_2000
0
150
Member Avatar for ze_viru$

this is my program and i want 2 put it in terms of modules(functions): #include<iostream> #include<string> #include<iomanip> using namespace std; int main() { //initialization phase. string month; int day=0,cones; char choice; double price; //processing phase. while(day <= 31)//day must not be greater than 31. { cout<<"Welcome to The Ze_Viru$ Ice …

Member Avatar for payam
0
149
Member Avatar for kohkohkoh

for a simple program... #include <iostream> using namespace std; int main() {[color=magenta]int x[/color]; cout << "enter password\n"; [color=red]cin >> x[/color]; return 0; } for the pink colour part.. if i want my password to be in integer and alphabets, so what command line should i put? and when i enter …

Member Avatar for Pikachu
0
139
Member Avatar for Asif_NSU

guys, i have been working on a project, i have been trying to use dxsmithlib (a directx wrapper from codeproject) and win32 CONSOLE application in visual c++ 6. When i try to build the project by specifying "use MFC in a shared DLL" it shows no errors or warnings and …

Member Avatar for Chainsaw
0
351
Member Avatar for mrb260478

[FONT=Courier New]I want to toggle caps, num or scroll lock using c++ program on a unix machine. Can some one help?

Member Avatar for cosi
0
225
Member Avatar for ellisrn

Hi, I have this monster program. But, mostly I need help in Main and in Derivs. I know some is written in a juvenille form, but I'm not a C++ student! I have defined all these arrays in the Main function and I need to write an "if" statement in …

Member Avatar for Dave Sinkula
0
173
Member Avatar for Frogstar

Hi, I'm trying to make a little tool that would come in handy for some work i'm doing, but my knowledge of C++ is quite limited (i've done a few simple projects at uni, and i've got some books on it). My task is to compare to series of numbers …

0
94
Member Avatar for chebwanawe

Hi, I am new on this list. I would like to learn how to deal with turbo c++ errors :rolleyes:

0
78
Member Avatar for pinguwin

I'm an experienced programmer and I've been using C and other languages for many years. I've been learning C++ on my own and writing programs and feel quite comfortable doing so. However, when I look at a C++ Faq, I can get lost trying to follow some of the examples. …

0
91
Member Avatar for paynekiller

I've got a singly linked list, and the following code is supposed to delete all nodes that are ranked as "Trainee", it deletes them all, but if the last node is a "Trainee", it will not delete it, why is that? [code] void LinkedList::removeLowest() { Soldier * ptrDelete; ptrCurrent = …

Member Avatar for Chainsaw
0
132
Member Avatar for RITZY_G

ANY ONE WHO CAN PLEASE HELP........ Design and write a C++ program for the problem given below. Apply the rules of good programming style by making your program modular, and using parameters and local variables in subprograms or functions. Add comments where necessary for each function. Use meaningful variable names. …

Member Avatar for RITZY_G
0
163
Member Avatar for coolice

Hi ! I am sorry if I posted in a wrong place, but I could not figure it out, where I should. I am urgently looking for a POP3 Server VCL component for Borland C++ Builder. I had checked through all components site, but I could not find one. Is …

Member Avatar for coolice
0
117
Member Avatar for paulm

I am having difficulty with this problem with setting up the classes. If you could shed some light to get me started that would be great! :rolleyes: Design a Line class that uses Point objects point.h. Include a slope() member function that throws an exception for undefined (vertical) slopes. Add …

0
70
Member Avatar for gsreerekha

I am using Turbo C++ 4.5 version. I tried window (). But when I complied the code given at the bottom of this page, I am getting the following error messages: "call to undefined function 'window' in function main ()" "call to undefined function 'textcolor' in function main ()" "call …

Member Avatar for arash
0
83
Member Avatar for stg110

I have a code which is near to this one struct first { int data ; list <second> seconds ; }; struct second { int data ; list <first>::iterator vert ; }; how i could get rid of the circular reference problem in c++ note : i must put the …

Member Avatar for stg110
0
92
Member Avatar for kohkohkoh

[font=Times New Roman][left]here is the question:[/left] [left] [/left] [left]Use a two-dimensional array called [/font][b][font=Times New Roman]price [/b][/font][font=Times New Roman]to hold the prices for Proton’s car[/left] [left]regarding to the models and CC as listed below. [/left] [left]--------------------------------------------------------------------------[/left] [left] [/left] [left]in 2d array..i could get[/left] [left](for example)[/left] [left] [/left] [left]void disp(a[][3]);[/left] [left] …

Member Avatar for Dave Sinkula
0
97

The End.