48,983 Topics

Member Avatar for
Member Avatar for mattybennett

Hi all, Ok - there's nothing like a BIG challenge to start off my exploration into programming. Given that I'm a complete newbie with more build errors than a builder having a bad day (bad pun!), what I'm really looking for is someone to hold my hand a bit and …

Member Avatar for joel.queiroz
0
2K
Member Avatar for ravi_14

**The special rules for inline functions require that they be defined in each file in which they are used.The easiest way to make sure that inline definitions are available to all files in a multifile program is to include the inline definition in the same header file in which the …

Member Avatar for L7Sqr
0
203
Member Avatar for lehmber

trapezium pattern points for interger n plz let me knw if any body knw the program in cpp

Member Avatar for ddanbe
0
41
Member Avatar for myk45

Hello All, Well this is not exactly a C++ question. More of a math one. But I've seen many guys work on GameDev in this forum. So, posting it here. Here it goes: I was reading an article to check if a point in view frustum and i read some …

Member Avatar for myk45
0
413
Member Avatar for صمتي

I have error in my program.I want to display name in order by using radix sort

Member Avatar for Hiroshe
0
210
Member Avatar for صمتي

I want to order this program by name in descinding order. #include <iostream.h> #include <stdio.h> #include <conio.h> #include <string.h> #define MAX 10 struct std{ char name[20]; int age,year; }; class radixsort{ struct std arr[MAX]; int n,i; public: int a[]; int b[]; void getdata(); void showdata(); void sortLogic(); }; void radixsort …

0
151
Member Avatar for Mr.UNOwen

Hello, So I was testing my matrix class and the results look questionable and the inverted matrix isn't returning the vertex to it's original value (a seperate issue). Given a perspective projection at 45 degrees with a near of 1 and a far of 1000, the camera at the orgin …

Member Avatar for Jean_4
0
339
Member Avatar for jonel.sumang

