Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Re: Assignment 3 July 06, 2006 08:34AM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 08:41AM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 10:24AM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 10:45AM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
else{ for(int a = 0; a < Sentence.size(); a++){ // notice < instead of <= if(isVowel(Sentence[a])) Sentence[a] = '*'; } cout << Sentence << endl; }Hope this helps.
Re: Assignment 3 July 06, 2006 11:12AM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 11:22AM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 11:29AM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 11:47AM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 11:56AM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 12:02PM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 12:14PM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 03:30PM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 03:41PM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 04:03PM |
IP/Host: ---.fw.is.co.za Registered: 17 years ago Posts: 10 Rating: 0 |
Re: Assignment 3 July 06, 2006 04:14PM |
IP/Host: ---.nngy.isadsl.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
if(startingWithOn(GivenString)) StartWithOn = GivenString; else StartWithOther = GivenString;
int Without = 0; if(startingWithOn(GivenString)) StartWithOn[i-Without] = GivenString; else{ StartWithOther[Without] = GivenString; Without++; }
Re: Assignment 3 July 06, 2006 05:30PM |
IP/Host: ---.gprs.vodacom.co.za Registered: 18 years ago Posts: 1,424 Rating: 0 |
float profit[[color=red]12[/color]]; for (int i = 0; i < 12; ++i) { profit = income - expenses; }Compared with:
enum Months {Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, MonthsInYear = Dec}; float profit[MonthsInYear]; for (int month = Jan; month < MonthsInYear; ++month) { profit[month] = income[month] - expenses[month]; }Note also in the second version that there isn't a single literal.
Re: Assignment 3 July 06, 2006 06:56PM |
IP/Host: ---.dbn.mweb.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 08:11PM |
IP/Host: ---.gprs.vodacom.co.za Registered: 18 years ago Posts: 1,424 Rating: 0 |
for (int i = 0; i < 12; ++i) { 0042734E mov dword ptr ,0 00427355 jmp main+30h (427360h) 00427357 mov eax,dword ptr 0042735A add eax,1 0042735D mov dword ptr ,eax 00427360 cmp dword ptr ,0Ch 00427364 jge main+53h (427383h)
for (int month = Jan; month < MonthsInYear; ++month) { 0042734E mov dword ptr [month],0 00427355 jmp main+30h (427360h) 00427357 mov eax,dword ptr [month] 0042735A add eax,1 0042735D mov dword ptr [month],eax 00427360 cmp dword ptr [month],0Bh 00427364 jge main+53h (427383h)
int size = Array.size(); for (int i = 0; i < size; ++i) { // some code }
Re: Assignment 3 July 06, 2006 09:49PM |
IP/Host: ---.dbn.mweb.co.za Registered: 18 years ago Posts: 232 Rating: 0 |
Re: Assignment 3 July 06, 2006 10:42PM |
IP/Host: ---.saix.net Registered: 18 years ago Posts: 89 Rating: 0 |