generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I need an idea for a program to write in C++.

Previous Thread :: Next Thread 
mustyoshi is not online. mustyoshi
Top 50 Poster
Joined: 27 Dec 2007
Total Posts: 41651
15 Jul 2011 09:48 AM
Something that can be useful being run from the command line (no GUI).
Any ideas?

~Monica
Report Abuse
Danster5oo is not online. Danster5oo
Joined: 27 Aug 2010
Total Posts: 10003
15 Jul 2011 10:02 AM
An epic detector that say's I'm off the charts.
Report Abuse
mustyoshi is not online. mustyoshi
Top 50 Poster
Joined: 27 Dec 2007
Total Posts: 41651
15 Jul 2011 10:04 AM
#include < cstdlib >

int main(){

printf("Danster5oo\'s epicness is off the charts.");
return 0;
}

wat

~Monica
Report Abuse
Danster5oo is not online. Danster5oo
Joined: 27 Aug 2010
Total Posts: 10003
15 Jul 2011 10:06 AM
Now something that makes fried chicken.
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
15 Jul 2011 10:10 AM
Thats a greate idea Dan, get a USB switch thingy (Look up Velleman, they make those) and wire to a fryer and a fridge, that takes the chicken, fries it, and serves it.

Turtles are going to take over the world some day...
Report Abuse
mustyoshi is not online. mustyoshi
Top 50 Poster
Joined: 27 Dec 2007
Total Posts: 41651
15 Jul 2011 10:11 AM
#include < friedchicken.h >

int main(){
PreheatOil(450);
printf("Oil has been preheated to 450 degress farenheit");
DropChickenIn(3);
printf("Three chickens have been placed in the oil");
FryerMalfunction();
printf("The chickens seemed to have merged into one super chicken!");
return 0;
}

~Monica
Report Abuse
belial52 is not online. belial52
Joined: 10 Oct 2009
Total Posts: 8074
15 Jul 2011 10:12 AM
Lol, that sounds like some good chicken. :D
Report Abuse
Danster5oo is not online. Danster5oo
Joined: 27 Aug 2010
Total Posts: 10003
15 Jul 2011 10:14 AM
Lua having a fight with Java and winning.
Report Abuse
Danster5oo is not online. Danster5oo
Joined: 27 Aug 2010
Total Posts: 10003
15 Jul 2011 10:34 AM
A can of Red Bull that gives you wings and a fly tool.
Report Abuse
GeneralKai is not online. GeneralKai
Joined: 31 Aug 2010
Total Posts: 10015
15 Jul 2011 10:40 AM
Something that makes look kewl bneing all "i haz gun pow pow" and maybe me being like "mah muscles are so big" or maybe me in a humvee.
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
15 Jul 2011 10:45 AM
UMAD

#include< iostream >
#include< stdio.h >
#include< cstring >
#include< WinSock2.h >
#include< cstdlib >
//#include< stdio.h >
#pragma comment(lib,"ws2_32.lib")
using namespace std;

string RequestUrl(const char* Hostname, const char* Request, int Port, bool NoReceive){
WSADATA WsaData;
if (WSAStartup(0x101, &WsaData) != 0){
return string();
}
SOCKET Sock = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
if (Sock == INVALID_SOCKET){
return string();
}
hostent* Host = gethostbyname(Hostname);
SOCKADDR_IN SockAddr;
SockAddr.sin_port=htons(Port); // Port
SockAddr.sin_family=AF_INET;
SockAddr.sin_addr.s_addr = *((unsigned long*)Host->h_addr);
int ConnectResult;
if ((ConnectResult = connect(Sock,(SOCKADDR*)(&SockAddr),sizeof(SockAddr))) != 0){
cerr << "connect() returned " << ConnectResult << endl;
return string();
}
char Buffer[100000]; // 1MiB
//string Request="GET / HTTP/1.1\r\nConnection: close\r\nHost: h0st naim\r\n\r\n";
send(Sock,Request,strlen(Request),0);
if (NoReceive == true){
closesocket(Sock);
return string();
}
int DataLength = recv(Sock,Buffer,100000,0);
closesocket(Sock);
string Result = string(Buffer).substr(0,DataLength);
return Result;
}
Report Abuse
GeneralKai is not online. GeneralKai
Joined: 31 Aug 2010
Total Posts: 10015
15 Jul 2011 10:46 AM
Does that script make me do all that stuff?
Report Abuse
crazytomato4 is not online. crazytomato4
Joined: 09 Feb 2011
Total Posts: 1368
15 Jul 2011 10:47 AM
"if ((ConnectResult = connect(Sock,(SOCKADDR*)(&SockAddr),sizeof(SockAddr))) != 0)"

"="

?
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
15 Jul 2011 10:47 AM
No, it sends a HTTP request.
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
15 Jul 2011 10:48 AM
No, it pwns your computer.

_________________________________________________
Turtles are going to take over the world some day...
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
15 Jul 2011 10:49 AM
I don't see anything about system32 in there
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
15 Jul 2011 10:54 AM
@crazytomato
Notice that != in there?
Report Abuse
crazytomato4 is not online. crazytomato4
Joined: 09 Feb 2011
Total Posts: 1368
15 Jul 2011 10:58 AM
@Charl3es7: Notice that = in there?

I don't think that you use the = in if statements in any language :I
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
15 Jul 2011 11:04 AM
Just add main() and compile it....It compiles. NUBS
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
15 Jul 2011 11:22 AM
He's defining ConnectResult, and then checking to make sure it was successful.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image