48,986 Topics

Member Avatar for
Member Avatar for Dasun_1
Member Avatar for Dasun_1
Member Avatar for StuXYZ
0
176
Member Avatar for Noxes

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 …

Member Avatar for ChampRocks
0
2K
Member Avatar for trushenion12
Member Avatar for Lucaci Andrew
0
110
Member Avatar for Dasun_1

how to find general equation of intersection of two planes?

-1
88
Member Avatar for Dasun_1
Member Avatar for guest7

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 …

Member Avatar for Dasun_1
0
28K
Member Avatar for anumash

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: …

Member Avatar for tinstaafl
0
274
Member Avatar for New Jack

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 …

Member Avatar for Moschops
0
192
Member Avatar for Daniel_46

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 …

0
253
Member Avatar for Gudger

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

Member Avatar for New Jack
0
280
Member Avatar for ladynjb22

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 …

Member Avatar for Neha_15
0
1K
Member Avatar for Farhan_4

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 …

Member Avatar for mellertson
0
19K
Member Avatar for iPoor

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!

Member Avatar for iPoor
0
341
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
1K
Member Avatar for you207

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 …

Member Avatar for David W
0
556
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
180
Member Avatar for Kashif_3

**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**

Member Avatar for rproffitt
0
766
Member Avatar for vikingGamer

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. …

Member Avatar for Nutster
0
870
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
231
Member Avatar for lewashby

[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 …

Member Avatar for ipswitch
0
289
Member Avatar for cambalinho

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, …

Member Avatar for ipswitch
0
268
Member Avatar for Mariana_1

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 …

Member Avatar for ipswitch
0
374
Member Avatar for cambalinho

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 …

Member Avatar for ipswitch
0
79
Member Avatar for cambalinho

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 | …

Member Avatar for ipswitch
0
149
Member Avatar for tgreiner

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 << …

Member Avatar for ipswitch
0
1K
Member Avatar for hninmaung.02

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++ …

Member Avatar for ipswitch
0
317
Member Avatar for ddanbe

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] = …

Member Avatar for ipswitch
0
435
Member Avatar for Mahnoor_1

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 …

Member Avatar for ipswitch
0
368
Member Avatar for Eng-Mohammed

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 …

Member Avatar for David W
-1
122

The End.