thanks! that worked...
Type: Posts; User: jpipitone
thanks! that worked...
The program runs fine if I compile it with Visual C++ with the new code - but it still closes immediately if I run the executable.
I have written a very simple app with Visual C++, and when I compile the program, it runs fine. However, the window closes right away when I'd like for it to stay open until I hit a key....
...
I have a class named "Yen" and I need to overload the prefix and postfix -- operators for that class.
Any ideas?
Can I use this code to throw an exception using the pre-compiled <exception> header?
#include <exception>
void f ( )
{
throw exception(42, "Oh no, not again.");
}
Here's some source code that I've written a while back (it's actually the header source code)
How should I start to test this header file? (in other words, I need a driver to test teh CExeption...
thank you sir - i'll let you know how hte program goes as i'll be needing help thanks!
What's the easiest way to obtain an array element from a user and placing it into memory? As a result, I need to read double values and call an already written function to read these values.
Help?
OK - I got the print the largest value working, now I'm confused as to how to print the smaller value....
help?
#include <iostream.h>
void prompt();
void print(); ...
OK - The highest value is being returned -1.....how come?
I'm stuck
#include <iostream.h>
//using namespace std;
OK - I have it somewhat now...
When the program prints, I wanted it to print all of the items of the array, it prints -858993460 instead of the numbers I've typed in...any ideas?
#include...
Thanks - i'm horrible at syntax help!!
#include <iostream>
#include <limits>
using namespace std;
int main()
I do appreciate your help man, believe me!
tha'ts a lot of code for something that seems so simple....do you have anything else?
OK - i've been working on this for a few minutes, I want this to keep looping until the user has entered 10 items....
Then i want to start displaying the values i need to:
#include...
I need source code for a program that inputs an int from a user, then I need to allocate an array of doubles on the free store.
I then need to iterate across the array and display all of the...
I'm also required to develop a clock class that represents time using three int variables - hours, minutes, and seconds.
I need to:
1) set the time
2) return the time
3) print the time
4)...
I've tried that in the past, and it says "Wrong input!"
I've also heard from a few people that I should change it to:
while((ch == *str))
I've also corrected the beginning of my...
What should top be set to?
OK...my function prototypes are now:
/* Function prototypes */
NODE* init_list(void);
int insertnode(NODE*, float value, char itemName[]);
int deletenode(NODE*, float value, char...
Ok...I'm trying to grab (scanf) an itemName and a value (price) from the user - this program compiles, but when i try to run the program, it says :
1) linkList error LNK2019: unresolved external...
This compiles and runs correctly, but it says "The value is 0" Am I not returning what I should be?
Thanks for any help
#include <stdio.h>
#include <string.h>
#include <stdlib.h>...
The Problem:
I need to search and delete social security numbers from this already written code that i have. I also have to error check the social security numbers also.
I need to search and delete social security numbers from this already written code that i have. I also have to error check the social security numbers also.
#include <stdio.h>
#include...