English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

WHILE LOOP,FILE STREAM I/O,IF..ELSE,REFERENCE PARAMETERS AND VALUE PARAMETERS (AS NEED)

2006-10-13 05:43:36 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

//print a table of N from 1 to M

#include
#include
#include
void main()
{
int n,m,i ;
char cho ;
clrscr() ;
do{
cout<<"Enter n & m" ;
cin>>n>>m ;
cout<<"Table of "< for(i=1;i<=m;i++)
cout< cin>>cho ;
}while(cho=='Y'||cho=='y') ;
getch() ;
}

2006-10-13 06:34:54 · answer #1 · answered by Innocence Redefined 5 · 0 0

A good investment would be a 'Learn C++ in 24 hours book'

2006-10-13 05:45:47 · answer #2 · answered by Rob 5 · 0 0

write a fashion that feels like this: int recurse(){ //perform a little stuff recurse(); } notice that this could crash your gadget. every time you call a fashion, an activation physique is positioned on the stack. for the reason that stacks are first in final out, your stack will in simple terms proceed to grow till the OS kills your technique.

2016-11-28 03:44:05 · answer #3 · answered by Anonymous · 0 0

#include
#include
using namespace std;

void main() {
string testedperson = "helpplzhelpplz";

ofstream stupidpersonlist;
stupidpersonlist.open ("stupidolist.txt");
if (lazytest(&testedperson) == true)
result = "Smart";
else
result = "Stupid";

stupidpersonlist << testedperson + " is a " + result + "person" ;
stupidpersonlist.close
}

bool lazytest(string * beingtested) {
string asker = *beingtested;
while (asker = "lazy") {
stupidity += 1;
grade -= 1;

if (asker != "lazy") {
cout << "You shouldn't ask this question/n";
return 1;
}
}
return 0;
}

2006-10-13 07:17:18 · answer #4 · answered by Lie Ryan 6 · 0 0

Arent you taking this class to learn how to do this??

2006-10-13 05:44:57 · answer #5 · answered by Holla 4 · 0 0

??? canot understand what you want me to do. Do you have a hyperlink or something?

2006-10-13 05:51:34 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers