49,761 Topics

Member Avatar for
Member Avatar for Auroch

Hello everybody! I'm trying to display the result of addition of vectors. But Builder shows the error after compilation (line 29). What should I change for in my code in order to find the problem? Thanks in advance. #include <iostream.h> #include <iomanip.h> #include <conio.h> class CVector2D { public: CVector2D(double x0 …

Member Avatar for Auroch
0
261
Member Avatar for Vasthor

#include <iostream> template <unsigned, unsigned> class Screen; template <unsigned H, unsigned W> std::ostream& operator<<(std::ostream&, const Screen<H, W>&); template <unsigned H, unsigned W> std::istream& operator>>(std::istream&, const Screen<H, W>&); template <unsigned H, unsigned W> class Screen { friend std::ostream& operator<<<H, W> (std::ostream&, const Screen<H, W>&); friend std::istream& operator>><H, W> (std::istream&, const Screen<H, …

Member Avatar for tinstaafl
0
169
Member Avatar for llhhaf

Here is some of the most beatiful books to learn C++ quickly and easly, i do recommend any one how want to learn c++ programming to start with any of this books [C++ Programming From Problem Analysis to Program Design](http://iit.qau.edu.pk/books/C++%20Programming%20From%20Problem%20Analysis%20to%20Program%20Design%20%5B5th%20Edition%5D.pdf),5th Edition by # D.S. Malik # [C++ primer](http://cdn2.filepi.com/g/Y9VSbKZ/1401289997/ebb756f7254ad66a01b5322f7d4d00e2), 5th Edition …

0
83
Member Avatar for Sterben

Can anybody help me solve this case? there's an example input and output

Member Avatar for deceptikon
0
70
Member Avatar for uonsin

I'm getting a compiler error when trying to initialize a geometry shader using OpenGL. I'm using VS2013. Here is how I initialize it on OpenGL myCgContext = cgCreateContext(); cgGLSetDebugMode(CG_FALSE); cgSetParameterSettingMode(myCgContext, CG_DEFERRED_PARAMETER_SETTING); CGprofile gpProfile = cgGLGetLatestProfile(CG_GL_GEOMETRY); if (gpProfile == CG_PROFILE_UNKNOWN) { if (cgGLIsProfileSupported(CG_PROFILE_GLSLG)) gpProfile = CG_PROFILE_GLSLG; else { fprintf(stderr, "%s: geometry …

Member Avatar for uonsin
0
326
Member Avatar for nanomedo

I need a solution to this problem The idea of the project is about to draw a small village where we can change the weather by using (swich) function>> The problem is that when I Write a function to draw a rain was the raindrops scans colors that appear above …

0
144
Member Avatar for afnan Qureshi

an online ATM machine, connected to the server (another computer). All the data is stored on the server. The ATM client will only be used for cash withdraw or some other basic ATM functionality.

Member Avatar for TrustyTony
0
135
Member Avatar for Jimin

Could you tell me what problem this code has? This is a simple ATM code. (Menu: openAccount, deposit, withdraw, displayAccount <-display All Account). There is no noticed error(red line). Code was running. But I can't store information on Object.. (It maybe my fault thought) class Account{ private: string accNum; string …

Member Avatar for tinstaafl
0
341
Member Avatar for zulqarnain02

Can anyone please eleborate this project.I have to make a console application of it. Please tell me what is knap-sack and whats the concept behind its programming.

Member Avatar for Hiroshe
0
99
Member Avatar for cambalinho

i'm reading these page: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775951%28v=vs.85%29.aspx but see the Remarks section: Remarks For illustrations of the principal button styles such as BS_CHECKBOX and BS_GROUPBOX, see Button Types. The appearance of text or an icon or both on a button control depends on the BS_ICON and BS_BITMAP styles, and whether the BM_SETIMAGE …

Member Avatar for cambalinho
0
306
Member Avatar for abdiqani

C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything you need to do. The creator of C++, Bjarne Stroustrup, …

Member Avatar for Hiroshe
0
226
Member Avatar for total90

Write a C++ program that asks the user to enter the price of a car (real), the down payment (real) and the number of years for the loan (integer). Calculate and output the monthly payment (real) of that car. Assume the sales tax rate is 7% and an interest rate …

Member Avatar for Suzie999
0
306
Member Avatar for Masood_786

Hi, All last year i posted for solution to programatically retrieving I Q data from USB Tv Tuner (Gadmei UTV382 USB TV BOX) for implementation of SDR. Since then no reply was received that could solve the problem. Some detail of the device, it has 1. XCEIW XC4100ACQ tuner 2. …

Member Avatar for Masood_786
0
1K
Member Avatar for Natiprog
Member Avatar for rubberman
0
127
Member Avatar for VSBrown

Here is a link to some C++ Code that I did while I was in college. Thought I would post it because maybe it will help someone else. [url]http://www.vsbrown.com/cplusplus.asp[/url] :D

Member Avatar for s.kiroshan
0
645
Member Avatar for DeneyimszDenek

webBrowser1->Document->GetElementById("email")->Value = textBox2->Text; this code an error. help me.

Member Avatar for DeneyimszDenek
0
119
Member Avatar for wngus0

plz cheak this if you dont know? >>>>>surf birthday paradox #include <iostream> using namespace std; #include <stdlib.h> #include <time.h> const int SAMPLE_SIZE = 24; const int NUMBER_OF_SETS = 1000; int Menu(int); void ExplainBirthdayParadox(); void VerifyBirthdayParadox(int Birthday[]); void SortBirthdaySet(int List[], int Last); inline void Swap(int &A, int &B); void LookForMatch(int Birthday[]); …

Member Avatar for Hiroshe
0
636
Member Avatar for johans22

The 3rd party to EXE calls like call backs work but call backs from 3rd party DLL to another DLL won't work. 3rd party DLL has to message the upper EXE or DLL that evetually gets emailed out. Working platform is Vista or Win 7.

Member Avatar for johans22
0
88
Member Avatar for olelink

Ok I need to know how to fill in blanks on a website. My example is if I wanted to fill in First name, second name, address on a website and repeat. Can someone help me with this. Some people say its called a "bot"

Member Avatar for nittu sarathe
-2
572
Member Avatar for irfan_3

Actually i need help in making a project on reservation system(hotel,bus etc) in C++(oop) ..can somebody just guide me in making my project ,,, thanks in advance

Member Avatar for irfan_3
0
1K
Member Avatar for razzzz87

Hi all , I would really appreciate if any one will help me. i am working face recognition system for security system i am comparativly new to work on such system. i looking for code snap to start the project. project requirment is, once a person's face get recognised by …

Member Avatar for iamthwee
0
101
Member Avatar for agrbinoo.albaker

Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: • void getScore() should ask the user for a test score, store it in a reference parameter variable, and validate it. This …

Member Avatar for Sarkurd
0
204
Member Avatar for shelton22

I have declared, map<int, vector<int>> abcmap; map<int,vector<int>>:: iterator itmap; vector<int>SPLINKS; SPLINKS contains: 1 3 4 abcmap contains; 1=> 1 2=> 2 6 3=> 1 2 4 I want to iterate both SPLINKS and abcmap to find and erase elements that do not match in both containers; ie after execution; 2=>2 …

Member Avatar for shelton22
0
275
Member Avatar for cambalinho

using the WM_KEYUP message: how can i combine the keys? if(wParam== VK_CONTROL & 'a') MessageBox(NULL,"hi", "hi",MB_OK); if i click on control key, the message is showed.... but my combination key is ctrl+a.... so how can i combine the keys? :(

0
82
Member Avatar for fareez

Dear all I used codeblock to make a machine and now I need to capture the screen, I tried the GDI and DirectX examples in this site : http://www.codeproject.com/Articles/505 ... the-screen but codeblock gave errors , I think I do not know how to use them , please tell me …

0
75
Member Avatar for rowen_1

I have a assignment on Knapsack(tree and bound) and went online to find out how to code tree and bound in c++ but most of the resource are all theories. Thus I don't know how to begin coding and need some help to start off.

Member Avatar for Hiroshe
0
183
Member Avatar for Acting_geek

Requirement: To distribute a list of sorted numbers in evenly sized group based on the sum which will be fixed. For example 4 11 16 18 49 74 90 100 101 --> Sorted list Sum = 100 --Fixed Groups will be Set1 = 103 Set2 =101 Set3= 100 Set4= 90,4 …

Member Avatar for Hiroshe
0
105
Member Avatar for Patel_Ankit
Member Avatar for iamthwee
0
270
Member Avatar for Awais ramzan

can any help me i have to do my assignment that how to swap 5 number using pointer in c++...

Member Avatar for Learner010
0
146
Member Avatar for shelton22

I have delared two multimaps such as; multimap<int,vector<int>> allpathsmap; multimap<int,vector<int>>:: iterator itapm; typedef pair<int,vector<int>> pairapm; multimap<int,vector<int>> graphtextmap; multimap<int,vector<int>>:: iterator itgtm; typedef pair<int,vector<int>> pairgtm; And I wrote the following code to traverse the values of multimaps to print the key; for(itgtm=graphtextmap.begin(); itgtm!=graphtextmap.end(); ++itgtm) { for(itapm=allpathsmap.begin(); itapm!=allpathsmap.end(); ++itapm) { cout << endl …

Member Avatar for nullptr
0
206

The End.