49,757 Topics
| |
ok my teacher wants me to write a program using these instructions : A small airline has just purshased a computer for its new automated reserations system. You have been asked to program the new system. You are to write a program to assign seats on each flight of the … | |
i am using boarland c.and i want to know how to generate random numbers...is there any functions which allow me to do this? | |
Hi, noob on board. I have some issues with the spliting data according to tab. What i need is to grab multiple inputs from a txt file and generate it into result txt file. the input file reads like; Johnny Bravo /tab S1234567 Systems /tab/tab DT012 VB /tab/tab DT234 Adv … | |
I have to write a program for school that has user input ten movie titles and their corresponding ratings. This program must use parrallel arrays. There is more to the program but not needed for the issue I am currently having. I cannot seem to get the string for the … | |
Hello there, I have here a bit of confusion with fread. I have here a .cue file generated in windows. I tried to read through the entire file in windows and when I printed the buffer, it gives me the correct content of the file, but when I read it … | |
Basically me and my friend are making a C++ hangman project in our programming class and we're having troubles trying to find a way (with our limited knowledge) on how to display certain letters if their guess is correct. E.G ____ __ (they input the letter i) displays __i__ _i … | |
How important are data structures in C++? I'm majoring in networking and going to grad school for MISM with a focus in networking. If I have a firm understanding of C++ concepts such as encapsulation, inheritance, recursion, polymorphism, templates, and exception handling will topics in data structures benefit me at … | |
Could someone explain the difference between Overloading, Redefining, and Overriding functions? A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them. | |
I am a newbie and have been working on this project for several days. I have received help thus far from Dani and it's been fruitful. The project entails a "memory matching" game with 16 cards, labeled 1-8 in pairs. The cards are "shuffled" and placed face down on a … | |
i have been fooiling around with my program for class trying to get it to work, but now i get this error message: error C2064: term does not evaluate to a function taking 1 arguments it is referring to this part of the program: num = (rand() + time(0)) % … | |
A common memory matching game played by young children is to start with a deck of cards that contain identical pairs. For example, given six cards in the deck, two might be labeled “1,” two might be labeled “2,” and two might be labeled “3.” The cards are shuffled and … | |
I need help with the system level requirement for Currency Conversion | |
"hello world". i have a question about gui programming in c++ or java. i would like to have a basic tutorial about gui's. could anyone help me about this. thanks! i am a k4Q3A | |
Gang, I am so confused by all the descriptions of different Visual C++ stuff, API, MFC, I don't even know how to tell you what I am trying to use - other than: I created a Windows Form Application using Visual C++ 2005 Express Edition. I have a textBox1 which … | |
This is the code ive got so far [code=cplusplus] #include <iostream> int main() { int a[10] = {0}; //sets an array of ten zeros int x; //intialises x int y; //intialises y std::cin>> x; //reads in x input std::cin>> y; //reads in y input if ( -1 < x && … | |
here is my current code: [CODE]#include <iostream> using namespace std; int bubbleSort(int [], int); int selectionSort(int [], int); void showArray(int [], int); const int SIZE = 20; int main() { //The array with unsorted numbers int numbers[SIZE] = {23, 44, 2, 6, 15, 70, 45, 80, 46, 30, 0, 11, … | |
Before I write this, I realize there are way better ways to accomplish what I am asking, but I am JUST wondering if it is possible to do it the way I am asking. I have a main function called system. The system has a menu and depending on input, … | |
I overheard a conversation in a class the other day about someone being able to "look" into various classes and data storage types and see what is being stored as you run the program. I understand this can be done using the traditional ways of adding breakpoints and such, but … | |
Could anyone help me with an issue that I have? I have a program that reads from a data file using an array and the data is structured as a long interger. I am trying to break up a long interger in to pairs i.e 141251 into 14:12:15 using c++. | |
Hey, I am somewhat new to C++. I'm not sure if this is something that is even possible with this programming language, but I am very curious. Okay, so the gist of what I want to do, is be able have an input through the microphone jack on the sound … | |
i just received some help from zandiago it his help was great and i thank you. when i incorporated the info into my program i received an error when building the solution. it was only one error. it was error C2447: '{' : missing function header (old-style formal list?) the … | |
Can someone please help me with this? I have been struggling with this for days now, and for some reason, my instructor's help is not working for me. I am not sure if it is because he is from Germany and I am taking courses on-line, or if it is … | |
20 student apply an exam, the mark of the exam is out 10, write a C++ program to do the following: 1- read students grades and store in student _ grade array. 2- find the frequency (number of occurrences of each grade. 3- find the mode (number that occurs most … | |
How to choose one element from each array., Which A(i)+B(i)+C(i)+D(i)+E(i)+F(i) must equal to 10. __________________________________________________ i A B C D E F __________________________________________________ 1 3 2 3 3 2 4 __________________________________________________ 2 6 9 4 24 5 7 __________________________________________________ 3 11 28 5 81 10 12 __________________________________________________ 4 18 65 … | |
i'm trying to read from a text file and store it into a STL List. i able to read from the file but when i wanted to print out my list i get an error - [B]primary-expression before '>' token [/B]which is pointed to the text in red. am i … | |
Hi all, i'd like to ask anyone here who may help me solve this problem i compiled an apps which records when is the last time user make an input, either with keyboard or moving mouse, thru' GetLastInputInfo API however, this can't works whenever user logged on as different using … | |
Hi Guyz, I had to create a program w/c objective is to omit a certain tag in xml file. the only thing in my mind is to search and get the length of the tag. my problem is what if that tag had a certain sub fields: [QUOTE] <team> <cell1 … | |
Hi This is how my input file looks like and i while loop is sorta messed up, i'm a newbie, can someone give me a lil help? Input file: Iron Man 90 80 70 -1 Captain American 90 80 70 60 -1 Spider Man -90 Phil O'Sophy 72 81 63 … | |
Okay, i am very new to Visual C++ and i understand the design and stuff but what i don't get is where do you put the actual c++ code to tell each thing what to do? And by the way does anybody know a good visual c++ tutorial?? | |
I am now writing a new program, a modification of a program I have done before but now with arrays. It is a currency conversion program that converts four currencies. User inputs the starting currency and the program will display all four of the currency conversions for the amount the … |
The End.