|
AI
Jan 13, 2010 20:09:43 GMT -5
Post by alovon on Jan 13, 2010 20:09:43 GMT -5
Hahaha! Looks like Cleverbot is trying to get some... Why is it a homo though?
|
|
|
AI
Jan 14, 2010 21:01:19 GMT -5
Post by crazynate on Jan 14, 2010 21:01:19 GMT -5
I don't know why either. Cleverbot also asked to marry me, but i said that human and bot marriages were outlawed
How about we have a competition to see who can make the best AI program Also, how do you make an array of strings in c++?
|
|
|
AI
Jan 14, 2010 22:17:03 GMT -5
Post by alovon on Jan 14, 2010 22:17:03 GMT -5
Well I am working on a sprite engine but hey that would be cool to. What compiler are you using? I presume it would still be Dim VarName$(SomeNumber) That is how I remember it in Dev C++, but it has been a while since I've used C++.
|
|
|
AI
Jan 14, 2010 22:53:18 GMT -5
Post by crazynate on Jan 14, 2010 22:53:18 GMT -5
microsoft visual studio .net 2003
|
|
|
AI
Jan 15, 2010 7:01:17 GMT -5
Post by Adam on Jan 15, 2010 7:01:17 GMT -5
I believe it is #include <string>
string varname[number]
|
|
|
AI
Jan 15, 2010 16:35:42 GMT -5
Post by crazynate on Jan 15, 2010 16:35:42 GMT -5
i dont know what im doing wrong, but that doesnt work
|
|
|
AI
Jan 15, 2010 16:54:36 GMT -5
Post by Adam on Jan 15, 2010 16:54:36 GMT -5
you may also need
using namespace std;
|
|
|
AI
Jan 15, 2010 20:27:58 GMT -5
Post by Nicky Peter Hollyoake on Jan 15, 2010 20:27:58 GMT -5
#include <string> #include <iostream>
using namespace std;
int main() { string MyString = "Nicky"; cout << MyString; } - Nicky
|
|
|
AI
Jan 15, 2010 20:41:11 GMT -5
Post by crazynate on Jan 15, 2010 20:41:11 GMT -5
actually, i was asking how to make an array of strings
|
|
|
AI
Jan 15, 2010 20:49:44 GMT -5
Post by Darkjester on Jan 15, 2010 20:49:44 GMT -5
im thinking its like this..
#include <string> #include <iostream>
using namespace std;
string MyString[1]
int main() { cout << MyString(0); }
this is untested just out of my head
|
|
|
AI
Jan 15, 2010 23:15:54 GMT -5
Post by aphoticgenesis on Jan 15, 2010 23:15:54 GMT -5
I got bored, so I made this example ... #include <windows.h> #include <iostream> #include <stdio.h>
#define MAX 10 #define SLEEPTIME 600
using namespace std;
string g_Name; string g_Numbers[MAX+1]; char g_szNumbers[MAX+1];
int main() { g_Name = "Example\n"; cout << g_Name << endl;
for(int i = 1; i < MAX+1; i++) { sprintf(g_szNumbers, "%d", i); g_Numbers[i] = g_szNumbers;
printf("Counter: %s\r", g_Numbers[i].c_str()); Sleep(SLEEPTIME); } cout << endl;
return(0); }
|
|