49,757 Topics

Member Avatar for
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
266
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
193
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
230
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
Member Avatar for shaunkuro

I got some ploblem when i was doing smth here are the codes: // Wallhack.cpp : Defines the exported functions for the DLL application. // [code=cplusplus] #include "stdafx.h" /*creds to me,Roverturbo,Azorbix,Frit0 ,unreal*/ #include <windows.h> #include <detours.h> #include <d3d8.h> #include <d3dx8.h> #include "log.h" #include <fstream> #include <iostream> #pragma comment(lib, "d3dx8.lib") #pragma …

Member Avatar for mitrmkar
0
310
Member Avatar for jasonperez

Hi all. I need to read a .txt document with my c++ program. My .txt is data that I take from a GPS and it has different kind of data i.e. <timeStamp> <status> <latitude> <longitude> <altitude> <numSatellites> <HDOP> <X> <Y> <Z> <X2D> <Y2D> <Xdiff3D-2D> <Ydiff3D-2D> <NMEA_GGAstring><CR> and the information is …

Member Avatar for jasonperez
0
125
Member Avatar for winterx

Hello, I have a question. i have to write a program that cvalculates the average number of days a company's employees are absent. The program should have the following functions: A functcion called by main that asks teh user for the number of employees in the company. this value should …

Member Avatar for winterx
0
243
Member Avatar for camproject

I have written the below code to create a modaless dialog.what to do to view the dialog?it just blinks and goes away... [code]combodlg cd= new combodlg(this); cd.Create(IDD_DIALOG1, this); cd.ShowWindow(SW_SHOW);[/code]

Member Avatar for mitrmkar
0
75

The End.