48,985 Topics

Member Avatar for
Member Avatar for mrismich
Member Avatar for Shizza

i want to make an artificial system in c++ language for a doctor or any judge that will take input from the user and by using rule of inference it will display the result as true or false, can anybody help me to solve this problem

Member Avatar for pritaeas
0
311
Member Avatar for anumash

Consider a base class that is derived by two sub-classes and a third class derives from the above two classes. I make the base class virtual, so as to not make copies of the base class. My question is that do I have to include the base class constructor in …

Member Avatar for NathanOliver
0
171
Member Avatar for DigitalPackrat

I searched a lot but there seems to be no way to have additional color schemes in Dev C++. The existing ones are way too bland. Also, I am no good at colors, yet, it feels as if I don't have the control to choose enough colors in the Editor …

Member Avatar for Gabriel_8
0
4K
Member Avatar for Lutina

Good day people... I have a program...., when I call the function printReceipt I want a new console window to display the receipt, and then when the user presses enter it should take him/her back to the old console window. Just want to learn how to open multiple console windows.... …

Member Avatar for syncster31
0
119
Member Avatar for Ahmed_62

#include <iostream> using namespace std; //Write a recursive algorithm to solve the towers of Hanoi problem. //move disc 1 A to c ACB //move disc 2 A to b ABC //move disc 1 C to b CBA //move disc 3 A to c ACB //move disc 1 B to a …

Member Avatar for Ahmed_62
0
176
Member Avatar for anumash

Hi, I was learning operator overloading and I noticed a very strange thing. I could access the private variable of another object by using the object reference and the . operator. Both the objects belong to the same class and I can alter the value of a private variable of …

Member Avatar for anumash
0
268
Member Avatar for zelrick

Hello C++ Programmers; I would like to ask about running multiple text file; this text file don't have specific name; This one folder (Text Folder) have only text file (no specific counts); if there is other file like .xlsx or .jpeg or .bat or .etc. will be ignored; once I …

Member Avatar for richieking
0
282
Member Avatar for Tài

Chào các anh chị , anh chi có thể giúp em hiện thực đoạn code đệ quy này được không em làm hoài mà vẫn không hiểu -Use recursion with the following prototype: void recursiveTriangle(int N) Hint: you can use extra functions to accomplish this task. They should not contain …

Member Avatar for rubberman
-3
86
Member Avatar for toneranger

Hi, I'm wondering what could cause this type of runtime error: My program basically reads data from different kinds of data files, either a minute data file or a 5 minute data file and then does some analysis. When I run the program on the 1 min data, no problem. …

Member Avatar for David W
0
298
Member Avatar for cambalinho

see my MemoryDc and BitmapDC class's: class MemoryDC { private: HDC memoryDC; public: MemoryDC () { HDC hdc=GetDC(GetDesktopWindow()); memoryDC=CreateCompatibleDC(hdc); ReleaseDC(GetDesktopWindow(),hdc); } operator HDC() const { return memoryDC; } ~MemoryDC () { DeleteDC(memoryDC); } }; class BitmapDC { private: MemoryDC hdcbitmap; HGDIOBJ bitmapold; HBITMAP bitmapcurrent; int intwidth; int intheight; void init(int …

Member Avatar for triumphost
0
649
Member Avatar for ridhzee sidhu

why we use # as preprocessor in c++? why we dont use any other symbol like @,$,%,& etc. as preprocessors?

Member Avatar for ridhzee sidhu
-1
106
Member Avatar for Tim_6

Part 2 Deliverables Present a solution using pseudocode similar to that in part 1 . Identify the logic needed to capture a credit card payment where the user provides their account number, expiration date, and CVV code from the back of the card. Part 2 Deliverables Present a solution using …

Member Avatar for ddanbe
-1
359
Member Avatar for zelrick

Hi everyone; I got no idea how to start this and if it is possible; I have a text file (.txt) that have lot of lines and I want it to transfer it in Excel (.xlsx / CSV) But not all will be transfer in excel, only a specific number …

Member Avatar for zelrick
0
2K
Member Avatar for Mahnoor_1

I know coding in c++ pretty much ..but I want to learn graphics .. I am using DEV-C++ 5.11 .. Can anyone tell me online link to graphics site?

