51,593 Topics

Member Avatar for
Member Avatar for bhuvanwip

Hi, I am stucked with this error d:\Odin_1\ODIN_1\OdinRPCvalidation.h(126) : error C2143: syntax error : missing ';' before '*' d:\Odin_1\ODIN_1\OdinRPCvalidation.h(126) : error C2501: 'CRPCValidation::IRPCCtl' : missing storage-class or type specifiers d:\Odin_1\ODIN_1\OdinRPCvalidation.h(126) : error C2501: 'CRPCValidation::m_pRpcControlImpl' : missing storage-class or type specifiers d:\Odin_1\ODIN_1\OdinRPCvalidation.h(127) : error C2146: syntax error : missing ';' before …

Member Avatar for wamuti
0
281
Member Avatar for tonyaim83

Hi My current problem stmt is :- There are n no. of cities each having unique name and each city having m no. of streets. I have all the information as in which street belong to which city and so on. I'm able to extract information from the given input …

Member Avatar for vijayan121
0
102
Member Avatar for Jboy05

Input = Fourdigitnum Output = digit1, digit2, digit3, digit4 Major Task (Module/Subproblems) 1. Receive Fourdigitnum 2. Extract the Fourdigitnum received 3. Remove the digit from the original number 4. Display digit 5. Repeat Step 2 1. Fourdigitnum ("Enter a four-digit positive integer: ") Receive Fourdigitnum 2. digit1= (Fourdigitnum)/1000 3. (Fourdigitnum)%1000 …

Member Avatar for Jboy05
0
101
Member Avatar for Jboy05

Hey, I need assistance in creating a IPO Chart for a homework assigment. [B]Problem[/B] Write a program that prompts the user to input a four-digit number positve integer. The program then outputs the digits of the number, one digit per line. For example, if the input is 3245. 3 2 …

Member Avatar for JRM
0
1K
Member Avatar for gcardonav

Greeting guys Rookie here again. By the way, thanks for all the help. Anyway to business. I am trying to compile a program to understand how to handle exceptions using inheritance. I have created first error.h where all the classes and child classes are defined. Then when I create my …

Member Avatar for vijayan121
0
141
Member Avatar for toolmanx

I'm running AMD Xp1 compiling with Borland bcc32 with cpp extensions. When I minimize and then bring my window back up to normal, the buttons in my toolbar disappear. I can bring them back up to the top by doing a resize (mouse on edge of window with a button …

0
84
Member Avatar for kux

