Forum: C++ Dec 2nd, 2004 |
| Replies: 5 Views: 5,428 so would it be something like:
if (isspace(words))
cout << "the total number of words in the sentence is: "; << words++ << endl; |
Forum: C++ Dec 2nd, 2004 |
| Replies: 1 Views: 2,962 Hi, I'm supposed to create a program that does the following:
A corporation has six divisions, each responsible for sales to different geographic locations. Design a divsales class that keeps the... |
Forum: C++ Dec 1st, 2004 |
| Replies: 5 Views: 5,428 Can anybody help fix my source code or show me how to properly write this program?? I'm really at a loss here and I've been going through my books for hours and cannot figure it out... thank you. |
Forum: C++ Dec 1st, 2004 |
| Replies: 5 Views: 5,428 Hi everyone,
I have a project for my class. I have to write a function that accepts a c-string as an argument and returns the number of words contained in the string. For instance, if the string... |
Forum: C++ Nov 8th, 2004 |
| Replies: 5 Views: 26,737 |
Forum: C++ Nov 8th, 2004 |
| Replies: 5 Views: 26,737 I don't quite understand. Sorry , I'm pretty new at this... I worked on some more coding.. is this what you mean?
bool is_upper ( char ch )
{
static char upper[] =... |
Forum: C++ Nov 8th, 2004 |
| Replies: 5 Views: 26,737 Hi, I am stuck and my head is spinning with this project that I am working on for my beginners c++ class. Can someone show me how to work this? Here is the problem:
Write a function that uses an... |
Forum: C Nov 8th, 2004 |
| Replies: 1 Views: 2,646 Hi,
I seem to have erased one of my .cpp files and I only have the .exe file left.. Is there any way to convert my .exe file back to a .cpp file ? Thanks. |
Forum: C++ Oct 19th, 2004 |
| Replies: 7 Views: 1,864 Hi Stack,
Thanks again for the tips. Sorry I forgot to include my code. This is what I have so far.
// This program allows a user to enter information and displays the information
#include... |
Forum: C++ Oct 19th, 2004 |
| Replies: 7 Views: 1,864 Hi, thanks for all the insights... I tried modifying the code but there might be some error in my if/else if statement because whether i enter a positive or negative account balance, my current... |
Forum: C++ Oct 19th, 2004 |
| Replies: 9 Views: 2,820 Hi, sorry to trouble you guys again but I am still getting a blank program when executing. I've added the cin.get() code as suggested but it's still not functioning, thanks.
#include <iostream>... |
Forum: C++ Oct 19th, 2004 |
| Replies: 9 Views: 2,820 Thanks for the quick response. I will be sure to look into those books. I've changed my code to the following but when I am executing the program it just says "press any key to continue" and closes... |
Forum: C++ Oct 19th, 2004 |
| Replies: 9 Views: 2,820 Hi Stack overflow:
Thanks for all the heads up. I followed your instructions but I am getting an error when executing :
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external... |
Forum: C++ Oct 18th, 2004 |
| Replies: 9 Views: 2,820 Good evening all, I am now working on a project for my intro c++ course and I'm having alot of difficulty understanding how to make a class program. I've been looking over the text but I am still... |
Forum: C++ Oct 18th, 2004 |
| Replies: 7 Views: 1,864 #include <iostream>
#include <iomanip>
#include <string>
using namespace std;
struct account {
char name[50];
char address[50];
char location[100]; |
Forum: C++ Oct 18th, 2004 |
| Replies: 7 Views: 1,864 Hi, I am having some problems with a program I'm supposed to write: here is the program I am supposed to write:
Write a modular program that uses a structure to store the following information... |
Forum: C++ Sep 28th, 2004 |
| Replies: 3 Views: 1,907 I've written the program out but I'm not sure on how I can get the largest and smallest # to display.. can anyone help? thanks.
Write a program with a loop that lets the user enter a series of... |
Forum: C++ Sep 27th, 2004 |
| Replies: 2 Views: 2,247 Hi guys, having a little problem with my first c++ course and I'm hoping someone can help me out abit here.
Write a program that asks the user for a positive integer value. The program should use... |