49,756 Topics

Member Avatar for
Member Avatar for ging-ging

Correct any Error.... This is the code given to us by our teacher... help me add some code... or delete unnecessary code... coz u see when u compile it.... heres the output : [B]Input choice 'b' to break: [/B] It is success, but the real goal here is the AVL …

-1
51
Member Avatar for punchinello

What does "container " refer to when talking about such programming languages like C++? Thank you very much!

Member Avatar for punchinello
-1
60
Member Avatar for ENCHTERP

Hello what would be the best way to return a pair<> via a structure Let me further explain. Below is the type of struct that I want to use: //compass.h struct Compass { pair<int, int> C; pair<int, int> E; pair<int, int> W; pair<int, int> NE; pair<int, int> NW; pair<int, int> …

Member Avatar for ENCHTERP
0
92
Member Avatar for thisisanfield.1

[CODE]430850 First Name Last Name 8 GHZ 1950 YFD 2400 LUO 1950 GXV 350 KKH 1550 IDU 1000 EWT 350 UJU 1100 47760 First Name Last Name 5 ZCW 1850 KQY 1050 EWM 300 MFG 2050 OLW 1200 [/CODE] Here is an example from the input file. The first number …

Member Avatar for Ancient Dragon
0
92
Member Avatar for kustrle

