49,766 Topics

Member Avatar for
Member Avatar for rufusOT

heya folks. i'm working on an chunk of code here and i don't really understand what i am doing wrong in trying to increment and decrement a fraction. if you could provide some insight i would appreciate it. thanks. [CODE]#include <iostream.h> #include "fraction.h" void main( ) { Positive_Fraction a,b,c; int …

Member Avatar for prog-bman
0
396
Member Avatar for mina1984

hi , i had a problem with one of my programs im pretty sure everything is correct but when i run it it only asks me to input the last name but it would just print out the rest and not ask for any other input why is that? can …

Member Avatar for mina1984
0
128
Member Avatar for bops

hi guys and girls if any :P, im trying to find out how to determine the root directory of a computer, in c++ as part of a larger program im working on, im sure i heard before that there is some api call that can be used to do this, …

Member Avatar for bops
0
147
Member Avatar for Acidburn

[php] hangman::hangman( char * surname, int size) { name = new char[size]; encryption = new char[size]; strcpy(name,surname); for (int i = 0 ;i <size; i++) { encryption[i]='*'; } lives = 5; found = 0; } [/php] encryption seems to be heading over its borders!! the size = 45 ; I've …

Member Avatar for Acidburn
0
160
Member Avatar for Decoder

How do you time execution time?. I am writing a program in C++ to calculate Pi with a desired degree of precision/digits after the decimal point, and I have to calculate the time it takes to calculate for each desired precision. Can anyone help me? :o

Member Avatar for Drowzee
0
141
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
84
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
500
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
110
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
468
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
147
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
89
Member Avatar for Coach_Nate
Member Avatar for SpS
0
115
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
177
Member Avatar for SpS
Member Avatar for CrazyDieter
0
120
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
165
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
192
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
132
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
83
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
182
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
229
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
155
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
394
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
221
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
198
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
157
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
159
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
157

The End.