49,761 Topics

Member Avatar for
Member Avatar for fmwyso

Hey, I decided I should probably read a book to learn about C++ considering there are so many and etc :P. My parents said they would buy it for me, but I just wanna make sure it is gunna actually be a book that will teach me alot and hopefully …

Member Avatar for Dave Sinkula
0
142
Member Avatar for Seamus McCarthy

[code=cplusplus] #include <iostream> using namespace std; const int capacity = 20; string tax_payers[capacity] = {"jane", "tom", "jerry", "joe", "annie", "mary", "kate", "steve", "sarah", "paul", "petra", "peter","elaine", "noreen", "sean", "niamh", "donal", "john", "marie", "colin"}; double income[capacity] = {21000.0, 16500.0, 120000.0, 16000.0, 38000.0, 62500.0, 14500.0, 28500.0, 13500.0, 27500.0, 15000.0, 44000.0, 18000.0, 21000.0, …

Member Avatar for Seamus McCarthy
0
148
Member Avatar for jack1234

I am using Visual C++ 2005 (native C++) For the following code, the different of main function 1 and main function 2 is main function 1 using }catch(MyException &e){ but main function 2 using }catch(MyException e){ Which is more correct? if both are correct, which is better? [CODE]//========This is MyException.h===== …

Member Avatar for vijayan121
0
232
Member Avatar for Gusts

So I got such exercise: You have array of 1000 elements they all are random numbers from 1 to 1000 and there is only one duplicate number. You can access each array member only once, can you find duplicate value? And you can't create another array. You can create some …

Member Avatar for Alex Edwards
0
300
Member Avatar for rishabh2011

Hi I am using Dev Cpp for dos programming. I want to know how we can add classic style user interface to programs. The interface like in which we control the menus etc. through arrow keys not mouse. The interface like when we press F2 button at the start of …

Member Avatar for Frederick2
0
173
Member Avatar for littlestone

Question is : Write a function [code=c++] int f(char* str, long pattern) [/code] to find out how many pattern does the str contain? str is a char array consist of '1' and '0'; for example: str = "11010101110101011110100011001" ,pattern = 110; My solution is change pattern and str to std::string, …

Member Avatar for vijayan121
0
298
Member Avatar for harry pottervs

I have written a program in which there is a board and the balls should travel from one place to another.i need to provide a delay when i draw the ball in new position and erase it from previous position.I used delay() funtion on turbo c++.but on gcc compiler on …

Member Avatar for harry pottervs
0
194
Member Avatar for thilakthilak

m an comp engineering student doin my second yr and i m in serious need of any ideas/views regarding a miniproject i hve promised to do to the headmaster :-/ ........so wat so ever thoughts/practical proj....or (any project website links ) ideas u ppl hve can u jst share it …

Member Avatar for thilakthilak
0
86
Member Avatar for balla4eva33

I've been interested in working with mouse input in Visual Studio using C++. I'm curious what steps need to be taken to do this. I'm assuming some sort of Windows header file needs to be included, but I have never seen any code for such things. Basically I want to …

Member Avatar for Prabakar
0
237
Member Avatar for ObliviousXYZ

Hi guys!I'm in great need and embarassment.I'm new to the C++ program and to be frank I'm having a hard time understanding it. Now our topic is about linked list and my professor gave us this machine problems: 1. Write a program that implements a linked list using an array.Your …

Member Avatar for Narue
0
132
Member Avatar for En1ro

Hi, Some time ago I saw a topic with assignments for different type of knowledge - newbie, beginner, advanced etc. and I tried to look up, but didn't find. Is there any topic, or website with these kind of things, just without tutorial how to do it? Thanks for help.

0
54
Member Avatar for Q8iEnG

Hello guys :) I hope all are alright ;) I'm using HashTable to make a program that reads a string from a file.. when I run it, it gives me the message of error (Don't Send) << I guess all of you know this message.. this is my code [CODE] …

Member Avatar for Q8iEnG
0
182
Member Avatar for uompearl

I want to increase the number of characters the user enters as the text (refer line 1410 of cpp file). I want it to be infinite, if possible. Tks.

Member Avatar for Narue
0
89
Member Avatar for hyliandanny

Hello, everyone. I've got a compiler error popping up for this class: [code] #include <iostream> #include <string> class Stage { private: string var; public: Stage(); Stage(int num_of_items); }; [/code] The error is: error C2146: syntax error : missing ';' before identifier 'var' The funny thing is that if I remove …

