No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey Hi..to everybody..I am new to this C++. My problem is that I want the input and output to be taken from windows interface not from the command line. A window should open and it should ask the question to proceed and the output should appear there.Take for example: it … |
|
hey please can anybody guide me how we can take input from the command prompt as we do in C++ and Java. I can take input using .dat files but I want the user to give input in the command prompt. I will be very thankful. |
|
#include "stdafx.h" #include <iostream> #include <ilsolver/ilosolverint.h> ILOSTLBEGIN using namespace std; const char* Suppliers[] = {"Bonn", "Bordeaux", "London", "Paris", "Rome"}; int main(int argc, char** argv){ IloEnv env; try { IloModel model(env); IloInt i, j; const char* fileName; if ( argc != 2 ) { env.warning() << "usage: " << argv[0] << … |