49,761 Topics
| |
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 … | |
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!!! ;) | |
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 … | |
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 … | |
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 … | |
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: | |
| 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 … |
I need help solving two macro questions in C++. They are: Define a macro PANIC that expands to code that uses cout | |
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 … | |
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 … | |
EXplain me about these function cin.clear(); cin.ignore(); tell me what function i use for flushing a input bufer in c and c++; | |
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 … | |
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] | |
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 … | |
#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... | |
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 … | |
| 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 … |
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 … | |
[FONT=Courier New]I want to toggle caps, num or scroll lock using c++ program on a unix machine. Can some one help? | |
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 … | |
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 … | |
Hi, I am new on this list. I would like to learn how to deal with turbo c++ errors :rolleyes: | |
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. … | |
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 = … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
| [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] … |
The End.