49,761 Topics

Member Avatar for
Member Avatar for Acidburn

[php] #include <iostream> #include <fstream> #include <cstring> using namespace std; #include "NEW.H" int main() { return 0; } [/php] and the *.cpp file: [php] #include <iostream> #include <fstream> #include <cstring> using namespace std; #include "NEW.H" void hangman::LooseLife() { cout << "testing"<<endl; } [/php] and now the header file.... [php] #ifndef …

Member Avatar for Drowzee
0
83
Member Avatar for stinus

Hi all, I have a problem that is hopefully easy to solve for you guys: I have written a rather large C++ program as part of my Master's. Now, I have to use an open source C-library ([url]http://www.tbi.univie.ac.at/~ivo/RNA/RNAlib_toc.html[/url]). I have never tried to combine C and C++. To figure out …

Member Avatar for stinus
0
495
Member Avatar for Acidburn

[php] int j; for ( j= 0 ;j <sizeOfArray ; j++) { if( letter == array2[j] ) { ++found ; encryption[j] = array2[j]; } } if ( array2[j] =='\0' && found!=0) { cout << "not found" <<endl; --looselife; cout << "You now have" << looselife << "remianing" <<endl; } [/php] …

Member Avatar for Narue
0
109
Member Avatar for Drowzee

Hello, all. Rather urgent question. I'm trying to implement a simple Cstring/Cstring map in my application so users can specify what they want to see instead of the MAC address. The information on [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vclrfmapvaluetype.asp [/url], however, tells me I can use ::mapped_type. But that doesn't exist as an option in …

Member Avatar for Drowzee
0
447
Member Avatar for djbsabkcb

What am I doing wrong I am not getting these values from the input file to even display correctly or sort in order. Give me some direction? [code] #include <iostream> #include <string> #include <cmath> #include <iomanip> #include <fstream> #include <cmath> #include <vector> using namespace std; class CommandLineException { public: CommandLineException(int …

Member Avatar for djbsabkcb
0
145
Member Avatar for WVTrammell

Where can I find specific instructions? Currently using MAC x10.3.6 operating system. Thanks Warren

Member Avatar for Ancient Dragon
0
87
Member Avatar for Coach_Nate
Member Avatar for SpS
0
113
Member Avatar for Ene Uran

Couldn't sleep last night, so I was browsing and found the "Starting Python" thingy. I must say Python looks interesting from the examples. I learned C++ in school, Python sure looks easier to understand. Does any one think it's better than C++?

Member Avatar for vegaseat
0
172
Member Avatar for SpS
Member Avatar for CrazyDieter
0
118
Member Avatar for sifuedition

Why are my exceptions not working? here is the teststack.cpp #include <iostream> #include <iomanip> #include "teststack.h" using namespace std; struct StackFullException { StackFullException(); }; StackFullException::StackFullException() { cout << "The stack is full."; } struct StackEmptyException { StackEmptyException(); }; StackEmptyException::StackEmptyException() { cout << "The stack is empty."; } Here is the …

Member Avatar for CrazyDieter
0
163
Member Avatar for Tanfo

Hi i'm trying to use libtiff to work with TIFF files but i was unable to build the library and link it with my project in Dev-C++. can someone give me some tips? thanks a lot

Member Avatar for CrazyDieter
0
107
Member Avatar for stupidenator

Hi everyone, I am just starting to learn to program in c++. I am a little confused on where to start though. Is there anywhere I can download an editor and compiler? Thank you. Nick

Member Avatar for stupidenator
0
185
Member Avatar for SpS

Is it possible to print---- hello world on the screen without using semicolon( ; ) anywhere in the code...i was able to do it through MACROS..but is there anyother way??

Member Avatar for Paul.Esson
0
129
Member Avatar for belama

In managed C++ if I have a function only concatenating a string, is it necessary to add the S in front of the "Some string" for it to be managed? (S"Some string") The string doesn't exist outside the function so will the string be managed properly without the S?

0
82
Member Avatar for Mahen

How do you, as programmers react when Microsoft is making big demonstrations of his next big Operating System " Windows Vista" and is asking you all to come and develop for his platform. I mean take a look at the videos here: [url]http://www.winsupersite.com/reviews/pdc2005.asp[/url] and tell me how you feel. Me …

Member Avatar for Stoned_coder
0
139
Member Avatar for wdowell84