1st question: What is Rich Text Box exactly used for? 2nd question: How to make it have transparent background? I actually composed a window forms application in VC and added Rich Text Box it into it. When I try to change background color (I open color list from Properties and …

Member Avatar for ImMoRtAl-
0
91
Member Avatar for Ponomous

Hey, i am trying to write a program that will evaluate n!/(k!(n-k)!) right now i am just trying to get the basic formula without the factorials to work ( i can just do a function call later and get the actual values) but no luck. all the variables have values …

Member Avatar for Ponomous
0
140
Member Avatar for sparksterz

Ok this is driving me nuts. I'm working in C++ and trying to delete an element from a vector It's going something like this (dirPath is a stack of directories, and dirPtrs the list of what a directory points to) [CODE] for(int i = 0; i < dirPath.top().dirPtrs.capacity(); i++) { …

Member Avatar for sparksterz
0
351
Member Avatar for yuha

I am working on displaying student name, test score, average marks and grade as an output. This is what I have been working on, but still I couldn't manage to display the output.. The input must be get from the user and, which is the student name and the test …

Member Avatar for csurfer
0
145
Member Avatar for carrese04

my teacher told us to "make a program that will print the first 10 consecutive numbers starting from 1 using the while and do" but i don't know how to do, i hope you can help me guys, thanks

Member Avatar for Gaiety
0
120
Member Avatar for calypso&noname

Hi again and thanks for the help! PROBLEM: Only every other number entered by the user is registered by my program, except the last number, which is always registered. [B]How can I get the program to register every line? And what is causing it to skip an input line in …

Member Avatar for drjay1627
1
144
Member Avatar for Jo@n

Hello, I found a dll of gmp at [url]http://www.cs.nyu.edu/exact/core/gmp/[/url] and want to use this in borland C++ builder 6. But it doesn't work. Can anybody help me? How can i use this dll in borland?

Member Avatar for JPerez45
0
218
Member Avatar for Muneeb49

Help me out , This code only print First part till white Space For example if i give Input "Jhon Kane" the it only prints "jhon" kindly help me with some code which print the whole Name[code]#include<iostream.h> #include<stdlib.h> #include<conio.h> main() { char *c; c=new char[20]; cout<<"please Enetr the string :"; …

Member Avatar for mrnutty
0
97
Member Avatar for daviddoria

I have written an integration function (of one variable) [code] double integrate(double (*f)(double), const double a, const double b) [/code] However, now I want to integrate a function of one variable, but the c++ function has an additional parameter: [code] double f(double x, bool flag) { if(flag == true) f …

Member Avatar for mrnutty
0
276
Member Avatar for gottlieb78

Hi Once again a newbie posting the same homework assignment! I´ve searched alot for this problem but I´m probably not good enough in searching because I just can´t figure this out. My main problem now is to insert the airplane layout into the 2D array. I was trying to do …

Member Avatar for ImMoRtAl-
0
855
Member Avatar for rasheed1982
Member Avatar for debasishgang7

hey all.... I already know C++.But now i want to make some GUI based application(like calculator....etc) with C++. I have decided to do that with c++ bcoz i think,application(.exe ) made by c++ is the one one which can be run without any kind of frame work installed in computer.(Example...VB.Net …

Member Avatar for Ancient Dragon
0
150
Member Avatar for RohitSahni

Hi All, I am writing a code in C++ to implement Login screen which will accept user name and password from the user. Now my main concern is to hide that password to be sceen by the user. suppose my password is "Rat420" so at the time of typing anything …

Member Avatar for shashanderson
0
229
Member Avatar for Neeraj Ranjan

Hi,,,,,, Anybody can help me i need library management code in c++ or better say i have to submit as assignment so plz help me.

Member Avatar for csurfer
-3
56
Member Avatar for Baseball400

Hey guys I'm new to C++ and our teacher I guess expects us to know what were doing and we don't so we have to make a program that Input the following: Product Description: String Variable Wholesale Cost: 2 decimal positions Quantity Ordered: whole number Packaged: C for a case, …

Member Avatar for Grn Xtrm
-1
109
Member Avatar for Rugged

So I'm in third year Physics and I'm down to do a project in C++ in a few weeks. I've got a weak background in the subject (mostly limited to simple calculations, can't do images or user interaction appart from cin, much to my dismay >.<) but I'm going to …

1
43
Member Avatar for kushbhatta

dear friends, i am a beginenr in visual c++. for the sake of my project i need to learn visual c++ graphical application part. what actually i require is to make a track (say like eight) to move a object/car. the car should be controlled using the keyboard up-down keys. …

Member Avatar for kushbhatta
-1
106
Member Avatar for PDB1982

I'm trying to pick out whether or not a prime number is given by a user, when they input a number. This is what I have, but it' not working correctly....can anyone suggest anything? [code] #include <iostream> using namespace std; void main() { int n; while (true) { cout << …

Member Avatar for JasonHippy
0
96
Member Avatar for PDB1982

I'm trying to figure out a way to create a program that has a user input a positive integer, and output a statement to the user that if the the number entered is 1 - "Number must be 2 or larger...Please enter another Positive Integer", 2 - "Number is an …

Member Avatar for JasonHippy
0
505
Member Avatar for lsbora
Member Avatar for kustrle

Hello everyone! I have only one question. I want to make a simple graphical installation wizard application which will run or not run few other executables (lets say their names are firefox.exe, msn-installer.exe and skype_installer.exe) You will be able to decide which ones to run with checking or unchecking field …

Member Avatar for kustrle
0
102
Member Avatar for clue.less

I am very naive at programming...n very new to it too..pls helpwith the following problem: #include <iostream> using namespace std; int main() { int side; cout << "Enter a number: "; cin >> side; for (int i = 0; i < side; i++) { int j = 0; while (j …

Member Avatar for Phil++
1
93
Member Avatar for rhukia
Member Avatar for gretty

Hello I have created a simple linked list that allows me to do 3 things; create a linked list, calculate the size of the linked list & print the contents of the linked list. Although my program crashes when I use the functions: - int len(node *L); // return length …

Member Avatar for dkalita
0
90
Member Avatar for pocku

I want to use the string class in my program but I keep getting the following errors: process.cpp:10: error: 'string' has not been declared process.cpp:10: error: prototype for 'Process:: Process(int, int, int)' does not match any in class 'Process' process.h:14: error: candidates are: Process:: Process(const Process&) process.h:16: error: Process:: Process(int, …

Member Avatar for pocku
0
161
Member Avatar for ENCHTERP

Hello I have created a 2d-vector I have no problems filing this vector. But the issue I am having is that I want to extract a specific row of this 2D vector (say the 2nd) and store it as a 1d vector. What would be the best way to do …

Member Avatar for VernonDozier
0
8K

The End.