51,593 Topics
![]() | |
Hi Everyone, I am new to C/C++, I would like to perform the following task: 1. Build or model a wireless nodes for about 10 computers 2. Assign two feature to each of the node e.g. FTP and TELNET, or SMTP and POP3. So that each node can be given … | |
I'm trying to switch from Turbo C++ to MSVC++, I've gotten most of the differences in coding and libraries worked out, though I keep getting this problem and I have tried to find a solution but I haven't been able to find one after 30 minutes of searching for it. … | |
I would like to write a program that creates a relational database that handles queries using only C++. What would be the most appropriate method? Using arrays, linked lists or something else? Please advise. | |
OK, i am using Microsoft Visual C++ 2005 Express Edition, and am using the Window Applications part of it (compared to using Command Prompt to display programs) Now, as for the program, i am making a password machine that tells users to enter a username and password, my program will … | |
Hi all, finally the first part of my program is working, it plays a MIDI melody extracted from a database. How did I do it? A little MySQL++ and the Play midi voice article posted in the code snippets. But now I'm facing a problem... I am supposed to play … | |
Guys I have to deceipher this code but I can't make heads or tails out of it cause it closes the comand window before i can see anything I tried adding a system pause at the end but that just gave me an error. [code=syntax] // Program 6.9: Validate a … | |
Hey .........Would any 1 like to tel me that if the mege sort works at runtime or not.? im giving my code below....Tell me y it is not running in VC++ correctly.....the code given below doesnt have any error in code but when any1 runs it it gives error.....CHECK IT … | |
Hello Everyone, I have started creating an open source database architecture, with a waa, and much more. There is many features that can blow SQL, and access out of the water, including but not limited to: 1) true multi-dimensionalism, 2) array fields 3)File embedding, of 30 or more formats.. 4) … | |
Well i'm trying to implement pawn into my app (pawn the embedded scripting language) and while including the amxprocess.c i get these errors: [QUOTE]Error 1 error C2708: 'push' : actual parameters length in bytes differs from previous call or reference 524 Error 2 error C2708: 'push' : actual parameters length … | |
:sad: Hi! I am a new member on DaniWeb site. And I need your help!!! I just started C++. I have project to do. The user must insert 4 integers. My main problem is that I may not input th digits seperately, but should input the number as a whole. … | |
:sad: for comipiling the c/c++ program my editor is taking so much time for even it is 2 or 3 lines of code also .because of this i am unable to do more progrmas in a day. please help me to do it fast.i am useing tc editor | |
I am writing a class character for an assignment. The class relates to a role playing game. I am getting an error which I don't understand. This error occurs in the default constructor of the implementation file. The dynamic help says that I created an object without creating a pointer … | |
hello, I am using Visual Studio 2005. When I write come C++ code (using iostream header) I get this error when compiling c:\users\jan\documents\visual studio 2005\projects\lesso\lesso\main.cpp(1) : fatal error C1083: Cannot open include file: 'ioestream': No such file or directory What should I do? | |
Does anyone know of anyplace/anybody that teaches C# at the highschool or college level to get students used to a programming language? | |
I have been having difficulty trying to figure out how to read in data backwards. I get the idea, but have no idea how to properly code it since it is string data from a txt file. I was given the basic file to start with, but need to add … | |
:?: what i smeant my linker error in c++.? why it causes in c++? | |
I need to create a decision tree that sorts any three integers in ascending order. This is what I did:[code=c] #include <iostream> using namespace std; int main() { int x, y, z; cout << "Enter three integers: "; cin >> x >> y >> z; cout << "Your three integers … | |
Can someone help me with this? class Note{ private: [INDENT]double Freq; int milisec; [/INDENT]public: [INDENT]Note(); Note(double Fr, int ms){ [INDENT]Freq = Fr; milisec = ms; [/INDENT]}; ~Note(); [/INDENT]}; Ok... now I declare something like this: Note mynotes[MAX_NOTES]; is there a way to find out the array size? Thanks | |
i need to write a program that, There is a file of Beach Boys albums on the internet. Each entry has the following form: Name of album Artists from 1 to 20 names of songs (in cut number order) An album separator line is made up of equal signs Your … | |
hi friends... i need code for notepad program... i'm trying to create a new notepad using c++... i cant complete that... i need code for database connectivity with this program for dictionary use in notepad program.. pls help me guys!!!!!!!!!! ---- ramya | |
Hey All i am making a connect four game. I have done most of the code but need help in some bits 1) Which is how to code to see if there a win from vertical, horizontal or diagonal. - The Grid is 7 by 7. - I no idea … | |
[COLOR=navy]I request to all the programers plzzzz help me out in this assignment.[/COLOR] [COLOR=#000080]its not for me but for my boss's doughter. i made a mistake by deleting it from the USB now she have to submit it within two weeks plz help me Since i have no background in … | |
hi can anyone tell me what do we mean by: system( "PAUSE" ); and system( "CLS" ); in C++ thanks | |
Hi, I'm very new to C++ and I am getting the following error when I try to compile: [Linker error] undefined reference to `CSerial::CSerial()' [Linker error] undefined reference to `CSerial::Open(char const*, unsigned long, unsigned long, bool)' [Linker error] undefined reference to `CSerial::~CSerial()' . . . etc. This is the code … | |
i was just going through some source code and came across the directive [code] #pragma comment( lib, "irrlicht.lib" ); [/code] I got mixed and confusing answers when i read about it in the vc++ documentation. Could someone please explain clearly the purpose or necessity for such code? I do have … | |
Hey everyone, this is a big one. The question has asked that I define functions and then write the function main to test the functions I wrote. I keep getting the following error at my first cout in main: error C2679: binary '<<' : no operator found which takes a … | |
plz help me in debugging a program(urgent).it's the implementation of ascending and descending priority queues using array.i've made a program but it is not functioning properly.the problem is that when i initialize the array in the class the ascending priority queue stores only zeros and the descending priority queue is … | |
[code] void entry(int itemsales1[255][255], int itemcount1, string itemnames1[255]) { int count; char *days[]={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}; cout << "Enter item's name: "; cin >> itemnames1[itemcount1]; for (count = 0; count < 5; count++) { cout << "Enter " << days[count] << " sales: "; cin >> itemsales1[itemcount1][count]; } return(itemsales1, … | |
I can't figure out what I have wrong in teh following program. I am trying to count total characters, vowels, and consonants. I have even worked through it with a friend and neither of us can figure it out. The code follows: [code=cplusplus] #include <iostream> #include <string> #include <cstring> using … | |
Hi, I am making a small software. As a part of the Command Line Interface I am supposed to include the "tab help facility" .Incase the user is typing a command and in between he presses the Tab key, the software should display all the avavilable commands. I am unable … | |
code of genertaing 100 arrays of size 10 with random numbers in it? in c++ | |
I have this class: [code] class Pizza{ protected: string desc; public: Pizza(){ desc = "unknown pizza"; } virtual string getdesc(){ return desc; } virtual double cost(){ return 0; } }; [/code] And one of its subclass: [code] class Small: public Pizza{ public: Small(){ desc = "Small"; } double cost(){ return … | |
Does any one know of a complier that supports the 80 bit long double?? Or do you have any idea how to get one on VC++ 6.0 Thanks | |
Hey all, I'm doing hw, and I did a desk-check for this program and got completely different answers than that of the computer when the program was put into the compiler. The question says to consider the function `defaultParam` void defaultParam ( int u , int v = 5 , … | |
I want to make a query in C++ using the MySQL++ API. Here is my problem, in PHP for example I make something like this: $query = "SELECT * FROM table1 WHERE id = " . $value; In C++ I can't do that. I need a way to make $value … | |
Well, I happened to download Dev C++ on my laptop today ... I jus wrote a simple "Hello World" program .... but when I compile & run ... compilation is successful but the result window flashes & disappears ... Can anybody plz help me with this?????????? Also, how can I … | |
When you output data to the screen do you recommend using cout or printf, I must admit when I first starting using C++ last week I really liked cout. Now I like printf better, It seems easer to format the output like you need it. I am not really sure … | |
I have an Excell file that I need to read to be able to bring the cells into a struct. I have tried using fstream and I get garbage. How can i go about this?? ![]() | |
Hi All,I'm using a C++ client and server of different language.Using sockets for communication.After 10 - 15 hours of successful exchange of information a problem has occurred.Client seemed to send messages to server, but server didn't respond.After few hours, the client was killed.Suddenly, the server started dumping the messages towards … | |
Hello Everyone, My question is pretty basic, i hope. Basically, what i have is an extremely large text file, which acts as a flat file database... in essence. Text file formatting looks like this: CLIENT CODE | CLIENT NAME| CLIENT ADDRESS 1 ... This pattern goes on for about 23 … | |
Hello, I wanna know if there is any way to make a window transparent using Win32 API Thanks in advance, Jan | |
Hi guys, I am working on a program in C++. I need some help with writing objects to a disc and then read the information later. Thank you, | |
I'm using SAMS Book "Teach Yourself "C" in 21 Days" sixth edition. useing the Editor/Compiler that came with the Book. DEV C++ The saubject program that I'm trying to compile is Print_it.c it prints files w/line numbers and when the compiler gets to the first line with "STDPRN" it stops … | |
Hey, I'm writting a program in C that is supposed to be a simple connect four game. I ran into problems when I tried to assign my array connects to a set value. The compiler gave me the error, Invalid indirection. Heres a little bit of the code where the … | |
[COLOR=#0000ff]Hi folks,[/COLOR] [COLOR=#0000ff]I get this error message on this line when I try to count the amount of characters in a string. I wanted to count the characters so I can manipulate how the output is shown. It tells me no argument is made whereas I feel that the particular … | |
I am using debian linux and I cannot seem to get sdl_ttf working. It compiles fine but the program quits due to error checking in the code. It returns false at the ttf_init() part. Do not know if this makes a difference but I got sdl and ttf via apt. … | |
why isnt this program working? [CODE]#include <iostream> #define SIZE 10; using namespace std; main () { char Black,Brown,Red,Orange,Yellow,Green,Blue,Purple,Grey,White; int a; int Color[10]; { int i, array[size]; for (i = 0; i < size; i++) { array[i] = i; } } cout<<"enter the color of the stripe"<<endl; cin>>Color[i]; color[0]=Black; color[1]=Brown; color[2]=Red; … | |
Can anyone help? here is my code: passing an array base list to a function and search for an item. [code=c] #include <iostream> #include <fstream> const int MAX_LENGTH = 10; using namespace std; class IntList { public: IntList(); void GetList(ifstream &data); void PrintList(); int LengthIs(); private: int length; int values[MAX_LENGTH]; … | |
I'm trying to create a general buffer that I can use in my program. It will work with ints as well as strings. So far I've been using a strstream, and it works without a hitch, but I was wondering if there is a way to just create a generic … ![]() |
The End.