C++ Definition and 803 Threads
-
Comp Sci Fixing C++ Card Class Errors in Visual C++ 6
Hi. I am working on an assignment writing the implementation for a class of playing cards. http://www.pic.ucla.edu/~nathan/cgi-bin/moin.cgi/la1#head-111d7fc9df65f327018fa94234ab0b23c0857e98 Here is the header file that we were provided. //filename card.h #ifndef CARD_H #define CARD_H...- Math Is Hard
- Thread
- C++ Class Errors
- Replies: 28
- Forum: Engineering and Comp Sci Homework Help
-
P
C/C++ C++ Programming Quiz | Challenge Your Skills with Our Thread-based Quiz
Let me start a Quiz based on c++ programming in this thread. You are requested to give the right answer in quotes; RULE: No special rules are there.Anyway, >>The person who tells the right answer must post the next question,No one must post Q's in between. The person who answers must post a...- powergirl
- Thread
- C++ Quiz
- Replies: 19
- Forum: Programming and Computer Science
-
L
Comp Sci Solving C++ Leap Year Program: An Overview
Homework Statement I just started my C++ courses and here is my question. Homework Equations The Attempt at a Solution //This program states whether a given year is a leap year or a non-leap year. #include <iostream.h> #include <conio.h> void main () { int year...- lkh1986
- Thread
- C++ Program Year
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
Comp Sci Troubleshooting a Test Program in Visual C++ 6
I wrote a little test program to try to figure out some problems I am having in another program I'm working on. # include <iostream> # include <string> using namespace std; void ahoy(string nameEntered) { cout << "Ahoy, " << nameEntered << "!" << endl; } int main() { string...- Math Is Hard
- Thread
- C++ Program Test Troubleshooting Visual
- Replies: 12
- Forum: Engineering and Comp Sci Homework Help
-
P
C/C++ Gaming I would like to have some Gamescoded in C++
Gaming! I would like to have some Games..coded in C++ I would like to have some Games..coded in C++... If someone have those..please post it here for me...please...- powergirl
- Thread
- C++
- Replies: 2
- Forum: Programming and Computer Science
-
H
C/C++ Would you mind if you give me code for gauss elimination by C++
H e l p m e I want code for gauss elimination by C++ for solving my homework- Hussein Abd
- Thread
- C++ Code Elimination Gauss Mind
- Replies: 2
- Forum: Programming and Computer Science
-
H
Comp Sci I want code (program) to solve Gaussian Elemination by C++
Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please Help me and I will really appreciate your time and effort in helping me in my assignment. Thanks.- Hussein Abd
- Thread
- C++ Code Gaussian Program
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
H
C/C++ Help me (Gaussian Elemination by C++ )
Help me please (Gaussian Elemination by C++ ) Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please very important- Hussein Abd
- Thread
- C++
- Replies: 1
- Forum: Programming and Computer Science
-
P
C/C++ Hiiii,I want forums about c++ language. I am studying this language
Hiiii, I want forums about c++ language. I am studying this language and I want increment my information about it.- Petar
- Thread
- C++ Language
- Replies: 4
- Forum: Programming and Computer Science
-
H
C/C++ Solving Gaussian Elimination with C++
Enter Here!? Hi, can anyone help me ? I want code (program) to solve Gaussian Elemination by C++ . Please :cry: :cry: very important:cry:- Hussein Abd
- Thread
- C++ Elimination Gaussian Gaussian elimination
- Replies: 1
- Forum: Programming and Computer Science
-
C
C/C++ Improving Projectile Motion Graphing in C++
Hi, I've a basic knowledge of c++, but I've never learned graphing. What little I know, I've picked up myself. I am trying to graph the motion of a projectile launched with a given speed and at a given angle, but the graph doesn't complete. Also, its very spaced out. I know its a parabola so I...- chaoseverlasting
- Thread
- C++ Graphing
- Replies: 15
- Forum: Programming and Computer Science
-
L
C/C++ C++ Compiler Error in Cygwin: What Is It?
I'm trying to learn C++ and am using Cygwin. When I try to compile my program I get the message /cygdrive/c/DOCUME~1/Stoffe/LOKALA~1/Temp/ccQt0yU6.o:driver.cpp:(.text+0x9d6): undefined reference to `Person::~Person()´ What is this kind of error?- Logarythmic
- Thread
- C++ Compiler Error
- Replies: 4
- Forum: Programming and Computer Science
-
T
C/C++ Is it POSSIBLE to integrate C++ with WITec Project 1.88? call for help~ haha
Is it POSSIBLE to integrate C++ with WITec Project 1.88? urgent call for help~ haha hi everyone, currently i am doing a project in which i have to extract date MANUALLY from the solfware. It will be VERY tiring because the number of data I have to extract is more than 1000 times! Moreover, I...- Twukwuw
- Thread
- C++ Integrate Project
- Replies: 9
- Forum: Programming and Computer Science
-
C
C/C++ Free UML-Based C++ IDE for Code Generation
Hi, Does anyone know of any free IDE that can generate C++ code from "drawing" in UML?- chingkui
- Thread
- C++ Code Generation
- Replies: 3
- Forum: Programming and Computer Science
-
C
C/C++ Visit the following for c++ programs
http://cprogramming.freehosting.net/- chandubaba
- Thread
- C++ Programs
- Replies: 7
- Forum: Programming and Computer Science
-
C
C/C++ How can I store and retrieve user input in a C++ program?
I've been trying for days to get my boyfriend's C++ program to work, and I am almost ready to concede defeat, but I have frequented this site in the past as a lurker, actually learning a lot of what I know from the tutorials (thanks!). Now, I have a problem I just can't seem to solve. The...- cworrier
- Thread
- C++ Program
- Replies: 5
- Forum: Programming and Computer Science
-
T
C/C++ Why Am I Getting Errors in My C++ Binary Tree Implementation?
I'm trying to write an address book that is based on a binary tree. I'm devloping in Visual C++ (I blew up my Ubuntu with the new dist), starting with the basics: #ifndef binarySearchTree_h #define binarySearchTree_h #include <string> #include <iostream> using namespace std...- Trista
- Thread
- Binary C++ Trees
- Replies: 3
- Forum: Programming and Computer Science
-
I
Comp Sci Create a New Account | Online Banking System | C++ Program
C++ program..Help! Well i am working on an online banking system.Here is my code(not so ood but its a start) #include <iostream> #include <string> using namespace std; void header() { cout<<"\t\t\tWELCOME TO ONLINE BANKING SYSTEM"<<endl; cout<<endl; }; int getacctno(); int...- Isma
- Thread
- C++
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
C
C/C++ C++ conversion of integers into strings, how
how to convert an input of integer(more than 1 character) type into output which is in string in c++- chandubaba
- Thread
- C++ Integers Strings
- Replies: 1
- Forum: Programming and Computer Science
-
S
C/C++ How to Calculate Factorial and Apply Stirling's Approximation in C++?
I need to write a program that prompts me to enter a positive integer N, after doing so it calculates the factorial of that integer and prints it. I am able to do this with the following code. #include <iostream> using namespace std; int main() { double I, N, Factorial = 1; // Do not...- stevenviney
- Thread
- C++ Conditions Program
- Replies: 1
- Forum: Programming and Computer Science
-
P
C/C++ What Do These C++ Declarations Mean?
Hey guys, I need a little more help here with this C++ stuff. Can anyone give me some help on how to give the meaning of these declarations: 1) const int a; 2) int const a; 3) const int *a; 4) int *const a; 5) int const * a const; Any help would be appreciated as i am new to c++ and...- peejake
- Thread
- C++
- Replies: 1
- Forum: Programming and Computer Science
-
F
C/C++ Setting Precision in C++: Floor Rounding to 2 Decimals
Hey.. I'm having trouble achieving this in C++... I'm trying to do an opperation but keeping only 2 decimals, and floor rounding. ((3.52 * 4.32)/3.26) + 2.34 So I have 3.52 * 4.32 = 15.2064, but then I just round to 15.20 then 15.20/3.26 = 4.662576687116, but then I just round to...- FrostScYthe
- Thread
- C++ Precision
- Replies: 5
- Forum: Programming and Computer Science
-
I
C/C++ Opening a bit map in Visual C++
Could someone recommend a way to open and edit a bitmap file in Visual C++?- interested_learner
- Thread
- Bit C++ Map Visual
- Replies: 5
- Forum: Programming and Computer Science
-
M
C/C++ C++ and solving quadratic Equations
Today, I tried to translate the very basic "solve quadratic equations" program I made a while back in Python to C++. [SIZE="1"] #Solving quadratic equations import math print print "Please enter information in accordance with ax^2 + bx + c = 0" a =...- Mattara
- Thread
- C++ Quadratic Quadratic equations
- Replies: 5
- Forum: Programming and Computer Science
-
C/C++ When to Use Structs Instead of Classes in C++?
I was trying to understand how structs differ from classes in c++ and I came across this: http://carcino.gen.nz/tech/cpp/struct_vs_class.php I was wondering.. when would you choose to use a struct in c++ rather than a class?- Math Is Hard
- Thread
- C++ Classes
- Replies: 23
- Forum: Programming and Computer Science
-
C
C/C++ Solve Endless Loop C++ File Problem | Banac.dat
Hi, I am trying to display all the records stored in a file(Banac.dat) but the program keeps on returning the first record over and over again in an endless loop ( i think its endless). If anyone could help me, it would be appreciated. For the sake of simplicity, I've only included the...- chaoseverlasting
- Thread
- C++ File
- Replies: 6
- Forum: Programming and Computer Science
-
M
C/C++ Can I Use Borland C++ and Visual C++ for Different Types of Programming?
I need to know if there is a difference between programming in borland c++ and microsoft visual c++.net. Are the two languages compatable or did microsoft introduce some new syntax? Can I learn just the borland version without worrying about using the visual version later? Which versions are...- mtanti
- Thread
- C++ Visual
- Replies: 3
- Forum: Programming and Computer Science
-
P
C/C++ C++ Programming Help for Beginners: Questions from Dan Hawhorn's Book
hey people, Im a beginner when it comes to programming and i have just stated C++..Im finding it a bit hard and boring but its only the beginning, so i think that it would get better as i move on...Anyway i need some help with these questions... BTW for your info: I am using a book called...- peejake
- Thread
- C++
- Replies: 7
- Forum: Programming and Computer Science
-
S
Comp Sci C++ Pointers: Get Help Understanding Basics & Memory Savings
Can anyone help me understand the basic use of pointers. I am aware of pointers,yet I feel that a program can be made more easier without using a pointer. My basic dout is that can pointers be used to save memory by dynamic declaration of variables. I thought over it but found that using...- scorpion
- Thread
- C++ Doubt Pointers
- Replies: 13
- Forum: Engineering and Comp Sci Homework Help
-
S
C/C++ How to Create a Four-Digit Student Identification Number in C++?
how can i make a student identification number to be a four digit integer and when you type 0 for the identification number it will terminates. thanks- spinner
- Thread
- C++
- Replies: 13
- Forum: Programming and Computer Science
-
C/C++ Cin vs Scanf - C++ Input Comparison
cin or scanf? i use cin from iostream.h in c++ i also knowabout scanf in stdio.h but which is better? What is the difference betweeen the both? -benny- benzun_1999
- Thread
- C++ Comparison Input
- Replies: 9
- Forum: Programming and Computer Science
-
W
C/C++ Microsoft Visual C++ / Tutorial
Anybody have a link to a good site that'll teach me some of the MS C++, and is it the same as C++?- wScott
- Thread
- C++ Tutorial Visual
- Replies: 1
- Forum: Programming and Computer Science
-
D
C/C++ Top 5 C++ Projects for 12th Grade Students: Billing & Management Ideas
please help me !c++ projects hi guys, I am a 12th student. i am in a great trouble ! My teacher wants the name of my computer project tomorrow! pls give me some ideas for it. graphics are not allowed& it should have classes etc. teacher recommended some billing&management projects pls...- devika
- Thread
- C++ Projects
- Replies: 1
- Forum: Programming and Computer Science
-
K
C/C++ How to debug a c or c++ program?
I learn to code in the c language. i am learning the workings of C++, and Java. I already have a c/c++ compiler in my computer. My problem is: How do i "check for errors"/debug a c or java program? Are there any good tutorial online?- kant
- Thread
- C++ Program
- Replies: 8
- Forum: Programming and Computer Science
-
I
C/C++ Implementing Gaussian Elimination in C++ with Scaled Partial Pivoting
i m having serious problem regarding this program...i m not asking u 2 make it for me...just help me with logic because i can't get gist of it...pleasezz i need help...i ve working on it like 3 hours nd its like my mind has gone blank:(- Isma
- Thread
- C++ Elimination
- Replies: 3
- Forum: Programming and Computer Science
-
I
C/C++ Help with c++ program for series
urgent help with c++ program for series i want to form program 2 sum this pie=4[1-1/3 +1/5 -1/7+... 1/n] { int n,z,i; float x,y,pie; cin>>n; i=0; while (i<=n) { y=1/((2*i)+1); i=i+2; } for(z=1;z<=n;z=z+2) { x=1/((2*z)+1); } pie=4*(y-x); cout<<pie; }...- Isma
- Thread
- C++ Program Series
- Replies: 16
- Forum: Programming and Computer Science
-
C/C++ Help with C++ for Loops & Patterns
I need some help. So far I have some for loops that print the following patters: * ** *** **** ***** ****** ******* ******** ********* ********** and ********** ********* ******** ******* ****** ***** **** *** ** * Here is the code: for(int rows=1;rows<=10;rows++) { for(int...- ranger
- Thread
- C++ For loops Loops
- Replies: 3
- Forum: Programming and Computer Science
-
I
Comp Sci Mastering Palindromes: Understanding C++ Programming with Goto and For Loops
i've just started studying programming...nd i can't understand how to write these programs: 1:to recognize palindromes using goto condition 2:to recognize palindromes using for loop 3:to convert binary into decimal nd decimal into binary i m seriously lost nd can't understand for...- Isma
- Thread
- C++ Program
- Replies: 8
- Forum: Engineering and Comp Sci Homework Help
-
J
C/C++ How to Create a Pyramid in C++?
Hello, I am trying to print an equilateral triangle, made up of * (stars), of height 8. Can someone please give me some hint. I am not getting the desired output. Thank you. Here is my code. #include<iostream.h> #include<iomanip.h> void main() { int n=8; for (int row=1...- jacy
- Thread
- C++ Pyramid
- Replies: 7
- Forum: Programming and Computer Science
-
U
C/C++ How can I convert C code to C++ in Visual Studio 2003 .NET?
I tried to convert from C++ to visual C++ .NET but got many errors. (I haven't used C in years) If anyone can do this for me, I'd really appreciate it. Please convert the following to visual C++ .NET code (to run on microsoft visual studio 2003 .NET)...- UNIQNESS
- Thread
- C++
- Replies: 5
- Forum: Programming and Computer Science
-
D
C/C++ C++ Simple File I/O: Tips & Solutions
I'm trying to come up with a C++ program that reads input from a text file. Each line of this text file has a different variable. I have different data types (int, string, char). I'm having difficulty to read strings with spaces and read char's. The rest seems to work fine. If possible, I'd like...- DivGradCurl
- Thread
- C++ File
- Replies: 12
- Forum: Programming and Computer Science
-
C/C++ Separate Digits in C++: How to Place Spaces Between Numbers for Easier Output
If I take a six digit number and store it in one variable, how can I place spaces between each digit at the output. This would be so much easier if each digit were stored in separate variables. --thanks- ranger
- Thread
- C++
- Replies: 7
- Forum: Programming and Computer Science
-
N
C/C++ Set-Variable Style Functions in C++
Just curious if there was any difference between the following two set-variable style functions for member variables interms of effiecieny CType& Member(void) {return _member; } //Used in David Eberly's Code void Member(CType const& tp) {_member=tp); } Is there an actual difference? Also...- neurocomp2003
- Thread
- C++ Functions
- Replies: 3
- Forum: Programming and Computer Science
-
S
C/C++ Visual C++ or C# is better to learn ?
For the sake of getting job in ICT field, what shall i focus on ? C++ or C# ? :confused:- Sprinter
- Thread
- C++ Visual
- Replies: 7
- Forum: Programming and Computer Science
-
Z
Quick C++ Problem - Combining Functions for Array Output
I'm just finishing off my C++ project and I decided when looking at two functions that they would be far more efficent as one function (because they are always used together and as it was it repeats the same code twice). Now I wanted my output as an array so I could called on the two needed...- Zurtex
- Thread
- C++
- Replies: 14
- Forum: Calculus and Beyond Homework Help
-
S
C/C++ Using Complex C++ Class Header <complex>
Hi, Has anyone here used the complex C++ class before Header <complex>? I am trying to do something VERY straightforward but there doesn't seem to be any way to do it! Basically, I define a complex, and then want to re-asign its real and imaginary parts: complex<double> A(1,1); //...- sam2
- Thread
- C++ Class Complex
- Replies: 3
- Forum: Programming and Computer Science
-
F
Comp Sci Converting Temperature Units with C++
I know I am not a moron but this C++ is killing me, I have to write a program using functions to convert temp between c, f, k I am hung up // Mod4project2tempconvert.cpp : Defines the entry point for the console application. #include <iostream> using namespace std; double ftemp (double...- frogdogbb
- Thread
- C++ Temperature Units
- Replies: 6
- Forum: Engineering and Comp Sci Homework Help
-
F
C/C++ Need Help With C++ Void Function: Find Max of 3 Ints (VS.NET)
I have to answer a homework problem due today that I am not sure how to do the problem reads. "Write a program that calls a void type function to find the maximum of three given integer numbers" We use visual studio.net, any help would be appreciated and I would like to be able to compile it...- frogdogbb
- Thread
- C++ Function
- Replies: 3
- Forum: Programming and Computer Science
-
Z
Troubleshooting C++ Program: Invalid Conversion Error
Just been introduced to the world of C++ as I'm taking a course on it in my maths degree. We are asked to write a simple program that takes in 3 numbers, sorts them in terms of order and then outputs them. Not going to type my full program as that would probably be a waste of your time but...- Zurtex
- Thread
- C++
- Replies: 3
- Forum: Introductory Physics Homework Help
-
E
Comp Sci C++ Code: Searching for a specific string
umm, anyone who could help me write a code wherein, given an input file, it searches for a word inputed by the user, then outputs the result (how many times it appeared in the input file) in an output file. This program also uses 2 command line arguments. The first argument is the word to search...- ermines
- Thread
- C++ Code Specific String
- Replies: 8
- Forum: Engineering and Comp Sci Homework Help