Potentially useful code snippets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
377 B

#include <iostream>
#include <string>
#include "custom.h"
#include <unistd.h>
//for sleepings
unsigned int microsec;
int main(){
proto obj("WTF");
std::cout<< obj.getname() << std::endl;
obj.setname("Paul Lesack");
std::cout << obj.getname() <<std::endl;
microsec=100*1000;
usleep(microsec);
for (int x=1; x<10; x++)
{
std::cout << "Sleeping" << std::endl;
}
return 0;
}