Member Avatar for Alex Edwards
0
76
Member Avatar for still_learning

Hi there, My son has been recently hospitalized after getting into an accident. Now I am trying to help him with some of his projects. Right now I am stuck on this recursion problem. We need to figure out how to form a diamond shape out of `*'s` using a …

Member Avatar for Pikachumanson
0
467
Member Avatar for 13L4D3

I have installed visual c++ 2008 few days ago. I want to create a file open it, display contents, modify them and search them but i dont know specific codes. I have used turbo c++ earlier. Please specify the codes if possible. Thanx............;)

Member Avatar for 13L4D3
0
131
Member Avatar for Shadoninja

Now that I have working program starter, are there any simple methods of filling in the info to it? I just have the base of it set up and I am not sure how to set up the self-typer. If there are any tutorials made for handling things like this …

Member Avatar for Shadoninja
0
88
Member Avatar for Shadoninja

I am trying to create a simple program that starts up steam from my computer. I have a shortcut on my desktop of steam and when you double click it, it runs the process "steam.exe" When my program executes the line of code "system("start steam.exe")" I get an error saying …

Member Avatar for Dave Sinkula
0
122
Member Avatar for mbleiche

Hi, I'm a new C++ programming student and we just learned about classes and objects. I completed the assignment but had a question about doing something extra with my code. The instructions given for the problem were: To use the formula for a straight line (i.e. Ax + By + …

Member Avatar for ArkM
0
1K
Member Avatar for Jennifer84

I wonder how it is possilbe to access the first listitem in the listView. I know that each item has an index like the listBox Control and that you could access them with the member ->SelectedIndices but when writing the code below, the compiler says: [I]'==' : no conversion from …

Member Avatar for Jennifer84
0
196
Member Avatar for winterx

the program below is what i have...it compiles and runs but the problem is when it runs it asks Enter the number of employees which is fine but then it asks Enter days missed which is also find but it should calculate the average days missed but it keeps returning …

Member Avatar for HarryGabriel91
0
1K
Member Avatar for Leena das
Member Avatar for ArkM
0
72
Member Avatar for grindan

I must do my lab but I can't do please help me how can i find the my lab? That's my lab:Aim of this assignment to implement “infix to postfix statement conversion” as a console application in C++ language and use “Stack” data structure during implementation. Your implementation must be …

Member Avatar for Salem
0
92
Member Avatar for sangham

Friends can you please tell me how can i send object of a class over a network to the client??

Member Avatar for mitrmkar
0
95
Member Avatar for guy40az
Member Avatar for CoolGamer48
0
148
Member Avatar for Code Shark

Hello, I'm new to this forum and have a brief knowledge of C++. I made this program to ask the user for a word and make it so the word would not be allowed any "i's". I completed the task just my code looks a bit to much I think. …

Member Avatar for Prabakar
0
207
Member Avatar for Nemoticchigga

I am using the winsock component in vs2005. I have tried sending and recieving strings. The event of data arriving triggers and runs the following code... [CODE]private: System::Void WinSockControl_DataArrival(System::Object^ sender, AxMSWinsockLib::DMSWinsockControlEvents_DataArrivalEvent^ e) { System::String^ messageBuf = ""; this->WinSockControl->GetData(messageBuf); int i = this->WinSockControl->BytesReceived; }[/CODE] This gets run so the data is …

0
70
Member Avatar for sambafriends

Hi, I need the drawbacks of procedural programming language with good program to explain if any body know best example please send it. I also need the best examples to describe object and class. Please its urgent regards, Samba

Member Avatar for CoolGamer48
0
110
Member Avatar for TheBeast32

HI, I have been wondering how to make a program with the XP style buttons, edit boxes, etc. in it. I have made a GUI, but it's ugly. How can I make the controls look like the ones on say, a windows property sheet or something like that? I have …

Member Avatar for TheBeast32
0
107
Member Avatar for motiv

Hello everyone! I have built a digital table with a pencil (like a wacom) and I'm doing my own drivers. He managed to move the mouse through the following simple code [Visual C + + in XP]: [CODE] // press detected INPUT aInput; aInput.type = INPUT_MOUSE; aInput.mi.dwFlags = MOUSEEVENTF_LEFTDOWN | …

Member Avatar for Ancient Dragon
0
64

The End.