Hello, noob here. I just started taking a C++ class this semester and I've been understanding everything so far, but I'm sorta confused on the nested if statements. My homework is to have the user enter a number and it'll show the roman numeral. However whenever someone enters an invalid …

Member Avatar for Judas
0
179
Member Avatar for openhiem

hey all, I just joined this community. I have been programming quite a bit in C/C++, however, this is the first time i am doing something like this. I have the Microsoft VC++ 6 package. The idea is to use the functions i have already written in the past( a …

Member Avatar for jbennet
0
227
Member Avatar for sapex

hye... can anybody help me to make a program that will allow the user to make a list of the words that occur in the text along with a count for each word of how many times it occurs....tq..

Member Avatar for Drowzee
0
153
Member Avatar for Bears5051

I am having a problem getting started on an assignment. I have to write a program for a mortgage calculator with a set dollar amount and a set APR. The instructor mentioned using pseudocode. Could someone please point me in the right direction. Thanks Very Confused

Member Avatar for Bears5051
0
372
Member Avatar for Acidburn

Not a problem as such but am i asking too much....heres the current situation: I've got a multi -dimension array populated........ [php] char buffer[5]; // holds name char holdingArray[5][5] = //holds populating array , copies to buffer { "Jame", "Anna", "heya", "rand" }; [/php] ok as you can see the …

Member Avatar for Lerner
0
217
Member Avatar for djbsabkcb

I am receiving error messages for this palindrome problem. I am reading in a file and outputting the results if it is a palindrome or not using stacks. Any ideas as to why I am receiving error messages below. [code] include <iostream> #include <string> #include <cmath> #include <iomanip> #include <fstream> …

Member Avatar for djbsabkcb
0
1K
Member Avatar for SpS

I need to make a project in C++(not very big) in my college....can you suggest me some good ideas.... I was thinking of implementing 10-15 algorithms with their complete complexity description can u give me some other ideas

Member Avatar for Lerner
0
194
Member Avatar for SpS

In the function declarations, the argument identifiers are optional. In the definitions, they are required (the identifiers are required only in C, not C++). #include<iostream.h> void f(int); int main() { f(10); return 0; } void f(int) { } This works fine..where is 10 going??..how the compiler handles this??

Member Avatar for chrisbliss18
0
151
Member Avatar for nikto

I have a vector of objects of the Virus class. This vector is called 'Viruses.' I have a deque of objects of the Host class. Each Host class object has a deque of pointers to Virus objects, i.e., deque< Virus * > currentInfections Each Host object is randomly infected with …

Member Avatar for nikto
0
157
Member Avatar for mysterio

[B]1. User will enter the ISBN, The system will trace the title and price of the book automatically. The system should check whether the book is in the stock or not. If it is not, please let the user to enter again. 2. Allow a customer to buy more than …

Member Avatar for Stoned_coder
0
154
Member Avatar for MillStrike

I'm kinda new to c++ and can only do very simple applications. Could someone explain why this code works: [code] #include <iostream> using namespace std; int main() { bool inword = 0; unsigned int numwords = 0; char *str = "this is a test string for my project"; char letter; …

Member Avatar for Drowzee
0
168
Member Avatar for sifuedition

What is wrong with this: [code] for(int b = 0;b < c.length();b++) { temp[b] << S.Pop(); // or temp[b] = S.Pop(); } [/code] to have a string made up of the contents of the stack? When I do this and cout << temp, temp is blank. This iterates through the …

Member Avatar for sifuedition
0
87
Member Avatar for vjw757

im about to sign up for some college classes.. one is either going to be java or c++ for beginner. I dont know anything about these languages. Can you guys help me choose?

Member Avatar for chrisbliss18
0
431
Member Avatar for sifuedition

What is happening here? [code] void palindromemgr(ifstream& in, ofstream& out, Stack& S) { string c; //candidate while (true) { cout << "entering first loop" << endl; //debugging line if (in.eof()) break; in >> c; cout << "this is the value in c :" << c << endl; //debugging line for …

Member Avatar for sifuedition
0
149
Member Avatar for Tündi

Hi all! I have a notebook (w/ win2000), my brother has a PC (w/ win xp). The two comp's are connected to the Net (cable modem connection) via a broadband router. The problem is the following: my brother uses DC++ quite often but this is only possible if his PC …

Member Avatar for chrisbliss18
0
133

The End.