• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

I just started C++ scripting.

Rugged Mage

Lua Scripter
Joined
Mar 8, 2010
Messages
1,182
Solutions
2
Reaction score
77
Hey, I just started C++ programming, so I want people to request some simple C++ scripts, so I can try and practice some.
 
Last edited:
It's a programming language not a scripting language.

Can you test the following for me? I want to know the time thanks.
Code:
using System;
public class Stupid {
  public static void Main() {
    int n = 0;
    for(int i=1; i <= 2000000000; ++i){
      if(i % 15 == 0){
        ++n;
      }
    }
    Console.WriteLine(n);
  }
}


> 2012_05_26-dev
> Not using C#

I SHIGGY DIGGDY DO
 
Did you want this?
Code:
#include <iostream>
#include <ctime>

int main(int argc, char* argv[])
{	
std::time_t t1 = std::time(0);
std::cout<< t1;
return 0;	
}
or something more like this

Code:
#include <iostream>
using namespace std;

int main ()

{
	cout << "The date is" << __DATE__ << ".\n";
	cout << "The time is" << __TIME__ << ".\n";
	return 0;
}
 
Last edited:
Back
Top