49,757 Topics

Member Avatar for
Member Avatar for scholar

Hi, I am using a 16-bit compliler and i wanted to execute a dos commmand through c++ using system() command.I wrote the following code but it didn't help [code=cplusplus] #include<process.h> void main() { system("c:\\windows\\system32\\Notepad"); } [/code] I even tried wid 'system("notepad")' but even tht didn't run the command.Plz tell me …

Member Avatar for WaltP
0
247
Member Avatar for Stefano Mtangoo

Hi all, Just curious. If I want to write a library to play almost all common audio formats, what do I need to know? an it should be cross platform. I want to implement in C++ library like bass. But that will be possible only if I will be ready …

0
70
Member Avatar for blahhaha

I am trying to create a sudoku generator in turbo c++ for a project. This code is not working for some reason....Please help! [code] #include<iostream.h> #include<conio.h> #include<stdlib.h> int chkcol(int u[x][y]); int chkrow(int v[x][y]); int chkbox(int w[x][y]); void main() { textcolor(WHITE); textbackgroundcolor(MAGENTA); clrscr(); int sudoku[9][9]; for(int i=0; i<9; i++) { for(int …

Member Avatar for WaltP
0
124
Member Avatar for Ultratermi

Hey, i wanna get the text from a NOT selected index. Does anybody know how to do it? Thx! Daniel

Member Avatar for Ultratermi
0
133
Member Avatar for Stefano Mtangoo

Hi All, Till now I haven't done any serious debugging (Jump to line, blah blah). What I have done so far is read error and try to decode. Now I want to use variables form stack etc. In WingIDE/Python I will click on stack and see variables and what they …

Member Avatar for Stefano Mtangoo
0
227
Member Avatar for ppotter3

Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. …

Member Avatar for ppotter3
1
7K
Member Avatar for supernater

Hi there, I'm making a settings dialog for my application but I'm having a problem figuring out how to implement it. I'm trying to make a settings dialog that has a treeview on the left-hand side, clicking on the nodes of the treeview would switch the dialog background based on …

Member Avatar for supernater
0
90
Member Avatar for jayrana

I don't understand what the following functions does in the code random walk ( sample programes in the player/stage library) could someone please be kind enough to help me understanding it 1. in the following one why dont we just use 0 whats the need to use gindex? [CODE] if …

Member Avatar for Fbody
0
184
Member Avatar for rsaska

Hello, I am trying to create a function that compares lower and upper bound IP addresses. If the lower bound IP address is greater than the upper bound IP address I would like the program to 1. display the error 2. terminate immediately Problem is, when I use exit(0) to …

Member Avatar for rsaska
0
107
Member Avatar for dchunt

I want to read characters(256 of them) from a file and put thier numeric value in an array.Then i want to send 16 characters in batches from the array onto a loop in successive steps to perform operations on them. My problem: First i can read the first batch of …

Member Avatar for jonsca
0
98
Member Avatar for chuong3a

How to install OpenGL for CFree 4.1 in Win7. and how to use graphics.h library in Cfree in Win7. Please help me, thanks.

Member Avatar for gridandy
0
188
Member Avatar for team_ferrari22

Hi, Does any body know how the 'NdrClientCall2(...)'(is the function in RPCRT4.dll) function can be called in code or how it can be used. We gone through the MSDN help - [URL="http://msdn.microsoft.com/en-us/library/aa374215(VS.85).aspx"]http://msdn.microsoft.com/en-us/library/aa374215(VS.85).aspx[/URL], but didnt get any examples/samples how to use this function. Please provide help. Thank you.

0
64
Member Avatar for RLB31384

I'm trying to find some good websites with questions such as "Create a program that does blah blah.." And then gives the solutions so I can program and then compare my program, or use it for help. I have taken C++, and C++ advanced, data structures (taking advanced data structures …

Member Avatar for nischalreddy27
0
127
Member Avatar for atticusr5

hello all I am a second semester c++ college kid so bear with me I am writing a program that takes in bank account info, sorts it, prints it, and then prompts the user if they would like to view any specific records via the account number or the name …

Member Avatar for vmanes
0
101
Member Avatar for rena0514

My numbers are not being read in to the two dimensional array correctly and i'm completely lost :confused: [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int SIZE_MONTH=4; const int SIZE_DAYS=31; int main() { float temperatures[SIZE_MONTH][SIZE_DAYS]; string months[SIZE_MONTH]={"January","February","March","April"}; ifstream inFile; inFile.open("temp1.dat"); if (!inFile) cout<<"File not …

