49,761 Topics
| |
// 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 … | |
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, … | |
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:; // … | |
Can anyone tell me how to catch an exception thrown by dynamic_cast , typeid and new in C++ ?:sad: | |
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 … | |
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 | |
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 … | |
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 … | |
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> … | |
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 | |
: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 | |
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 … | |
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 | |
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 … | |
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 … | |
Can someone explane to me how prefixs and postfixs are used and how they work. :o | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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. | |
[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 *&, … | |
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! | |
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 … | |
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 … | |
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 … |
The End.