49,755 Topics
![]() | |
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 … | |
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 … ![]() | |
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. | |
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 … | |
heya anyone can help me with the pascal triangle program in c++?? ![]() | |
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() … | |
#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(); } | |
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 … | |
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); … | |
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 … | |
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; … | |
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 | |
![]() | 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, … ![]() |
/*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; … | |
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? | |
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 … | |
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 … | |
A.A,,, plz tell what is logic to change lower case words into upper case words | |
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: … | |
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.. | |
#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 … | |
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, … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
i need ideas for my mcs 1st semester project in c coding |
The End.