Forum: C++ May 1st, 2008 |
| Replies: 6 Views: 673 Does the infile consist of strings and characters jumbled? |
Forum: C++ Feb 18th, 2008 |
| Replies: 3 Views: 1,327 Just so that you can verify. Please see the following snippet (You'd have to change the dates to your specifications):
http://www.daniweb.com/code/snippet792.html |
Forum: C++ Feb 12th, 2008 |
| Replies: 25 Views: 5,492 Think it out a bit more, you almost got it:
Let say 123 is the number you enter
after (123%10)*100+(123%100)/10+(123)/100
you'll get 321 |
Forum: C++ Dec 18th, 2007 |
| Replies: 16 Views: 2,171 A random number guessing game...or a program that can allow you to tell the distance between two major cities in the world? |
Forum: C++ Dec 13th, 2007 |
| Replies: 9 Views: 917 Get a torch and flash your own light...you got to do your work, what happens when you have your final exam/tests...are you going to post those questions here? |
Forum: C++ Dec 12th, 2007 |
| Replies: 9 Views: 917 Interesting...well, a few things:
You'll need the headers and main function as AD pointed out.
2. You need to declare a few variables.
3. You need to create input/output statements..i.e.cout<<... |
Forum: C++ Dec 7th, 2007 |
| Replies: 6 Views: 3,817 Could you please your code for the benefit of the entire daniweb community! Glad your program is working! |
Forum: C++ Dec 4th, 2007 |
| Replies: 6 Views: 3,817 Good day and welcome aboard. With regards to checking to see if a char is a letter, we use the isalpha() function. It's also good to post your code here, so that we can look it over. More information... |
Forum: C++ Nov 17th, 2007 |
| Replies: 15 Views: 4,220 Antwane.....welcome aboard.I reccommend taking a look at the Rules & FAQ for the daniweb forum. Please do not re-open old threads....i'm pretty sure you could get some help from the 2 previous pages.... |
Forum: C++ Nov 12th, 2007 |
| Replies: 2 Views: 4,037 welcome aboard....please post what you've got so that w can guide you. Here is some pointers:
1. start with your headers, you'll need to figure out which ones you'll need:
#include<iostream>
... |
Forum: C++ Nov 6th, 2007 |
| Replies: 57 Views: 13,047 if u bought it....u wasted your money....you can get FREE compilers |
Forum: C++ Nov 6th, 2007 |
| Replies: 57 Views: 13,047 |
Forum: C++ Nov 6th, 2007 |
| Replies: 57 Views: 13,047 I don't know why the compilers aren't working on Vista...i've got vista on my laptop. I'm able to use devC++ & microsoft's visual and they both compile programs ok. What problem you get exactly when... |
Forum: C++ Nov 1st, 2007 |
| Replies: 8 Views: 2,426 If you've got the correct answer....and the probelm is solved....please post it for the benefit of the entire community. |
Forum: C++ Nov 1st, 2007 |
| Replies: 5 Views: 2,487 I'm not talking about the formatting for your class...i'm talking about formatting the code for the forum....again...read the two announcements at the top of the page... |
Forum: C++ Nov 1st, 2007 |
| Replies: 8 Views: 2,426 Good day and welcome aboard. A few things.
You could use something like this:
int smallestIndex( int arr[], int size)
{
int smallestIndex=0;
int temp=arr[0];
for(int... |
Forum: C++ Nov 1st, 2007 |
| Replies: 5 Views: 2,487 Welcome aboard..hope you'll enjoy it here. Your formatting is horrible...please look at the two anouncements at the top of the page, so you can place your code in tags. Also, in the future, before... |
Forum: C++ Oct 30th, 2007 |
| Replies: 15 Views: 3,631 please post your latest code |
Forum: C++ Oct 28th, 2007 |
| Replies: 3 Views: 1,256 This specific problem has been addressed before. In the future, please search the forum before you post, chances are that someone else had that assignment/problem. Please take a look at the following... |
Forum: C++ Oct 22nd, 2007 |
| Replies: 8 Views: 1,805 Please post what you've tried so we can tell you where your error is. Welcome aboard |
Forum: C++ Oct 12th, 2007 |
| Replies: 11 Views: 998 well, if you change the 'int' to another number characteristic, you'll bypass some of the restrictions. What restrictions are you trying to bypass or implement? |
Forum: C++ Oct 12th, 2007 |
| Replies: 11 Views: 998 Take a brief look at this:
#include <iomanip>
#include <cmath>
#include <fstream>
#include <string>
#include<string>
#include<iostream> |
Forum: C++ Oct 12th, 2007 |
| Replies: 11 Views: 998 A few things. A decent start, but remember to include the header <cmath>. Another thing, are you wanting to determine the lenght of the number that the user inputs? |
Forum: C++ Oct 12th, 2007 |
| Replies: 11 Views: 998 A few things: We only provide help, we don't give away codes. You must also try to think about it on your own.
Minimum value for a variable of type short. –32768.
Maximum value for a variable of... |
Forum: C++ Oct 2nd, 2007 |
| Replies: 11 Views: 2,144 What's the purpose of the '^' (carot) symbol in C\C++? |
Forum: C++ Sep 7th, 2007 |
| Replies: 10 Views: 1,552 I guess that his professor was real adamant in him using while loops for the program instead of the good 'ol for loops... |