49,761 Topics

Member Avatar for
Member Avatar for Alxprog

The problem is that i can't manage to compile the simplest (int main(){}) boost asio program with Code Blocks. I'm using Windows 7. Googling gave me some controversial suggestions: 1) to add -lwsock32 key - Done(Compiler settings->Other options-> -lwsock32) 2) to link with ws2_32.dll and wsock32.dll - Done (Linker settings->paths …

Member Avatar for Alxprog
0
673
Member Avatar for phexee

Okay guys, I have been working on this project for about 2days now and it appears i can't do it as i keep getting errors when i try tp compile the program. Please can anyone help? Sunshine.com is an online children clothing store exclusively for baby and toddler. The store …

Member Avatar for Moschops
0
129
Member Avatar for TObannion

So here is my WORKING code. My problem lies in the output when I enter "0" or "00" for the hour in 12 midnight. No matter what it still outputs a 0 for midnight. (I want it to convert it to standard time.) I know it is something easy that …

Member Avatar for TObannion
0
234
Member Avatar for LATCH808

so im trying to find the min, max, range, mean, median, and mode. The max number is right but the min isnt. Once that is corrected, i can get range and mean easily. Also, i have no idea how to get mode and median. Im guessing the values in the …

Member Avatar for LATCH808
0
164
Member Avatar for latrodectuss.imvu

How can I delete the old entries from the .txt file and replace them with the new ones? Like : I have a text file that has "123" in it, when I try to change the txt file it just adds the new text, I add "abc" to it and …

Member Avatar for latrodectuss.imvu
0
362
Member Avatar for latrodectuss.imvu

Hello, I made a program that finds all the words in my .txt file and shows them to the screen, but now I want to make it so that I can pick a word from the .txt file and replace it with something else. For example : teksts.txt has the …

Member Avatar for Moschops
0
10K
Member Avatar for robbia.gulnar

Write a program that lets the user to enter datain a 4 X 3 matrix of integers, and then determine and return the largest element exist in the desired row.The program calls the following functions, which you have to implement: getData – accept a matrix with its size and fill …

Member Avatar for iamthwee
0
109
Member Avatar for abdelfetah.laouzai

Hi, I want to know what is the best way to represent a graph in C ++ (the best method) I note that I want to program two algorithms (in the field of traffic assignment and balance of users in the network) that deals with large scale networks (+ 1000 …

Member Avatar for mike_2000_17
0
117
Member Avatar for faridoon.jan.7

write a program that asks user for five lowercase letters,one at a time and prints their uppercase equilents(using for loop).it uses ASCII table to ensure that user enter lowercase letter(these are the letters whose ASSCII numbers range from 97 to 122).if user do not type a lowercase letter,the program ignores …

Member Avatar for Builder_1
0
118
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
71
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
282
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
74
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
78
Member Avatar for SurabhiMeeooww
Member Avatar for iamthwee
0
187
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
278
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
212
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
292
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
281
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
179
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
377
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
64
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
278
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

The End.