49,761 Topics

Member Avatar for
Member Avatar for fabricetoussain

ok so i have this program here i had to finish, and it was for input and output files, i wrote everything, and even wrote the data.in and data.out files but when i run it i get nothing in return. do the files have to be in the ".in" format …

Member Avatar for triumphost
0
294
Member Avatar for pupucashu

The program takes a file with names and GPAs and sorts them in order of highest GPA to lowest using vectors. I cant seem to find out whats wrong with the code. Everytime i run it it says 'vector subscript out of range'. Can someone please help me? File: James …

Member Avatar for jonsca
0
424
Member Avatar for determine

I'm not sure where to start with this code. I would greatly appreciate if someone could write the code up for me. Here are the details. The program should prompt the user to enter the weight of an object on Earth, between 0 and 1000 pounds, and the name of …

Member Avatar for determine
1
307
Member Avatar for VasquezPL

Hi! I need to use if statement to check if its the summer time (CEST) or Winter time (CET)...But I dunno how to do that..Couldn't find anything useful on the INTERNET.my date format is (d-mm-yyyy) Basically I need to do sth like that [code] if DateTimePicker->Value>(31-10-yyyy) {time="CET";} [/code] THX For …

Member Avatar for VasquezPL
0
366
Member Avatar for patrioticparado

I have no specific question, though I could go on asking random questions for days. I am still rather early in the learning phase as far as c++ goes. I decided to post here for a rather different reason. I was Google searching for a problem related to getch() and …

Member Avatar for Narue
0
115
Member Avatar for lochnessmonster

[url]http://msdn.microsoft.com/en-us/library/aa505945.aspx[/url] im curious as to why microsoft has typedef'ed simple "data types"? what's the point of this and why should i use them in my programs?

Member Avatar for L7Sqr
0
205
Member Avatar for lmbdx

Hi, I actually don't really know where I should post this question so please forgive me if it's in the wrong discussion section. Basically, I'm developing a CUDA program to calculate the FFT power spectrum of a series of images which are captured continuously and want to show the power …

0
59
Member Avatar for super-duper