i noticed that when u compile with visual C++ u don't need the throw statement in function headers, but when u compile with g++ u need to explicitly mention all the exceptions u're function might throw. i mean: [code] void functionx() throw ( exception1 , exception 2) { //blabla throw …

Member Avatar for kux
0
159
Member Avatar for rwagnes

I have a dialog that contains three spreadsheets of the class CSpreadSheet. I was trying to use the following export function to export the data to a text file: BOOL CSpreadSheet::ExportToTextFile(LPCTSTR FileName, LPCTSTR CellDelim, LPCTSTR ColDelim, LPCTSTR RowDelim, long Flags, LPCTSTR LogFile); My code currently looks something like this: m_Page1.m_patchSummary.ExportToTextFile(fileName, …

Member Avatar for rwagnes
0
573
Member Avatar for gcardonav

I have this simple program. I created a file called input.txt containing a list of names and I want to read from it. I have two versions of the program. The first one only gives me the first letter in the file and nothing else. The second one does not …

Member Avatar for Duoas
0
127
Member Avatar for shadowfire36

[code] this is what the assignment says : Create a text file with a letter on the first line, and two double-digit numbers on the second line. Write a program using fstream that reads in your text file, creates variables to manipulate that input and outputs the following results to …

Member Avatar for VernonDozier
0
335
Member Avatar for ITprincess

I really need help with this problem. I created a text file with five bank customer records including integer account number(starting with account #1000), first name(max 10 char), last name(max 15 char), and a floating point account balance. Now I need to write a program that reads the records into …

Member Avatar for Ancient Dragon
0
117
Member Avatar for vze2zv5v

This is Paul Michael. I need help with my homework. The sooner you can help me the better. I am stuck. Please give me the solution ASAP.

Member Avatar for Narue
0
199
Member Avatar for mysterio

Write a program that read a line of text, changes each uppercase letter to lowercase and places each letter both in a queue and onto a stack. The program should then verify whether the line of text is a palindrome Output: Please enter a line of text I am A.I …

Member Avatar for gkbush
1
585
Member Avatar for comwizz

Hello everyone, I ahd to make a program for initializing members of a class and displaying them.The members were name , bank account no, account type and current balance. Well , the program works well except for that null pointer assignment is displayed on the screen after correct output.Could you …

Member Avatar for Pranav Aggarwal
0
646
Member Avatar for hschitte

While executing an VC++ exe file i am getting an error as : could not found MSVCR90D.dll

Member Avatar for Ancient Dragon
0
44
Member Avatar for jjt

Dear Group, I am using VS.NET2003 VC++ 7.0 compiler to build the Snake Game (sample game) developed in C++ 3.0, now i would like to recompile in VS.NET2003 C++. Whereby it has three files, the root file snake.cpp and csnake.h header file. When i build the solution i ask me …

Member Avatar for Colin Mac
0
84
Member Avatar for sir avalanche

ok. so i decided to make a very irritating program that fills the computer its run on with junk. here is what i have done yet: [CODE]#include <iostream> #include <fstream> int main () { int i; ofstream filut1 ("allisdust1.txt"); ofstream filut2 ("allisdust2.txt"); ofstream filut3 ("allisdust3.txt"); ofstream filut4 ("allisdust4.txt"); ofstream filut5 …

Member Avatar for hollystyles
0
162
Member Avatar for brk235

Hi all i want to use GUI wıth the Mıcrosoft vısual C++. I have taken some reference code for Win32 GUI and compiled ıt..but ı was gettıng error to compile this code. This is the code which ı compiled... [code=cpp]#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int …

Member Avatar for Nick Evan
0
101
Member Avatar for begueradj

[B]Hi people, I want to know how could we embed SQL code into C/C++ code. Please, give me a link or give me a small example. Thank you very much. Begueradj.[/B]

0
32
Member Avatar for AshwinCareem

Hi everyone, I have a problam with data types which are using in C++. I am so confuce about int,float,double,strings,etc; And numbers of bits that related to each data type. Please anyone help me to solve my problam.

Member Avatar for Nick Evan
0
156
Member Avatar for kadajett

hey guys i am having a problem here... i am working on a new text based rpg and im trying to use a name that someone enters EXAMPLE #include <iostream> using namespace std; int main() { char name; cout <<" do you remember you name? " << endl; cin >> …

Member Avatar for brk235
0
105
Member Avatar for jaepi

Hello there! I come across this function and I was having a hard time dealing with it because it has two function prototype. [B]int swprintf(wchar_t* buffer, const wchar_t* format[, ...argument])[/B] and [B]int swprintf(wchar_t* buffer, size_t count, const wchar_t* format[, ...argument])[/B] I used the first one in Windows and it worked …

Member Avatar for Salem
0
95
Member Avatar for shaikh_mshariq

Thanx to daniweb and all the posters. I have created a program for viewing process and hardware information on windows platform. Now i want to run this program on remote machine. How can i do this. I have administrator permission on that machine. Making dll of this program would help …

Member Avatar for shaikh_mshariq
0
274
Member Avatar for moffett018@aol

I need help on how to write a program that determines the number of days between two dates input by the user...u have to use at leat one loop structure and i dont know where to start...can someone please help me...i have the input by the user down i jus …

Member Avatar for moffett018@aol
0
88
Member Avatar for DesiShaddy

Help with sorting hand of playing cards Hi Guys, I have all my code working except sort function . I need to sort the cards in hand......and I am having hard time with that.... Any help would be really helpful ;) [code=c++] #include <algorithm> #include <iostream> #include <string> #include <stdexcept> …

Member Avatar for ndeniche
0
170
Member Avatar for USUAggie

Hello everyone, My name is David and I am new to these forums as far as posting goes, but I have used alot of the advice given here in my programs. I have come across a problem though in my program that I cant seem to figure out why it …

Member Avatar for VernonDozier
0
81
Member Avatar for DesiShaddy

Hi, I have a hand of cards(array of cards)....I need to sort that with two criterias [** Value and Suite] Can you guys give me some direction to procede.....I tried using sort() in STL it does not work............ Thanks in advance :)

Member Avatar for WaltP
0
26
Member Avatar for k2k

sorry for creating the same post,, but i forgot the [code] [/code] thing... hi, i am trying to let the user create a file name and past it to the ofstream writer.open() I am trying to keep asking for char until the user hit the enter key then fileName will …

Member Avatar for VernonDozier
0
72
Member Avatar for dbwalters

Hello, I am working on a program that is using the type DATE to develop a class Event to model events scheduled for dates. This might be a familiar question to some, but, I have run into an error during the compile and I need help in debugging it. Below …

Member Avatar for dbwalters
0
107
Member Avatar for snowy_shoryu

can any1 help me to solve the following problem? sorry if i seem noobish because i have no basic in c++ and oop and a new beginner...i'm willing to learn anything.. thank you so much...!!! Question: Ask the user to enter to key-in the inputs from 5 different cars and …

Member Avatar for Ancient Dragon
0
304
Member Avatar for tootypegs

Hi, i need to search for a string in a file. I am trying to use memcmp() but i have never used this before and have no idea how it works. Looking at its description it compares 2 blocks of memory but im not sure this is what i want …

Member Avatar for Ancient Dragon
0
91
Member Avatar for gcardonav

I have this program. It is an example from a book. I am using Dev-C++ and my program just runs and close and I cannot see results. I have two questions 1 - Is the try/catch block ok, becuase it doesn t seem to work sometimes. 2 - How can …

Member Avatar for Duoas
0
201
Member Avatar for k2k

hi, i am trying to let the user create a file name and past it to the ofstream writer.open() I am trying to keep asking for char until the user hit the enter key then fileName will be complete even though all the indexes are not filled... and past to …

Member Avatar for Duoas
0
76
Member Avatar for grmskrk

I saw few similar problems on this forum, but they didn't match exactly what I need. The problem is: given a file with names of cities, their latitudes and longitudes, a program must calculate distance between them. But, it isn't all. A program must create a database of all this …

Member Avatar for superjacent
-1
204
Member Avatar for mikeandike22

I need help with this program im working on where you get input from a file and the program checks if the numbers are in ascending order or not and which one is the smallest and largest number in the series..cant use arrays.. This is a my input.txt right now …

Member Avatar for Ancient Dragon
0
211
Member Avatar for s_mostafa_h

hi all , i want to write a simple programm for cell phone ( Mobile ) programm application , for e.g. i want to unlock or remove password when a user forgot his password for his mobile . for this in visual c++ 2005 , is there help for me …

0
70
Member Avatar for darkprogrammer

im looking for a book or two that will teach me MS Visual C++ 2008 Express Edition and a book that will teach me 3D game programming on it aswell.

Member Avatar for Salem
0
109
Member Avatar for gcardonav

I have the following program and it works but when i try to append to the file, it will not do it. Can anyone help, Thank you GCard [code=cplusplus] #include <fstream> #include <iostream> using namespace std; int main() { char buffer[256]; // open it for output then write to it …

Member Avatar for vmanes
0
95
Member Avatar for MKQ

Hello everyone, I am trying to make a program which takes two integer parameters (HeightinInches,HeightinFeet) i.e. (7,30) and then displays the output by converting it into feet and inches. I am using three operators i.e. +,++, a constant integer number=27. After compilation I got following major errors in which I …

Member Avatar for Duoas
0
101
Member Avatar for missileh

Can i create an application that uses WMI to find hardware information using Visual C++ 6 ?? If yes, then does anyone have sample code?? if yes then do help me out...

Member Avatar for Ancient Dragon
0
83
Member Avatar for hanifa

Hei guys, I have a c++ library of sorts. A user has written a Java Applet and wants to be able to call the C++ library functions. This is something my supervisor proposed. He suggested that Applet via a web service call (AXIS-C++) and using tomcat server , will call …

Member Avatar for schoolsoluction
0
123
Member Avatar for Rehamsk

hi i have a matrices Question should be programmed using C++ so the program is ... you should make the user enter the size of the matrix nxn,,, then he should enter the elements... and then the program should give the user MR infinity....which we use in paths and relations …

Member Avatar for Ancient Dragon
0
220
Member Avatar for k2k

Can anyone tell what cause the run time "Debug Assertion Failed!" error message? it has expression: sizeInBytes>count [code=cpp] int main() { int choice; // for menu choice string option; // for repeat going back to menu option Name name[300]; int i=0; // count do{ cout<<"Welcome!"<<endl; cout<<"1.Get the data"<<endl; cout<<"2.See the …

Member Avatar for ithelp
0
145
Member Avatar for ToolMaker

Hi, I was compiling a code and I had this error: fatal error C1900: Il mismatch between 'P1' version '20060201' and 'P2' version '20050411' I 'm using Qt4 which is GUI builder and MSVC2005 Pro on windows xp SP2 I've tried to reinstall all but I still have this error. …

Member Avatar for ToolMaker
0
147
Member Avatar for vinsudhir

Wanted to know if this is possible and if so what it means. 1 typedef struct tree{ 2. int height; 3. int width; 4. int weight; 5. } banyan; 6. int main(){ 7. banyan* count[2]; // This is the statement I am interested in 8. count[0].height = 100; 9. count[0].width …

Member Avatar for Agni
0
105
Member Avatar for CloudKill9

Every time I run this program, I get the number the user inputted printed back on the screen infinite amount of times. According to my CS teacher, he wants us to use basics, no arrays or strings. The user is suppose to type in several numbers followed by -999. Say …

Member Avatar for CloudKill9
0
108
Member Avatar for johndory

Hi, i have just started learning postfix and prefix notations. i was wondering if there is tutorial or something with regards to it here. i was also wondering if there are conversions from postfix to prefix and vice versa. is it available?

Member Avatar for Duoas
0
146
Member Avatar for loushou

Here is my code of the function in questiion: [CODE]void DrawScene(LPDIRECT3DDEVICE9 p_dx_Device, LPDIRECT3DVERTEXBUFFER9 p_dx_VertexBuffer, LPDIRECT3DINDEXBUFFER9 p_dx_IndexBuffer) { p_dx_Device->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,60), 1.0f, 0); p_dx_Device->BeginScene(); p_dx_Device->SetStreamSource(0, p_dx_VertexBuffer, 0, sizeof(OURCUSTOMVERTEX)); p_dx_Device->SetFVF(D3DFVF_XYZ|D3DFVF_DIFFUSE); p_dx_Device->SetIndices(p_dx_IndexBuffer); D3DXMATRIX m_Rotation; D3DXMatrixRotationZ(&m_Rotation, flt_Angle); D3DXMATRIX m_Translation; D3DXMatrixTranslation(&m_Translation, 32, -32, 0); D3DXMATRIX m_World; D3DXMatrixMultiply(&m_World, &m_Translation, &m_Rotation); p_dx_Device->SetTransform(D3DTS_WORLD, &m_World); p_dx_Device->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, …

Member Avatar for loushou
0
560
Member Avatar for hanifa

Hei guys, I have a c++ library of sorts. A user has written a Java Applet and wants to be able to call the C++ library functions. This is something my supervisor proposed. He suggested that Applet via a web service call (AXIS-C++) and using tomcat server , will call …

0
60
Member Avatar for george45

I am writing a program that is supposed to generate 10 random numbers all of them with in the range of [-0.5, 0.5] (the data type that is supposed to be produced by the program are 10 random floating point numbers with in the interval [-0.5, 0.5]). But the problem …

Member Avatar for VernonDozier
0
167

The End.