49,755 Topics

Member Avatar for
Member Avatar for markdean1989

Guys is there any other solution (other than reinstalling my entire Visual Studio) to this component loading problem that I am having. I have just finished reading my C++ book and I am getting ready to start graphics-based C++ programming when I run into this problem. This is the message …

0
70
Member Avatar for cannon_1

This is the lines used to compile a c++ programme. g++ xp_example2.cpp api/gdxco.cpp ../C/api/gdxcc.c api/optco.cpp ../C/api/optcc.c api/gamsxco.cpp ../C/api/gamsxcc.c -Iapi -I../C/api However, when I use IDE Xcode, I don't know what to change so that I arrive at the exact same thing. For example, How shall I edit my Xcode to …

Member Avatar for iamthwee
0
274
Member Avatar for cannon_1

Due to project limitation, I want to use SCIP/LindoAPI (especially its NLP or MINLP feature) in Xcode C++ environment. However, I did not find a step by step documentation and I am almost a complete noob in all the compiling details... Could anyone help me? Thank you very much.

0
73
Member Avatar for cannon_1

Basically, I failed to trying to implement individual global MINLP solvers (alphaBB, ANTIGONE, BARON, Couenne, LindoAPI, and SCIP) in C++/Xcode/Mac system. On the other hand, I realize that GAMS already integrate a lot of solvers. So I am thinking of using C++/Xcode/Mac system to construct models and let GAMS solve …

0
77
Member Avatar for SurabhiMeeooww
Member Avatar for iamthwee
0
186
Member Avatar for DS9596

So far I have this but I need to use switch statements to make age< certain numbers for each age group. #include <iostream> #include <iomanip> #include <string> using namespace std; const float CHILDREN_MALE=50.00; const float CHILDREN_FEMALE=55.00; const float TEENAGERS_MALE=150.00; const float TEENAGERS_FEMALE=155.00; const float ADULTS_MALE=275.00; const float ADULTS_FEMALE=250.00; int main() …

Member Avatar for StuXYZ
0
277
Member Avatar for tewodros addis

#include<iostream.h> #include<conio.h> #include<string .h> int count=0; class record { private: char name[20] int age; int id; char sex; public: void addrecord(); void display(); int getid(); void editrecor(); viod search(); void delet(); }

Member Avatar for JamesCherrill
0
207
Member Avatar for DS9596

The total bill doesn't add up correctly, don't get where I went wrong? Total bill is way off. #include <iostream> #include<cmath> #include <iomanip> #include <string> using namespace std; const float Small = 1.20; const float Medium = 1.50; const float Large = 1.70; const float less_inches = 3.75; const float …

Member Avatar for DS9596
0
255
Member Avatar for cambalinho

the RegisterHotKey() is limited? everytime that i create a button control the RegisterHotKey() id isn't the same. //on constructor: ++ButtonCount; altmessage=ButtonCount; now the hotkey message: case WM_HOTKEY: { if (wParam==inst->altmessage) { SendMessage(inst->hwnd,WM_COMMAND,BN_CLICKED,lParam); } } break; and now how i regist the hot key: case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; UnregisterHotKey(inst->hwnd,inst->altmessage); …

Member Avatar for cambalinho
0
289
Member Avatar for markdean1989

I wonder why this program does not do any changes to the text file that I am trying to modify. Scenario: My program uses the Fstream header file, I declared infile as IFSTREAM and outfile as OFSTREAM. I simply want to transfer data from infile to outfile. The data is …

Member Avatar for markdean1989
0
355
Member Avatar for DS9596

Not sure why it's not letting me choose the operation I want where I put "Enter an operation symbol..", I'm supposed to use switch statements to compute functions. #include <iostream> #include<cmath> #include <iomanip> #include <string> using namespace std; int main() { int type; int a, b, c, d; char op; …

Member Avatar for DS9596
0
280
Member Avatar for swee.farry

help please! program of sorting!! with following prototype: void selectsort(int inArray[],int size,char order) order (the char variablle) can hold onli 'i' and 'd'.sort array in ascending and descending order .also overload this function for array of characters

Member Avatar for Stuugie
-2
85
Member Avatar for Search_not

I'm having a problem appending `std::wstring` to my Win32 edit. It compiles without errors, but the displayed text is not what was originally in the `std::wstring`. Is there a better way to do what I'm doing(below), or should I use the RichEdit(last resort option). My appendTextToEdit function below is self-explanatory, …

Member Avatar for Search_not
0
174
Member Avatar for Habib_5