Member Avatar for vmanes
0
154
Member Avatar for shilpa_B

Hi all.. please can any one post 5/6 hard decision viterbi decoder in c.. its urgent.....

Member Avatar for shilpa_B
0
94
Member Avatar for kennethjohn

The inventory of a shoe store lists shoes by stock number. With each stock number, there is a associated style number in the range of 0 to 50, the number of pairs in each size (sizes range from 3 to 14) and a price. A program is to be written …

Member Avatar for Salem
-1
211
Member Avatar for kellyandtopher

When I load Visual Basics, which has VB, C++ and so on, I have problems with the internet. Errors come up on web sites and not allow me to use there sites, ie... ebay. I need to know what the heck I can do to stop the errors so I …

Member Avatar for WaltP
0
79
Member Avatar for smarty_t2

Hello, I am using turbo c++, dos one, and am making a program, but theres a problem... My program runs on an infinite loop and has a small delay in between...It takes user's keystrokes at the start of loop like this, [CODE]int in; while(1) { if(kbhit()) in=getch(); . . delay(100); …

Member Avatar for VilePlecenta
0
755
Member Avatar for lima01

Hello, I am making some program, and have some problem, i want to list all files that are on HD, and if I want to list all files in C: with this command with only one backslash after C:( system(dir C:\ /s/b/a-d> C.txt)) it only list files that are in …

Member Avatar for lima01
0
162
Member Avatar for Talguy

I can write a procedural application fine with graphics just fine. I have a new project where I am finally going to learn how to code with concurrency in mind. So I want to make an alarm clock that can have repeating alarms and selectable alarm tunes through itunes or …

0
62
Member Avatar for panagos

I try to find a way to find the minimum of an array of numbers different type (int,float,double..) i have written this [CODE] #include <iostream> #include <vector> #include <iterator> using namespace std; template <class T> T min(vector<T> a()) { int i = 0; T min = a[0]; vector<int>::iterator it; for( …

Member Avatar for dusktreader
0
196
Member Avatar for gowth08

Hi all, My code for SHOP is as follows, problem description [url=http://www.spoj.pl/problems/SHOP/]here[/url]. [code]#include<iostream> #include<queue> #include<climits> using namespace std; class pt{ public: int _x,_y,_cost; pt(){} pt(int x,int y,int z):_x(x),_y(y),_cost(z){} int print(){ printf("%d %d %d\n",_x,_y,_cost); } }; int dx[]={0,-1,0,1}; int dy[]={-1,0,1,0}; int main( ) { int M,N; while(scanf("%d %d",&N,&M)!=EOF){ if(!M&&!N)break; bool flag=false; …

Member Avatar for Ancient Dragon
0
164
Member Avatar for GooeyG

This program involves tree structures. I need to teach the program three new animals. Also, i need to ask several new questions to guess the right animal too. The problem that I'm having is that I don't know how to get the question to come up when the user enters …

0
49
Member Avatar for asa88

here is my class file: [CODE] #ifndef BANGER_H #define BANGER_H class Banger { private: static int objectCount; char* driver; char* car; int hits; bool mobile; public: Banger(); Banger(char*,char*); Banger(const Banger &obj); void setDriver( char* ); void setCar( char* ); void setHits( int); void setMobile( bool); char *getDriver(); char *getCar(); int …

Member Avatar for asa88
0
115
Member Avatar for Kennych

~I need to do the following ~ Take Input from number assign it to variable maxNumber ~ Create variable called randomN and assign a random number from 0-maxNumber to randomN -C++ Please need help thank you.

Member Avatar for Ancient Dragon
0
59
Member Avatar for SpyrosMet

Can anyone please tell me how to create a simple window? If possible can you provide an example? Thank you.

Member Avatar for Ancient Dragon
0
100
Member Avatar for weaslem32

I need help with an assignment. I have to modify the program below to determine the number that was entered the most times in a row and display the output. I can not use files or arrays. I am having trouble with the logic and need some guidance. Thanks. [CODE]#include …

Member Avatar for dusktreader
0
73
Member Avatar for scott6480

I am having trouble with myRectangle2 taking the values I am assigning to it. The myLine2 value works just fine. Can anyone spot what I am doing wrong? I have stared at this for too long and now I am second guessing everything I have already done. Any help is …

Member Avatar for WaltP
0
128
Member Avatar for BobbieJean

Hello, I'm new here but I need a little help please. I've gotten this program to mostly work correctly except for what seems like one small detail. My program is supposed to ask the user to enter a file name, open it and display its contents 24 lines at a …

Member Avatar for WaltP
0
657

The End.