49,761 Topics

Member Avatar for
Member Avatar for vegaseat

Python has some powerful functions, like the math expression evaluator eval(). You can embed this function and others in your Development C++ code. All you need to do, is to download and install the free Python Development Pak and feed the Python code in the form of a string to …

Member Avatar for Shantha.D
1
4K
Member Avatar for nirveshverma
Member Avatar for program900

can any one solve this, i tried no idea A function called “menu” that displays a main menu. This function should return the choice of the user.

Member Avatar for vmanes
-2
97
Member Avatar for Web_Sailor

Hi I was trying to do a type checking in my input file while reading it. I am getting some compile time errors. Compile time error report is :- [CODE]NEW.cpp:26: error: invalid conversion from ‘char*’ to ‘int’ NEW.cpp:26: error: initializing argument 1 of ‘int isdigit(int)’ [/CODE] [CODE] Line 26 is …

Member Avatar for Web_Sailor
0
231
Member Avatar for jeyson

a program that will ask a location and selete the item in that location[code][/code]

-3
60
Member Avatar for Web_Sailor

Hi, I was wondering if there is any way to get the largest size of a multimap key / value. I mean something like this:- if there are 4 values in a multimap:- [CODE] my name is web_sailor [/CODE] Suppose I want to get the maximum size key / value. …

Member Avatar for Web_Sailor
1
1K
Member Avatar for hongfan

Hello! Say I have an array called BBag[3], how would I write a function void remove(int val) that removes an occurence of val in BBag? thanks! Hong

Member Avatar for jeyson
0
522
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
94
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
93
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
141
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
355
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
146
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
121
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
154
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
868
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
151
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
231
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
110
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
506

The End.