No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Student of Life
- PC Specs
- Which One?
Re:
Hi, How can i make c++ compiler under windows or Linux. | |
Can someone please explain to me just exactly this try/catch is doing? It doesn't seem to make any sense to me. Thank you in advance. case '\r': if (Choice==(CancelIndex+1))return; try{(*Action[Choice-1])();} catch(...){} system("cls"); Choice = 1; break; case char(27): if ((CancelIndex+1)==ItemCount)return; try{(*Action[ItemCount-1])();} catch(...){} Choice = 1; break; | |
This may seem like an odd question, I'm not sure? I have been programming exclusivley using Dev C, and I now have to complete a project using Visual C++ 2005. I am trying to figure out just exactly how to properly use "handles". Maybe I'm barking up the wrong tree? … | |
Re:
I was wondering which would be better to use for the allocation of memory. The memory that is being allocated will almost certainly have to be reallocated several times. I am making a string class (how original :) and I am going to give it dynamic memory allocation (whether or … | |
Re:
Hello all, this is my first post. My problem is with division and/or the way i am declaring variables. here's my code: [code=cplusplus] #include <iostream.h> int main () { int minutes; float hours; float minutes_late; cout << "How many minutes late are you? " ; cin >> minutes; hours = … | |
[code] [COLOR=green]#include[/COLOR][COLOR=green]"stdafx.h"[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<cstdlib>[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<iostream>[/COLOR] [COLOR=green]using[/COLOR][COLOR=green]namespace[/COLOR][COLOR=green] std;[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] tmain([/COLOR][COLOR=green]int[/COLOR][COLOR=green] argc, _TCHAR* argv[])[/COLOR] { [COLOR=green]// Let's Declare Variables[/COLOR] [COLOR=green]int[/COLOR] Num_Pegs; [COLOR=green]// Total number of pegs to a side[/COLOR] [COLOR=green]int[/COLOR] Hold_Und; [COLOR=green]// Hold underscore location[/COLOR] [COLOR=green]// User Enters Number of Pegs[/COLOR] cout <<[COLOR=green]"Enter Number of Pegs:"[/COLOR]; cin >>Num_Pegs; [COLOR=green]// Array to create a … | |
Re:
I have an assignment due tomorrow, my professor hasn't taught the class much of anything other than what other careers there in the programming field and how other careers differ from programming. He hasn't been of much help at all and I'm at a total loss of how to start … | |
Re:
hey everyone, im new, and i have a simple question. im writing this basic code for my class to input six different check amounts, then give the total and average. so far i have it so it works perfect with whole number. the only problem is, the numbers i need … | |
|
Re:
I am running Ubuntu and compiling my C++ code using g++. For some reason I can't get it to compile my source code using VOID MAIN. It is always telling me that I must use INT instead. This isn't life threatening, but I was just wondering if g++ just doesn't … |
Take a look at this code, why will it not display "CleanUP" after it exits Main? I have tried writting it many different ways. Simple code, unexpected results? Initialize HelloWorld.......No Clean Up? #include <iostream> using namespace std; class display { public: display() { cout << "Initialize\n"; } ~display() { cout … | |
This may seem like a dumb question, or maybe I just feel dumb asking it. I have spent hours trying to figure out how to retreive the current MM/DD/YYYY from the system output in that format. strftime? time function? I'm spent! Any help would be great..... | |
I have arranged this code in many different ways. I can't seem to make it simply print the array. I have read alot about pointers and arrays, but the explanations are scetchy at best. What exactly are the rules for properly pointing to an array? #include <iostream> using namespace std; … | |
Any help would be greatly appreciated. Does not recognize cat's game also goes into infinate loop when you try to use the same box twice? I have spent hours trying to figure it out. I know it something simple. Any ideas? [code=cplusplus] //Board Display Class - Tic-Tac-Toe Program #include <iostream> … | |
Can anyone help me with this code? Most of it was written by me for homework. The switch portion was written by my instructor, and it is just pain confusing to me! I beleive I can write a TTT program from scratch (Won't be accepted) easier than cobbling this together. … |