[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.2662642 [View]
File: 12 KB, 707x228, 1296908945882.png [View same] [iqdb] [saucenao] [google]
2662642

Threads on front page:
>Hawking's explanation of the twin paradox: 1 post omitted
>Our existence in a 3D vs 4D plane: 1 post omitted
>Discovery of extra-terrestrial bacteria: 0 posts omitted
>Microcontroller commands: 4 posts omitted
>Importance of infinite series: 34 posts omitted
>Logic theory question: 15 posts omitted
>Ethics of eating animals vs being vegan: two-hundred-and-thirty-fucking-six posts omitted
Goodnight /sci/

>> No.2597788 [View]
File: 12 KB, 707x228, 1272320008974.png [View same] [iqdb] [saucenao] [google]
2597788

>>2597784
i only had 105 on my first try.

does anyone here know another online iq test?

>> No.2560738 [View]
File: 12 KB, 707x228, fuckthisshit.png [View same] [iqdb] [saucenao] [google]
2560738

>>2560705
>somebody makes a typical joke that any cat owner could get
>furfag
>mon visage quand

>> No.2517069 [View]
File: 12 KB, 707x228, 1296908945882.png [View same] [iqdb] [saucenao] [google]
2517069

>>2516959
>statistics from mid 90's
>mfw this is almost 2 decades old and outdated

>> No.2422014 [View]
File: 12 KB, 707x228, 1292279227326.png [View same] [iqdb] [saucenao] [google]
2422014

>>2422001
>they're minimum wage

>> No.2342920 [View]
File: 12 KB, 707x228, 1291645723533.png [View same] [iqdb] [saucenao] [google]
2342920

>at what height above the earth does the astronaut experience weightlessness
>mfw

>> No.2317686 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
2317686

>>2317666
>>You guys are totally neglecting the fact it was satan.
>>666

>> No.2134973 [View]
File: 12 KB, 707x228, 1279856106157.png [View same] [iqdb] [saucenao] [google]
2134973

What's a simple way to write a calculator in C++ that can handle an infinite amount of numbers?

Writing 2 number calculators is obviously very easy as you only have to define 2 double variables, but as soon as you add more things get kind of complicated and I'm not sure where to go from there.

Here's my 2 number calculator (nothing special):

#include <iostream>
using namespace std;

int main()
{
double num1;
double num2;
char again;
char operation;

do
{
cout << "Please enter the equation you wish to solve. " <<endl;
cin >> num1 >> operation >> num2;

switch(operation)
{
case '+':
cout << "=" << num1 + num2 << endl;
break;

case '-':
cout << "=" << num1 - num2 << endl;
break;

case '/':
cout << "=" << num1 / num2 << endl;
break;

case '*':
cout << "=" << num1 * num2 << endl;
break;

case '%':
cout << "=" << num1 % num2 << endl;
break;
default:
cout << "Invalid operation. "

}
cout << "Solve another equation? (Y/N)" <<endl;
cin << again;
}

while (again=='y'||again=='Y');
}

I heard it can be done with arrays or something along those lines but I'm not sure how to put it all together.

Help!

>> No.2068126 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
2068126

>>2068117
>>MFW you don't even try to cover up your samefagging by writing differently

>> No.1919559 [View]
File: 12 KB, 707x228, 1275807105656.png [View same] [iqdb] [saucenao] [google]
1919559

>>1919514

>> No.1707150 [View]
File: 12 KB, 707x228, asd.png [View same] [iqdb] [saucenao] [google]
1707150

It relates to this image.

>> No.1563432 [View]
File: 12 KB, 707x228, computersmack.png [View same] [iqdb] [saucenao] [google]
1563432

>> No.1540657 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
1540657

>>we should make a law in science - if you cannot prove it, it is not real.

>> No.1375901 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
[ERROR]

>>1375893

>> No.1130867 [View]
File: 12 KB, 707x228, 1267705687439.png [View same] [iqdb] [saucenao] [google]
1130867

>>1130588
>>1130588

>> No.1124796 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
1124796

>>1124783

>> No.1113685 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
1113685

>>1113667
>>There are 10 digits possible

You're an idiot.

>> No.1109588 [View]
File: 12 KB, 707x228, 1263440214742.png [View same] [iqdb] [saucenao] [google]
1109588

>He believes that unneeded organs eventually disappear because of evolution!

>> No.1032613 [View]
File: 12 KB, 707x228, 1274209911368.png [View same] [iqdb] [saucenao] [google]
1032613

>>1032601

>> No.985526 [View]
File: 12 KB, 707x228, 1274209911368.png [View same] [iqdb] [saucenao] [google]
985526

>>985509

>> No.966939 [View]
File: 12 KB, 707x228, 1274200568555.png [View same] [iqdb] [saucenao] [google]
966939

>>966917

Navigation
View posts[-24][+24][+48][+96]