49,761 Topics

Member Avatar for
Member Avatar for Msh84281

// This program will write the name, address, telephone number // and college major of the programmer. // Michael Hawkinberry #include <iostream> using namespace std; int main() { cout << " Michael Hawkinberry\n6393 Harlem-Grovetown Road, Harlem, Georgia, 30814\n(706) 556-3731\nComputer Science " << endl; return 0; } Is this program error …

Member Avatar for Dave Sinkula
0
272
Member Avatar for ellisrn

Hi, I'm trying to run this short code and when it prints out i get about 20 of these "pow: DOMAIN error" messages, and then my results. Can anyone shed any light on this. I'm not acutally a programer, but got thrust into this in a project for another class, …

Member Avatar for Dave Sinkula
0
2K
Member Avatar for bruseyboy

Hi Is it possible to write a c++ program that sets up a pointer at the start of an array on the heap, and the pointer holds the address of the start of the code. ie something like--- int *pointstart[5]; pointstart = new (codestart, 0,0,0.0); 1nt main() { codestart:; // …

0
104
Member Avatar for diablo

Can anyone tell me how to catch an exception thrown by dynamic_cast , typeid and new in C++ ?:sad:

Member Avatar for meabed
0
68
Member Avatar for crazybitez

Hi, I want to implement as search program which will be able to search through a given set of documents for a given string...I've heard that indexed searches are the best bet in these cases...(if anyone knows of something better i would appreciate it..)..now if i have a set of …

Member Avatar for meabed
0
163
Member Avatar for scarface_qwerty

i want to make a bouncing ball program with 10 ball. the problem is that every ball has his own delay. i'm stuck in here. :confused: if u know the solution please help me

Member Avatar for crazybitez
0
92
Member Avatar for lordofthisworld

i'm new to programming in c++ and have been confuzzled by this for two days: the following code was meant to create a new class ("character") and enter into it information entered by the user such as name etc. the problem is that whenever i enter something (at one of …

Member Avatar for diablo
0
148
Member Avatar for .·)Tusky(·.

I'm using the Window Console to create a excerice out of a book for beginers. First it's coded to ask for a number, then after you press the enter key it tells you the results, in about 2 seconds it just closes the Window Console. How can I prevent the …

Member Avatar for diablo
0
168
Member Avatar for PViper

Hi, I'm trying to write a program(beginner level) to read a text file line by line and compare each character with one in my code. So far I have read the lines from the file: #include <string> #include <iostream> #include <fstream> #include <vector> using namespace std; int main() { vector<string> …

Member Avatar for PViper
0
155
Member Avatar for Sukhbir

Look the following code: struct emp { CASE :1 struct emp p; //ERROR CASE :2 struct emp *k; //IT WILL WORK }; WHY IT IS WORKING IN CASE :2 and not in CASE :2. TELL me with explanation

Member Avatar for Chainsaw
0
178
Member Avatar for rahulr

:cheesy: hi i've just joined.i began c++ a month ago.i'm havin problems regarding a problem involving 2-d arrays.here it is print x x x x x x x x x

0
65
Member Avatar for sirflex

Hello Everyone, I am very new to C++ and have a program due this Wednesday. I would appreciate any help on this. I have written the pseudocode for the program but do not know if it is correct or how to write the actual code for it. ------------------------- The program …

0
71
Member Avatar for nesbel

Hello all: How can I capture events generated in an instance of TCppWebBrowser created at runtime? Another question: how can I know which TCppWebBrowser is the sender if I have more than one in my application. Thanks

0
73
Member Avatar for nirvedacharya

Hello there, I want to create my own Devanagari (the lingual script of India) keyboard program, to do this I want SOURCE CODE SAMPLE(S). can you help me for this work? (Please be sure I do not want any ready-made program available in market, because I want to create new …

Member Avatar for FireNet
0
58
Member Avatar for .·)Tusky(·.

I'm new to C++ and I'm studying out of a book (Game Programming - All In One, 2002) From what I've seen from other programs it's sort of out of date. Can someone tel me what's wrong with this? -Error C2734: 'Value' : const object must be initialized if not …

Member Avatar for FireNet
0
485
Member Avatar for Marilyn_Manson

Can someone explane to me how prefixs and postfixs are used and how they work. :o

Member Avatar for Dani
0
169
Member Avatar for .·)Tusky(·.

Hello Random People, I'm new to C++, and I have some questions for all you'all. The first subject I'd like to talk about is Unary Operators. They give me a sample problem in the book. (The book is was published about 2 years ago) Sample Problem: int Result, A, B; …

Member Avatar for .·)Tusky(·.
0
154
Member Avatar for coolice

Hi ! I would like to ask your help. Since days, I am reading fstream tutorial in tutorials section as I am trying to put together 3routines: 1., Can write a structure to a file. (ButtonClick1) 2., Can tell how many records in the file (ButtonClick2) 3, Can read back …

Member Avatar for Dave Sinkula
0
596
Member Avatar for philip

Hello, First I will tell theth I new in c++! I' have a problem with converting the file Input Stream. I read a single character from the stream of the curent position of the file.In one case I set the hex flag; in another case I read from the stream …

0
79
Member Avatar for psk

Hi all, can anyone tell me whether ifs function is a member function of ifstream. in the statements below the ifs has been used like ........ ifstream ifs( g_pSystemEnvironment->GetTotAlmCountFileName() ); ifs >> m_nNoOfTotalAlarm; i am not able to understand the code. could anyone help me out of it. Thanx in …

Member Avatar for Dave Sinkula
0
210
Member Avatar for freesoft_2000

Hi Everyone, I need some help in saving a file in the rich text edit control i have. Basically i have one button and richedit control on a form and what i need is the contents of the entire rich edit control to be passed to the saveas common dialog …

Member Avatar for meabed
0
235
Member Avatar for kohkohkoh

this is a copy of c language that i copied from the date of 19 july. i just started to learn c++, so i don't really understand the syntax for c.. can some one explain to me how it works to "so called mirror" the words or integers. thank you …

Member Avatar for red_evolve
0
89
Member Avatar for nita

hai I'm again I already done my program below. the problem when i run no output appear. basically I declare 2 file . 1 for input(InTransFile) another one for input and output(InMasterFile).Both in .dat. I want to compare accno1(masterfile) and accno2(transfile). if they equal have to overwrite balance1(masterfile) and next …

Member Avatar for FireNet
0
130
Member Avatar for silicon

Hello all, I have almost completed a program that will take 8 numbers from a user and store it in a linked list. Once that is done It will ask for another entry and determine the location of this new entry and how many items are currently bigger than the …

Member Avatar for Chainsaw
0
384
Member Avatar for timetogo

Would like to have one example of complete walk thru (start to finish) of a program with afore mentioned software. Something like "first C program"! For the obvious reason...Don't know how to do so...I am at the pre beginners stage, thanks.

Member Avatar for timetogo
0
85
Member Avatar for InvalidDLL

[code]#include <iostream.h> #include <ctype.h> #include <string.h> #define MAX_NAME_LEN 30 typedef struct Sheet { char Name[MAX_NAME_LEN + 1]; struct Sheet *Next, *Prev; }Sheet; //prototypes void initialise(Sheet *&, char arr[], Sheet *&); void right(Sheet *); void left(Sheet *); void first(Sheet *&); void last(Sheet *&); void erase(Sheet *); void insert(char word[], Sheet *&, …

Member Avatar for meabed
1
111
Member Avatar for ellisrn

I'm trying to write a program to do a Runge-Kutta algorithm for a complicated Norberg ODE, but two of my equations involve summations over small intervals (0 to 3) and summations of combinations. Does anyone know how to program these type of math equations? Thanks!

Member Avatar for meabed
0
171
Member Avatar for freesoft_2000

I am trying to write some code using vc++ 6.0 under win 98 but have gotten stuck in one place. I am trying to read the strings of the combobox into the edit box when i click on the command button and the variables that i have declared are as …

Member Avatar for meabed
0
105
Member Avatar for Sriram

Hi, My current Project has the following Requirements: 1. Backup the entire contents of the hard disk including Operating System as a bootable Image. 2. In case of System Failure, user should be able to perform a full system-recovery operation using the Backed up Image of the Hard Disk. I …

Member Avatar for meabed
0
303
Member Avatar for animesh

i'm having a bit of trouble as to finding out what languages sholuld i go for in making my career as a software developer , how do you compare between .net ,c++, vc++, java ,v.b , sql,oracle etc. presently i'm an under graduate and have a little knowledge of c …

Member Avatar for freesoft_2000
0
134

The End.