This is part of my linked list program. I need to change the data(node) with a new one when it is found (using the find function. And in other case I need to delete the found item using deleteNode() function, once the matching item is found. But, it is not …

Member Avatar for super-duper
0
169
Member Avatar for vavazoom

I've made a Matrix class that contains arrays, however I'd like to inherit the array class if possible. I've done some searching online and can't find any solid information on this. Does anyone know if I can even inherit this class? If so, do you have a good site with …

Member Avatar for Narue
0
219
Member Avatar for honestdua

hey all! can anyone help me findind any c/c++ code for reducing the pixels of an image to a required amount... please... thnx...

-2
42
Member Avatar for cppgangster

Hi, I am trying to compile this program: [CODE] //hello.h #include <afxwin.h> class CMyApp: public CWinApp { public: virtual BOOL InitInstance(); }; class CMainWindow: public CFrameWnd { public: CMainWindow(); protected: afx_msg void OnPaint(); DECLARE_MESSAGE_MAP() }; //end of hello.h [/CODE] [CODE] //hello.cpp #include <afxwin.h> #include "hello.h" CMyApp myApp; BOOL CMyApp::InitInstance() { …

Member Avatar for cppgangster
0
119
Member Avatar for Sundayy

Hi Guys: I have completed my source code for the following problem using the "if" statement. I have gotten 4 errors which are: Line|26|error: ambiguous overload for 'operator>>' in 'std::cin >> (Total_Number_of_Seconds / 3600)'| Line|29|error: ambiguous overload for 'operator>>' in 'std::cin >> (Total_Number_of_Seconds % 3600)'| Line|32|error: ambiguous overload for 'operator>>' …

Member Avatar for Sundayy
0
786
Member Avatar for schrope

help i can not figure this out. my home is to encryption a four digit number I have to add 7 and use mod 10-- i think i have that part but now i need to swap the first number with the third and second with the fourth. i can …

Member Avatar for Crutoy
0
181
Member Avatar for zacblazic

Hey guys, So I today I converted my programs from VS 2005 to VS 2010. I came across an issue involving the string null terminator ('\0') in a function of mine. (Note: It worked in VS 2005). [CODE]int StrLength(string str) { int i = 0; while(str[i] != '\0') { i++; …

Member Avatar for Narue
0
139
Member Avatar for Transcendent

hey, I can seem to make this one work so I wrote another one. It runs but it doesn't work. I tested this but it keep saying invalid for everything anyway. You can check the flow chart again; i just changed ThisOne to ToBeChecked. valid invalid c cc ccc b …

Member Avatar for mike_2000_17
0
143
Member Avatar for schrope

i am taking my first C++ class and i can not clear the following error can anyone help error C2447: '{' : missing function header (old-style formal list?) //christine gershen // Exercise 4.17: Encryption.cpp // Encrypts data given by user. #include <iostream> // required to perform C++ stream I/O #include …

Member Avatar for schrope
0
142
Member Avatar for lochnessmonster

wchar_t is a macro windows uses to replace it with either "CHAR" or "WCHAR" when UNICODE is defined. MSDN says that UNICODE is defined by default. My question is....what header file is this defined in? and how do i undefine it if i want the compiler to replace every occurance …

Member Avatar for Narue
0
110
Member Avatar for ulanda1025

I am getting the following errors and can't figure out how to fix it: [B]Start Error Message:[/B] 1>------ Build started: Project: Essential, Configuration: Debug Win32 ------ 1>Compiling... 1>Essential.cpp 1>c:\users\youlanda\desktop\lan\odu\spring 2011\it 310\program 1 store inventory\essential\essential.cpp(9) : error C2659: '=' : function as left operand 1>c:\users\youlanda\desktop\lan\odu\spring 2011\it 310\program 1 store inventory\essential\essential.cpp(10) : …

Member Avatar for Fbody
0
232
Member Avatar for jshoot

Hi every one! I have to genarate a 2d graphic based on x,y axis. I have two vectors with the same size, and I wanna to use then to make the x and y axis. Can anyone help me? Or show a trick, or page? Thanks

Member Avatar for jshoot
0
133
Member Avatar for atticusr5

Hello all, I know there is a "sort" method in the STL for list. However I am not sure how to use it, and my research was unable to help me out. What I am trying to do is sort my master list by the averages, lowest to highest. Can …

Member Avatar for atticusr5
0
142
Member Avatar for prahesh

Hi All, I was working on the project that was building very well on Visual Studio 2008 Express Edition. Later I have installed the Visual Studio 2008 professional along with Visual Studio 2008 SP1. Now I am trying to build the project, which shows the following Error. fatal error LNK1181: …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for arunp_eagle

Hi people! For the API, CLSIDFromProgID(), can any one pls suggest what is the parameter exactly mean.. HRESULT CLSIDFromProgID( __in LPCOLESTR lpszProgID, __out LPCLSID lpclsid ); do we need to give the guid?

0
67
Member Avatar for super-duper

Hi, I'm working on this program where I have to do some updating. In this case, I have to add a new item to the linked list, and it should be in a sorted fashion (ascending). I am trying to use my find() function, which returns the previous node (*ptrPrev). …

Member Avatar for Greywolf333
0
126
Member Avatar for van21

Please, help me with my assignment. Please, anyone with a big kind heart : write a c++ program to give the 30 students final grade in a course with the ff. grading scheme: there are five quizzes worth 20 pts. each, a laboratory worth 100 pts., and exam worth 100 …

Member Avatar for van21
0
94
Member Avatar for tomala90

Hi all. I am trying to read items from a text file whose name is input by the user and also output the receipt to a text file whose name is input by user. I got stock for about 3 hours. Could you guys help? Thank You. [CODE] #include <iostream> …

Member Avatar for jonsca
0
271
Member Avatar for Bill1811

Hi Everybody I am new to C++ and have a problem from the book my instructor gave that I am having some problems with. I am sure you guys are all familiar with the "mortgage calculator" here is my code. The Errors I am getting are as follows. I have …

Member Avatar for mike_2000_17
0
174
Member Avatar for ezat2020

hi... I am new with c++. I need help to retrieve image from my usb webcam. I used codegear compiler. The idea is I need to capture image 10 times per second( or more) from my webcam. So, it will display at the screen some sort like video image (at …

Member Avatar for ezat2020
0
194
Member Avatar for br007

Here is the snippet of code I am having issues with. cout<<"So are you a male or female, Please type m/f"<<endl; cin>>sex; if (sex='M','m') { alcohol_distribution=.73; } else if (sex='F','f') { alcohol_distribution=.66; } So I know I have this terribly wrong, but i want the alcohol_distribution based on whether or …

Member Avatar for br007
0
120
Member Avatar for lochnessmonster

i do have 1 question [code]int function(...) { int x; int q; if (condition) { } <-----is there a way to put a marker here...then use a pointer to store the address of the marker...right before the 2nd conditional statement in my code? if (condition2) { } return val; } …

Member Avatar for mike_2000_17
0
90
Member Avatar for biogig

so I've been trying to write this program that takes the data from a file and outputs the year the rainfall how much it is below/above the average, the average raifall and the std deviation and for some reason I get three C4552 warnings:'>': operator has no effect on three …

Member Avatar for biogig
0
882

The End.