49,761 Topics
| |
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 … | |
hi enjoy it and give feedback | |
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. | |
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 … | |
a program that will ask a location and selete the item in that location[code][/code] | |
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. … | |
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 | |
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 … | |
What does "container " refer to when talking about such programming languages like C++? Thank you very much! | |
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> … | |
[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 … | |
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 … | |
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 … | |
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++) { … | |
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 … | |
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 | |
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 … | |
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? | |
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 :"; … | |
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 … | |
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 … | |
How To Find Max Of 3 Numbers Without Using Comparison Operators? | |
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 … | |
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 … | |
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. | |
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, … | |
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 … | |
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. … | |
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 << … | |
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 … |
The End.