/*can you help me with this this is double linked list that helps you to sort integer value in increasing order I hope I will get answer thank you*/ #include<iostream> using namespace std; struct Node int data; Node *next; Node *prev; }*head,*tail; void main() { head = NULL; int n; …

Member Avatar for L7Sqr
0
365
Member Avatar for cambalinho

i'm trying overload the != and == operators, but i'm getting several errors :( bool operator==(const image &other) const { if(other.btBitmap==*this->btBitmap) return true; else return false; } bool operator!=(const image &other) const { return !(*this == other); } what i'm doing wrong?

Member Avatar for cambalinho
0
285
Member Avatar for shafiqkuidad

Write a function int digit (int num, int k) that return kth digit of the positive number num. For example, if num is the integer 12435, then the call digit (num, 0) would returns the digit 5, and the call digit (num, 2) would returns the digit 4. Note that …

Member Avatar for NathanOliver
0
151
Member Avatar for Sune

I have taken an introduction course in C++ programming and I'm now looking for some C++ code example's which I could study before the course final test. I will try to follow the rule: If you would like to be an good authour, read a lot of books by excellent …

Member Avatar for shafiqkuidad
0
372
Member Avatar for Bilal_9

A.A,,, plz tell what is logic to change lower case words into upper case words

Member Avatar for NathanOliver
0
63
Member Avatar for andrew mendonca

I am trying to write this recursive function: void printFactors(int n) For this function, I need to print prime factors in ascending order. e.g. for n = 24 the output would be 2 2 2 3. I cannot use loops and static variables for this function. Here is my solution: …

Member Avatar for tinstaafl
0
215
Member Avatar for parag.bhuyan.75

i am final year student i am doing my project on ns-2.34..i want to intergrate new modules in existing protocl. i have desgined my new module , but i cannot execute it seperately. please help me..

Member Avatar for JasonHippy
0
277
Member Avatar for saharfatima

#include<iostream> #include<conio.h> #include<ctime> #include<cstdlib> #include<string> int score=0; using namespace std; void display(int &score) { switch(score) { case 98:score=28;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 95:score=24;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 92:score=51;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 83:score=19;cout<<"OPPSSSSS......snaked attacked you...now you are at "<<score<<endl;break; case 73:score=1;cout<<"OPPSSSSS......snaked …

Member Avatar for saharfatima
0
175
Member Avatar for nwankpa.daniel.3
Member Avatar for cambalinho

how can i do the control autosize? i think in these way: 1 - get the text rect: RECT textrect; int a=DrawText (test->hDC,inst->strCaption.c_str(),-1,&textrect,DT_CALCRECT); (the a isn't zero) 2 - testing the rectangle with image size: if(textrect.bottom<inst->imgtest.height()) inst->intHeight=inst->imgtest.height(); if(textrect.right<inst->imgtest.width()) inst->intWidth=inst->imgtest.width(); 3 - change the control size: SetWindowPos(inst->hwnd, 0, 0, 0, inst->intWidth, …

Member Avatar for cambalinho
0
198
Member Avatar for msajid.sarwar.7_1
Member Avatar for guru.charan.77377

This is an project title for a c++ project given by my collage, Plz can anyone guide me with some good reference books/journals for data visualization and word image identification using image processing so i can begin my project with some kind of background study. Any help is appreciated

Member Avatar for vieru.dorincristian
0
130
Member Avatar for hamza.muzaffar.96

An ATM allows a customer to withdraw a maximum of $2000 per day. If a customer withdraws more than $700, the service charge is 4% of the amount over $700. If the customer does not have sufficient money in the account, the ATM informs the customer about the insufficient fund …

Member Avatar for ddanbe
-1
187
Member Avatar for mohmedd

Algorithm 1 Distributed Algorithm (at each node Si, i E N) Input: the neighbor set N(Si), the neighboring schedules, the critical location set Pi that Si covers, the importance factor of each location Pi, i E Pi, network lifetime L, battery life Bi, Si is initially unlabeled Output: the state …

Member Avatar for rubberman
-2
176
Member Avatar for TObannion

So here is another assignment I am working on. I can't get to my schools computer lab due to family, job, etc. Here is the assignment: Structs file name: lab2.cpp 1. (3 points) Define a struct, named FullName, that contains the following fields: lastname - a string firstname - a …

Member Avatar for rubberman
0
344
Member Avatar for andrew mendonca

I'm trying to write the function: int sum(int x, int y) For this function, I need to return sum of m and n using only increment, decrement and unary -. m and n can be any integers e.g. if m is 4 and n is -5, the return value would …

Member Avatar for rubberman
0
140
Member Avatar for hurry.barket
Member Avatar for rubberman
0
212

The End.