Member Avatar for dilantha.prasanjith.96
0
131
Member Avatar for nashmug

a) Write a loop to print all numbers from 1 to 100, one per line, Write a blank line after every five lines. [10]

Member Avatar for VatooVatoo
0
127
Member Avatar for cambalinho
Member Avatar for Charite

Hi everyone! So I am really new to C++ and am currently taking this computer science class in school. We use Visual Stuio 2013. Tomorrow I have 3 programs due and I have only finished 1 so far. Everything I read in my textbook and what the teacher says confuses …

Member Avatar for Moschops
0
238
Member Avatar for ~s.o.s~

Hello to all programmers out there. Considering the growing request for practice problems by the beginners, we ( Me, Joey, Niek, Aaron..) have decided to start a sticky which will host some common practice problems which would help the beginners in understanding the programming concepts in a better way. (Did …

Member Avatar for gyno
22
7K
Member Avatar for anumash

I am defining a class outside a function and inside a function and returning the address of the object using new to main. I have no problems when the class definition is outside any objects but when I initialize the class definition within a function I am getting errors, this …

Member Avatar for David W
0
206
Member Avatar for GeorgiosMeNTUA

I have an image (frame.bmp, uncompressed, resolution 640*480, 3bit depth, 900KB size) stored at C:\Frame.bmp. I want to load it and put it in my program as an array a[N][M], N=479, M=639. After that to modify its elements (e.g thresholding) and create a new array B[479][639]. Finally, to store it …

Member Avatar for triumphost
0
7K
Member Avatar for anumash

I want to declare an ordinary pointer (not a member pointer) to a member function. I have tried but apparently I am getting errors. Is this allowed in C++? Why is it not? #include<iostream> class A{ private: int m; public: void show(void){ std::cout<<"M= "<<m<<std::endl; } }; int main() { A …

Member Avatar for anumash
0
253
Member Avatar for Toheed Rana

how to prepare a result card in dev cpp??? i want help. any one programmer plz?

Member Avatar for rubberman
0
112
Member Avatar for herge

Hello: I have just down loaded a help library for vc2010 C++ it took two days to download. I compiled a CPUID program from Microsoft. 08/25/2015 03:40 AM <DIR> . 08/25/2015 03:40 AM <DIR> .. 08/25/2015 03:35 AM <DIR> CPUID 08/25/2015 03:41 AM 26,759,168 CPUID.sdf 08/25/2015 03:33 AM 887 CPUID.sln …

Member Avatar for NathanOliver
0
143
Member Avatar for anumash

I wrote the following program to access an object's private members via its address. How is it possible that the following code did not give me *ANY* error? The code compiles and gives me the right answer. Does this mean C++ is inferior to other languages in its ability to …

Member Avatar for ddanbe
0
275
Member Avatar for TheChessDoctor

I created a simple cpp file with no errors (hello world project) but it won't launch. #include <iostream> using namespace std; int main() { cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! return 0; } here is the video of it: [Click Here](https://www.youtube.com/watch?v=CrJD-ZNpqI0&feature=youtu.be)

Member Avatar for syncster31
0
167
Member Avatar for Varad_1

I am a kid of 15 and just started learning cpp. I want to make a simple programme wherby if i say hi to the computer it must respond by saying hello to me. So please give the coding or programme for it.

Member Avatar for David W
-2
161
Member Avatar for cambalinho

i'm converting the VB6 DIB code to C\C++ from: http://www.tannerhelland.com/42/vb-graphics-programming-3/ **V – Using DIB Sections** but doing by steps... how can i convert: ReDim ImageData(0 To 2, 0 To bm.bmWidth - 1, 0 To bm.bmHeight - 1) to C\C++? for then use it on GetDIBits() function

Member Avatar for rproffitt
0
113
Member Avatar for cambalinho

i'm getting flickers on windows. the windows have CW_USEDEFAULT size and i use the WS_CLIPCHILDREN. on WM_PAINT i use my image class with client rect size. it's big. but not more big than screen. the WM_PAINT: case WM_ERASEBKGND: { return (LRESULT)1;; } break; case WM_PAINT: { PAINTSTRUCT ps; BeginPaint(inst->hwnd, &ps); …

Member Avatar for cambalinho
0
705
Member Avatar for Dasun_1

The End.