48,986 Topics

Member Avatar for
Member Avatar for varma
Member Avatar for coolice

Hi ! I am sorry to disturb here with a so complicated question, but I got lost since weeks, and I dod not found any help. I am trying to learn programing in BCB so i am amateur. I am trying to create a kind of pop3 proxy, which could …

Member Avatar for FireNet
0
87
Member Avatar for biel_andrada

Hi! Thanks for the help regarding vectors :) It really helped me. Now, I have a problem regarding classes. I do not know the problem in this program #include <iostream.h> #include <ctype.h> //islower(), toupper() #include <stdlib.h> //exit( ) class Temp { public: Temp( ); Temp(double initDeg, char initScale); double Degrees(); …

Member Avatar for gusano79
0
103
Member Avatar for the_one2003a

Hi I created a class,simplified class is like below: #include<iostream.h> class cCat { public: //Constructors and Destructors cCat(); ~cCat(); //Accessor Function int & cCat::GetAge() const{ return *itsAge;} //Convertion operator cCat(int); // cCat object =int x private: int *itsAge; }; cCat::cCat() { itsAge = new int; *itsAge= 20; } cCat::~cCat() { …

Member Avatar for the_one2003a
0
131
Member Avatar for Sphyenx

Ok, ive done all my reasearch, is this how i should learn them.... Python, C, then C++, then JAVA, then PERL?? now should i forget botui Q/basic, an dpascal, and C# or add those in.

Member Avatar for Killer_Typo
0
110
Member Avatar for Sukhbir

#include<iostream.h> void main() { cout<<"hello"; } //IF WE COMPILE THIS PROGRAMME IT WILL NOT PRINT HELLO ON U'R SCREEN.TELL ME WHY & TELL ME PROCEDURE HOW IT PRINT USING COUT IN VC++

Member Avatar for stg110
0
273
Member Avatar for smithag261

I'm new to C programming. I could not understand how to write the following programs. 1. Any year is input through keyboard. Write aprogram to determine whether it is a leap year or not.

Member Avatar for let us c
0
154
Member Avatar for Ghost

Can anybody help me with some or all of these problems? Problem 1: Write the definition of a function minMax that has five parametersª. The first three parametersª are integersª. The last two are set by the function to the largest and smallest of the valuesª of the first three …

Member Avatar for WhataNerd
0
218
Member Avatar for WhataNerd

This is just a general C++ question. For someone who has been working with C++ for a while now, my question is what are the best articles-books-anythings to read or do when starting out using C++ . I have a new found passion for programming, and i just want to …

Member Avatar for WhataNerd
0
151
Member Avatar for Ghost

You replied to my post earlier. I had the C++ question on remainders. The compiler said your code was incorrect :twisted: , so I thought i would give you the orriginal question. Here it is: Write the definition of a function divide that takes four arguments

Member Avatar for Ghost
0
471
Member Avatar for Nexxuz
Member Avatar for Killer_Typo
0
103
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
107
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
115
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
148
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
107
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
679
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
162
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
204
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
148
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
348
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

The End.