49,761 Topics
| |
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 … | |
[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, … | |
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===== … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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] … | |
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. | |
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 … | |
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 … | |
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............;) | |
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 … | |
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 … | |
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 + … | |
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 … | |
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 … | |
| |
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 … | |
Friends can you please tell me how can i send object of a class over a network to the client?? | |
Can someone tell me how to add a static library file to a project in visual studio 2007. | |
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. … | |
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 … | |
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 | |
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 … | |
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 | … |
The End.