mustyoshi
|
  |
 |
| 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 |
|
|
|
| 15 Jul 2011 10:02 AM |
| An epic detector that say's I'm off the charts. |
|
|
| Report Abuse |
|
|
mustyoshi
|
  |
 |
| 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 |
|
|
|
| 15 Jul 2011 10:06 AM |
| Now something that makes fried chicken. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
 |
| 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
|
  |
| Joined: 10 Oct 2009 |
| Total Posts: 8074 |
|
|
| 15 Jul 2011 10:12 AM |
| Lol, that sounds like some good chicken. :D |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2011 10:14 AM |
| Lua having a fight with Java and winning. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2011 10:34 AM |
| A can of Red Bull that gives you wings and a fly tool. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 15 Jul 2011 10:46 AM |
| Does that script make me do all that stuff? |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2011 10:47 AM |
"if ((ConnectResult = connect(Sock,(SOCKADDR*)(&SockAddr),sizeof(SockAddr))) != 0)"
"="
? |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 15 Jul 2011 10:47 AM |
| No, it sends a HTTP request. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2011 10:48 AM |
No, it pwns your computer.
_________________________________________________ Turtles are going to take over the world some day... |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 07 Dec 2007 |
| Total Posts: 4146 |
|
|
| 15 Jul 2011 10:54 AM |
@crazytomato Notice that != in there? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|