I have a c++ project that is due on friday. please help :( Codes should not be too advanced. Use loop or array. >Introduction: An interesting sequence of numbers can be generated using any given integer using the following procedure: 1. First, arrange the digits of the given number in …

Member Avatar for Learner010
0
290
Member Avatar for vishnu balan

Please excuse me if this is silly.. I do want a clear picture of how we can use a singleton class?? I do read many answers here. But I didn't got anything clear. I need a simple program explaining **singleton class**. Please give me the explanation of each and every …

Member Avatar for tapananand
0
448
Member Avatar for Olyboy16

Please geeks how can i use/access the initialization list for my class. So that can do something like this... MyClass foo = {value,value,value};

Member Avatar for Olyboy16
0
98
Member Avatar for shubham.tanwar.39982

I am just a beginner and want to make a project for my 12th standard i want to know whether i could formatt font style in c++ if yes kindly send me the code snippet to <snip> thanks in advance ...

Member Avatar for jwenting
0
236
Member Avatar for m.a.u.

Greetings everybody, I have used VS for long, and for one of my projects I used MonoDevelop to run it under Ubuntu, of course I was using C#. I have a kit, a bit expensive :), and I need not only develop a program but also develop a real-time DSP …

Member Avatar for NathanOliver
0
215
Member Avatar for ABELLOVE

write a c++ write a c++ programe that accept resalt frome the user and displays grade and remark as follows if resalt >=90 the grade 'A' Remark 'EXCELLENT' if resalt >=80 the grade 'B' Remark 'VERYGOOD' if resalt >=70 the grade 'C' Remark 'GOOD' if resalt >=60 the grade 'D' …

Member Avatar for NathanOliver
-2
123
Member Avatar for ravi_14

My header file header.h #ifndef HEADER_TEST #define HEADER_TEST static test_variable; #endif now i am including this in two source files IN THE SAME PROJECT. multiple definition error. i have used static specifier in header file . please help me understand this.i think static makes internal linkage. regards, ravi

Member Avatar for Suzie999
0
139
Member Avatar for Learner010

# Tutorial On Operators# *Operators are the signs to the tell the compiler to perform specific task*. The Operators fall into following categories :- Arithmatic Operator Relational Operator Logical Operator Bitwise Operator Miscellaneous Operator(i added Assignment Operators in this categeory) **Arithmatic operators:-** There are following arithmetic operators:- + Add [6+2=8] …

Member Avatar for Learner010
5
683
Member Avatar for BogdanCov

Hello guys. I need an idea. How can I calculate GCF of many numbers? I thought I could calculate two by two numbers, but it not seems to be a very effective idea. There is my function: int gcf (unsigned int x, unsigned int y) { return (y == 0) …

Member Avatar for tapananand
0
228
Member Avatar for Curious Gorge

Hello again I'm working with the Poco internet library trying to understand it but I have come across some syntax that I don't quite understand. This may be a beginner question. Here it is: Poco::AutoPtr<Poco::Notification> pNf (_queue.waitDequeueNotification); I know AutoPtr's contain a count of how many objects reference the object …

Member Avatar for Curious Gorge
0
308
Member Avatar for Daneos

Hello everyone, Im very new to c++ and dont have very much experience. But Im working on a programm and for that programm I need ms sql connection. Ive already googled much but I couldnt find what I need. Now I would like to ask here if someone know where …

Member Avatar for Ancient Dragon
0
158
Member Avatar for hema.adel3

iam need to complete this game with ( jumping function - hero - enemy - the fire of enemy ) please ... iam really need your help ‪#‎include‬<iostream> #include <conio.h> using namespace std; void Disp(char X[][80]) { system("cls"); for (int r=0; r<24; r++) { for (int c=0; c<80; c++) { …

Member Avatar for David W
0
4K
Member Avatar for whitebloodcell

I am trying to create a tennis tournament simulator. There are 128 players in the tournament, and 32 seeds. I have a vector filled with 'Player' objects named 'Players'. Each 'Player' object has three member variables, Strength, Ranking, and ATPPoints. When the vector 'Players' is first declared, the default constructor …

Member Avatar for David W
0
271
Member Avatar for Dan_3

there is string of 0 and 1. The goal is to sort it. 2 pairs can be switched on each step. For example the mentioned above string can be sorted in following steps: 0. 00010111010 1. 00001111100 2. 00000011111 help please....

Member Avatar for Hiroshe
0
301
Member Avatar for whitebloodcell

I am trying to install the boost libraries for a project I am working on. I extracted the archive to C:\boost_1_55_0, opened a command window and typed bootstrap.bat mingw as indicated on this site. In response, I receive the error message "\MikTeX was unexpected at this time". The only solution …

0
104
Member Avatar for sami9356

Can we create an array of objects for a class having default constructor?. Justify your answer.

Member Avatar for tapananand
0
702
Member Avatar for Ploutarchos

Hello Guys Well I'm working on a lottery game and I would like to ask something because I don't know how to test the sequence of numbers before to print out!! All I need is to check the series of numbers in the arrays before the program prints out a …

Member Avatar for Ploutarchos
0
2K
Member Avatar for yaldoo

Hey people! Can you please help me with this problem? I am so stuck on it and my instructor gave me hints on what I should do. No arrays or anything crazy yet, I'm still a beginer. 1.) Write a program that will compute average word length (average number of …

Member Avatar for yaldoo
0
4K
Member Avatar for piikun

we were given a task to create a for loop with where the user gives a number and became this output and we dont know if there is a sequence or an algorithm to it like fibonacci anyone recognize this pattern? input: 3 0|2 --- 0|2 Nice window. Thanks! input: …

Member Avatar for David W
0
146
Member Avatar for Learner010

hello i decide to first learn about file streams before learning oop concepts in c++. want to read single digit from the textfile. actually text file contains numbers from 0 to 9. And these are 9 in a row and 3 row are there. you can think of its content …

Member Avatar for NathanOliver
0
367
Member Avatar for huseyinnkadir

Detect keyloggers and delete Keyloggers used code : GetAsyncKeyState function

0
85
Member Avatar for tapananand

I know that in case of virtual inheritance, a vptr is needed to access the base class members, so I looked at a program that involved virtual inheritance but I was amazed at the size of the class. The code is below: #include<iostream> using namespace std; class Base { public: …

Member Avatar for mike_2000_17
0
1K
Member Avatar for Saranika

Consider the following class hierarchy of preschool teachers of ABC school, to answer the questions from i to iv. *Preschool teachers full time teachers part time teachers All Preschool teachers have a teacher ID, name, age and Highest qualification. A full time teacher has a fixed monthly salary. He/She has …

Member Avatar for Nick Evan
-1
221

The End.