51,592 Topics

Member Avatar for
Member Avatar for Victor_10

Hi there am new here, i code with c#, web with asp.net mvc, i will like to meet with codaz of like manner..

Member Avatar for ddanbe
0
43
Member Avatar for k3rry41o

Hey, i need c++ coding to print sum of this series 1 + 1/11 + 1/21 + 1/31 + ... + 1/N Would be great if someone could answer this quick, thanks.

Member Avatar for ddanbe
-2
106
Member Avatar for surayanbo
Member Avatar for NathanOliver
0
109
Member Avatar for prgmmgbgnnr

i was given an assignment to create a word construction game where the program will randomly picks a combination of vowels and consonants and the user will build as much words as possible from the choosen letters. my prog will check for the correctness of the words and gives the …

Member Avatar for prgmmgbgnnr
0
238
Member Avatar for can-mohan

Hi Guys, In my current task , I need to read the read the approximately 10,000 recoreds from database and need to store the same in container.Now i need to select container to store all this records inorder to generate the report.Could you let me know whether i need to …

Member Avatar for can-mohan
0
168
Member Avatar for Sara_13

Hello , I've been working for an hour now searching for a solution for a problem i have for tomorrow's workshop so I wanted to be ready for it and here was the question : Write a program that reads 3 integers. Then, display:  The count of positive integers …

Member Avatar for David W
0
289
Member Avatar for cambalinho

i need just an intro about Matrix. what is Matrix and what i can do? i understand that i can rotate, scale, mirror and more. but can i swap pixels?(convert red to green) i don't know so much about Matrix intro :(

Member Avatar for ddanbe
0
80
Member Avatar for can-mohan

Hi All, Usually in factory method we need to check the existance of object based on given argument and then need to return the object and due to this we need to have multiple if and else statement and while adding one more type then again one more else block …

Member Avatar for rubberman
0
264
Member Avatar for zelrick

Hello C++ Programmers; I would like to know if fill color can be automatic fill up a whole row when in two column have a number 6; for example: A B C D E F G H I J 1 98 132 3 146 6 54 8 210 8 2817 …

0
117
Member Avatar for TheFearful

Hello everyone, can anyone explain to me what is wrong with my project? I coded the program using my linux system using Vim and the g++ compiler. I then copied that text over to Visual Studio since I am assuming my professor is going to compile and run it through …

Member Avatar for Moschops
0
456
Member Avatar for mrismich

Im a student & and just started learning c++... My professor assigned me a program to get output as: 1 1 2 3 5 8 13 21 34 With the use of while loop... i hv made this>> #include<iostream.h> #include<conio.h> main() { int n=1,m=2; cout<<n<<' '<<n<<' '<<m<<' '<<n+m<<' '<<n+(2*m)<<' '<<4*m<<' …

Member Avatar for TheFearful
0
221
Member Avatar for Bhavesh Nariya

// Program to show swap of two no’s without using third variable #include<stdio.h> #include<conio.h> void main() { int a, b; printf("\nEnter value for num1 & num2 : "); scanf("%d %d", &a, &b); a=a+b-(a=b); //Swaping printf("\nAfter swapping value of a : %d", a); printf("\nAfter swapping value of b : %d", b); …

Member Avatar for Oddytech
-3
2K
Member Avatar for Pilot122x

Ok, so right to it. int CSQLDB::Init(const char *host, const char *user, const char *passwd, const char *db) { //Init mySQL mySQL = mysql_init(mySQL); my_bool rec = 1; mysql_options(mySQL, MYSQL_OPT_RECONNECT, &rec); if(!mysql_real_connect(mySQL, host, user, passwd, db, 3306, NULL, NULL)) { printf("(!!!) mySql connection rejected!\n"); mysql_close(mySQL); return 0; } failed = …

Member Avatar for マーズ maazu
0
236
Member Avatar for ryanzeng

Hi all, i need help to build up a cellular automata program. So, there is 4 state of cells, 0 = space, 1 = ".", 2 = "+", 3 = "#" This state is continuous from 0 - 3, after 3, it will be back to 0. For example, an …

Member Avatar for JOSheaIV
0
216
Member Avatar for homeryansta

[CODE=C++] #ifndef LIST_H #define LIST_H #include <iostream> typedef char Item; class List{ public: List() {first = NULL; last = NULL;} //~List() void append(Item entry); void remove_last(); void output(); private: struct Node { Item data; Node *next; Node *back; }; Node *first; Node *last; }; #endif [/CODE] I'm writing a class …

Member Avatar for Syed Zuman
0
969
Member Avatar for mrismich
Member Avatar for SpottyBlue

I got the questionairre problem. I was trying to fill the answers from the 20 questions and output the file as results.txt, but it only shows the answers of 19 questions. And when I fill up all the answers, the total score shows 0. The scores for each question (except …

Member Avatar for rubberman
0
198
Member Avatar for egieboom12

problem#1 Create a program that will count from 1 to n, wherein n is a user-input number. problem#2 Create a menu and combine previously-created programs into one im a newbie programmer i need help in using looping constructs... any suggestions???

Member Avatar for rubberman
0
149
Member Avatar for mrismich
Member Avatar for mrismich
Member Avatar for mrismich
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
315
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
176
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
121
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
179
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
270
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
296
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
307
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
661
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
112
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
363
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
135
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
131
Member Avatar for boomtifier

I need a Sample of of calulating the Average of "C Program=50,HTML=50 and others THREE examples" (NOTE;USING CODE BLOCKS COMPLIER WILL BE DEEPLY APPRECIATED)

Member Avatar for boomtifier
-1
92
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
264
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
210
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
257
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
115
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
146
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
280
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
170
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
164
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
117

The End.