49,761 Topics
| |
sir, I have written a program in VC++ which acquires signals from a kit. I want to run that program for only 15 seconds then it should stop automatically.can you tell how to do this | |
What is the difference between "int main(void)" and simply "int main()"? Is "int main()" acceptable? | |
Hi there guys I am looking for a way on how I can increment an object from a structure which is an integer type. the string types I have Increment well but the int types do not. it says int[int] is invalid for array subscript. The red font on my … | |
hi i hope you to help me . my teacher in introduction to programming concept course ask me to make a small realy small compiler that i did not study before .. i don't have any idea about compiler never if you can give me tutorial about it ..plz i … | |
Hello guys. I currently code in C++.But I want to gain knowledge of internals of C++.So , I want to analyse my each and every program in ASM. I use Windows 7 platform and code::blocks.Please provide necessary information or tools , which can help me in this regard. Thanks! | |
I have a C++ standard related question. Let's say I have 2 derived object D1 and D2 (which may contain class D virtual functions) of an identical class base B. Now, I create base pointers bpD1 and bpD2 to those objects. 1) Are bpD1 and bpD2 *guaranteed* to be different … | |
Guys I need help. When I am already done inputting the needed information, when it comes to outputting file stream to a notepad it stops and says "program.exe has stopped working. windows is checking for a solution" and there is a loading bar. please help i don't know what I … | |
Hey guys, I'm writing a program for a class that basically is a menu that allows you to add people, delete people, change info, locate them by ID and last name, print the list, load the list from a file, and save the list to a file (in that order … | |
Hi there guys I need a little help about separation of two worded strings. Below is a program that will ask a user to input first name, middle name, and last name. Whenever I input a two worded string in the "Enter First Name" part, for example: "Michael Jordan" and … | |
hello I have build a high score list that asks the user to enter name and score and then sort the list so the score comes in the right order. My problem is that the sort function only works once, the second time I enter name and score the list … | |
Hi, im currently doing a pacman game in c++ as a project. im currently not using graphics but only using the console for simple representation. right now, I'm having problems concerning detection of pellets. Im a bit confused why it detects it as walls even though i check if the … | |
Can someone explain this excerpt from a book I'm studying: [CODE]char phrase[] = "Game Over!!!";[/CODE] [U]BOOK:[/U] [I]"C-style strings terminate with a character called the null character to signify their end. You can write the null character as ’\0’. I didn’t need to use the null character in the previous code … | |
How to determine the encoding of a text file? And are there any tools to handle the content of a text file independent of its encoding? | |
I need to make a SIMPLE BASIC program that plays crabs [code] #include<iostream> #include<string> #include<ctime> using namespace std; int main() { int money, i, wager, roll, roll1, roll2; string name; char bet, R; cout <<"Lets Play Craps!" << endl; cout << endl; cout <<"This program stimulates a session at a … | |
The following is the code for my program that is supposed to choose a random number and then get the user to guess it by using the basic hints. It seems like it should work but it keeps coming up with the error:'else' without a previous 'if'. it is getting … | |
This is just a quick question about when calculations are performed in a line of C++. Say I have the following block: [CODE]int numItems = 0; inventory[numItems++] = "sword"; inventory[numItems++] = "armor"; inventory[numItems++] = "shield";[/CODE] the ++ operator increments the array number of inventory AFTER it reaches the ; operator? … | |
Hello Im am trying to write a high score list . The user is suppose to enter name and score that will be sorted.. like Emma 500 Andy 400 Linda 300 there will be room for five names on the list... I know how to make the program work to … | |
I have a Visual C++ console application (I am using windows Vista, Visual studio 2008). When executing the program i don't want to see the Console popping up. How do i code this. I tried simply removing all cout and printf statements but yet this didn't help. Need help here. | |
I don't understand why it is allowed to declare variables in a while or for loops. For example this is allowed (or at least compiles ??) [CODE] for(int i = 3; i > 0; i--) { int d; }[/CODE] and this will give you a compiler error; [CODE] int d; … | |
Hi there I need your help about a program because I am not quite sure if there's still a need for me to use streaming in this program here it is: [COLOR="Green"]Create a program that will prompt the user to enter how many students she/he wants to enrol. After the … | |
Any function for changing the text color in Microsoft Visual Studio 2008? Thanks. | |
Hi there friends I have an inventory program that stores all the data entered by a user. I am having trouble trying to output the infos entered. I tried to use for loop but no luck. Mine only outputs the last set of keyed in information. It will not output … | |
hi i know positive examples for > stack unwinding, > constructors, destructors and exceptions handling, > exceptions and inheritance. tell me some negative examples of these. thnx for guidence | |
When I execute this code, I get the following error: [ICODE]‘Block’ does not name a type[/ICODE] This is the code: Block.h [CODE] #include "Area.h" #ifndef Block_H #define Block_H #ifndef Cube_H #include "Cube.h" #endif #ifndef nullptr #define nullptr 0 #endif class Block : public Area { int ID; int BlockType; Cube … | |
hi, i have written this code. [CODE]#include<iostream> #include<windows.h> #include<mmsystem.h> #include<stdlib.h> using namespace std; int main (char argc) { PlaySound("TardisTest1.wav", NULL, SND_FILENAME | SND_ASYNC); system("pause"); return 0; } [/CODE] and for some reason, when the program runs, all it does is system("pause); and it doesnt play the sound. I have my … | |
| |
Here is a snippet [code=c] myfunc (VARIANT *dmessage){ long len; len=strlen(dmessage); [/code] I get error : cannot convert parameter 1 from 'struct tagVariant' to 'const char *' =============== I want to pass a pointer to a function. I have tried, below, but I got a differ error. [code=c] myfunc (char* … | |
Well guys, I'm having a hard time learning enough about ANNs to apply them to a problem. Firstly my general understanding is that the network adapts during the "training" phase to produce the correct output with the given set of inputs. This is obviously useful with image recognition, or handwriting … | |
Hello everyone: OK, so I'm working with a hard head company and hard head boss who want until now to work with DOS, I want to make my programs with a good GUI environment, I tried to work with MGUI it's good but it has its quirks. Then I tried … | |
Hey All, this is my first post on the forum so I want to send my greetings to all of you :) . Actually I am studying biomedical engineering and I am moving to my last year in the school, and I have to search for a graduation project idea, … |
The End.