48,986 Topics
| |
| |
I am currently using Dev C++ program for the program I write in. I was wondering if there are any free download programs out there that are a text editor? I mean by giving it a black background, certain key words are highlighted to different colors? I know there is … | |
Hi! guys....please help me iwant to learn c++ program..help me there guys | |
| |
Hi, I wish to compare partial bits of two one dimensional vectors. I know how to compare the two vectors completely. [ICODE]int main () { std::vector<int> vector1; std::vector<int> vector2; int out; vector1.push_back(100); vector2.push_back(101); vector1 == vector2 ? out = 0 : out = 1; printf("out = %d \n", out); return … | |
I get the fact that arrays are NOT the same as pointers but when an array is used as an rvalue it is implicitly converted to a pointer. I used the above to write a program to store a 1-D array's address in a pointer variable. Below is my code: … | |
My program is to solve the simple problem in the Link[http://codeforces.com/problemset/problem/143/A] #include <stdio.h> #include <cstring> #include <math.h> #include<set> #include<iostream> #include<algorithm> #define MAXN 25 #define INF 100000000 using namespace std; struct _point { int L;int r; bool operator<(const _point &a)const{ return (this->L<a.L); } }; set<_point> up,down; int r1,r2,c1,c2,d1,d2; void solve(){ _point … | |
| I'm trying to compile an old project in Borland C++ Builder 4. I have a working exe and the source files for that, therefore someone must have managed to compile it earlier. However, when I open the project, check if the project has all the necessary files in the resources … |
can someone help me with this? "PROGRAM TO DISPLAY FACTORS OF A NUMBER" Use A1,A2,A3..as variable. Sample output Enter apositive integer: 60 Factors of 60 are: 1 2 3 4 5 6 12 15 20 30 60 my teacher say, that we should use stdio.h kg conio.h | |
I would like to know if any one know what are the steps of setting up code for CPU Scheduling. I must develop a simulation program for CPU scheduling. -First I have to use FCFS(first come first serve) algorithm that will read the first number that me or anybody put … | |
Hello, I have task to read the CSV file using C++ , the CSV file contains 10 rows x 3 colums float data and I want to read it and apply some mathematic and then the ouput should be stored in a new matrix. The thing is If can read … | |
Hi Guys, I wanna know how to change a label's text thats in a different form when the user presses a button in the mainform, I have heard about the Signals and Slots thing but not experienced enough to understand that, Please Help Me! | |
Hi, I am looking into how programs like tcpview manage to know how many bytes are sent and received by an individual process. I notice that the task manager in windows 10 also has this information in the form of Mb/s for individual application. In my initial search I seen … | |
Hi! I am writing my own string splitter and i'm stuck. When I'm trying to split the same string the second time im getting only the first word. Im using Visual Studio 2013. "Name|Phone Number|Account Number|Price|Tariff" Output is : Name Phone Number Account Number Price Tariff Name and my desired … | |
i did a class for tell me what child controls the form have. and another class for tell me the last child control position(more big top and left) inclued the bottom\right. ok. i have the most big X(the last control plus it's width) and: RECT rtcParent; GetClientRect(ActivatedForm,&rtcParent); heres how i'm … | |
**I want a C++ program that when build up in TURBO C++ then it will produce an output, which shows file system on my computer being used. I am beginner and dont know how to write this program. please help me. Thanks** | |
| I'm learning with a book and one of the excercises is to have the computer guess a number of which you think. My problem is that I need to keep altering the range which works for a couple tries then it seemingly forgets the range and goes on its own. … |
Hi Dw. I have a question of how can one detect a program attempting execute/run and also most importantly how to allow/deny programs to execute/run. I'm sure we all have came across with UAC where it ask you to allow or deny that program from running, normally this for elevating … | |
[Linux] When using gcc and or g++ is there a way I can have two output files, one with and one without debugging symbols in one gcc/++ command? I don't want to have to write `g++ --Wall program.cpp -o program`, then have to immediately run `g++ --Wall -g program.cpp -o … | |
i know get the windows taskbar HWND: HWND GetDesktopToolBar() { return FindWindow("Shell_Traywnd", ""); } now i can do: 1 - add controls on left side(close to Start Button)... but the click messages isn't working. maybe because use the form messages procedure. can anyone correct me?; 2 - enable\visible it. but, … | |
Hi ! I am trying to do a game for children to test their attention. So I have two images and they have to find out the differences between the images. How can I open the image on c++? I also have a specie of questionair to see how many … | |
i'm changind the standard messagebox for add more options. using the hook procedure, i can center to it's parent and the text too. and i added a checkbox(without a window procedure). my question: how can i get the checkbox state? i use SetWindowsHookEx() with WH_CBT flag. can i use with … | |
heres my function for convert to client using RECT: void ScreenToClient(HWND WindowDestination, RECT *WindowRectangle) { POINT a={WindowRectangle->right, WindowRectangle->bottom}; WindowRectangle->left=0; WindowRectangle->top=0; ::ScreenToClient(WindowDestination,&a); WindowRectangle->right=a.x; WindowRectangle->bottom=a.y; } maybe have some errors too :( void Center() { RECT frm,frmparent; GetWindowRect(GetParent(hwnd), &frmparent); ScreenToClient(GetParent(hwnd),&frmparent); GetWindowRect(hwnd, &frm); ScreenToClient(hwnd,&frm); LONG x=frmparent.right/2 - (frm.right-frm.left)/2; LONG y=100; SetWindowPos(hwnd,0,x,y,0,0, SWP_NOSIZE | … | |
I am trying to calculate the angle between two vectors. Here is my relevant code: cout << "\n\nPoint1 "; Point1.dump(); cout << "Point2 "; Point2.dump(); cout << "\nanswer: " << Point1.dot(Point2) << endl; cout << "\nacos: " << acos(-1)<< endl; cout << "Problem: " << acos(Point1.dot(Point2)) << endl; cout << … | |
I am a computer hardware technician. And I want to create some programs to use in job. I think it would be more efficient in time. I can use C++ programming language but not perfectly. So I need some helps from you. I want to write some programs with C++ … | |
I recently came accross this code: Mat3D R_z(double RotAngle) { const double S = sin (RotAngle); const double C = cos (RotAngle); Mat3D U; U.m_Mat[0][0] = +C; U.m_Mat[0][1] = +S; U.m_Mat[0][2] = 0.0; U.m_Mat[1][0] = -S; U.m_Mat[1][1] = +C; U.m_Mat[1][2] = 0.0; U.m_Mat[2][0] = 0.0; U.m_Mat[2][1] = 0.0; U.m_Mat[2][2] = … | |
I'm working on exception handling. Here is my code, I need some help.. Requirements: => If the user push a value to stack when stack is full,it must throw an exception of type "cInvalidPush". => If the user pop a value from stack when stack is empty , it must … | |
Write a C++ program to help a cashier person when returning change to the customer. Your program should read two real numbers: the amount of required money and the amount of paid money. The program outputs the change that should be returned to the customer. Your program should display appropriate … |
The End.