Author Topic: im interested in what u guys code in.  (Read 3267 times)

I know some bulletin board
nothin serious doe

c#, ++, minimal javascript, html, actionscript, lua (thanks, roblax), basic, ruby, sql (it counts), and i can wade my way through assembly reasonably well if that counts

Java, (html) and a little bit PHP and javascript

So messy, a loop should be broken by satisfying the while condition.
Code: [Select]
int main (){
int total = 0;
int input = 0;
bool quit = false;

while ( quit == false )
{
cin >> input;
total = total + input;

if ( input == 0 )
quit = true;

cout << total << endl;
}

return 0;
}

I never would have figured that out. The book mentioned bool, but I completely forgot about it.

Torque, C++, Python, little Java.

Oh and html ofc

Proprietary JavaScript (for the Unity Engine), JavaScript, a little C++, and a bit of Torque.



Markups : HTML
Programming : C++ (my favorite), Java (forced to learn), Visual Basic and some C#
Scripting : TorqueScript and Lua plus JavaScript
Favorite IDE : Visual Studio
Areas of Interest : Application development, ASP.Net development (web applications and websites), Blockland add-on development, server to server and client communications


My underwear
Your mom's room

Only code is bro code.
« Last Edit: July 22, 2013, 10:54:33 AM by Clone v.117 »


Hoping to move on to Assembly
Why the hell would someone want to code in asm


Code: [Select]
#include <iostream>

using namespace std;

int main (){
int total = 0;
int input;
bool quit = false;

while(quit == false)
{
    cin >> input;
    if(input == 0){
            quit = true;
            break;}
    total = total + input;
    cout << total << endl;
}

return 0;
}

You can add a break function in the if(input==0) because once you enter "0" it will spew "0" out a second time, then it will quit. Using break; will just break out of the while loop instantly so it doesn't have to do the cout at the end.
« Last Edit: July 22, 2013, 12:58:50 PM by Blockzillahead »

I know HTML and some CSS. I havn't done it in a while so I might have forgotten some.