Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
About Me

Middle School Student

Interests
Computer Programming (although it is doubtful I'd be here if that wasn't true)
Favorite Tags
c++ x 21
c x 11
java x 11
Member Avatar for ilikerps

Hello, I was just wondering if it is possible in Java to get the host's IP address, as seen on the Internet, not network or by the computer itself. I mean, getting something like [B]87.253.145.35[/B] instead of something like 192.168.1.100 or 127.0.0.1. Or, if not, is there any popular/known server …

Member Avatar for davido82
0
443
Member Avatar for ilikerps

Hello. I have been having trouble with my Apache server (or perhaps something else, like DNS) for a while now. I have tried to find a solution, but my keywords always come up with almost completely unrelated webpages. I have a website, [url]www.ilikerps.net[/url] with redirection to my IP address, and …

Member Avatar for ilikerps
0
286
Member Avatar for ilikerps

Hello, I am trying to write a simple updater program (in Java). A client would connect to the server, which would hand out any files it needs updated. One example would be updating a Java .class file. I have tried to just copy a class file, to see if that …

Member Avatar for ilikerps
0
157
Member Avatar for ilikerps

Hello, I know this question is stupid, but I cannot find an exact answer to it. I am using Eclipse, and have written some classes to be used as a small database editor for XML. It compiles and runs fine in Eclipse. However, I made it so that it can …

Member Avatar for ilikerps
0
288
Member Avatar for ilikerps

Hello, I am trying to move data from a client to a server, and save it in a file. However, I am getting a "Runtime Error!" when I use the substr() function, here: [CODE]char buffer[256]; int sr = recv(acc, buffer, sizeof(buffer), 0); string buffStr = buffer; outfile << buffStr.substr(9,buffStr.size()-1) << …

Member Avatar for ilikerps
0
211
Member Avatar for ilikerps

Hello, I know this is probably a very elementary answer, but how does one convert a character into a character pointer, for use strcpy()? For instance, I need this: [CODE] char sendBuffer[5]; char ch; // assume code in between makes ch something strcpy(sendBuffer, (char*) ch);[/CODE] However, the console window that …

Member Avatar for ilikerps
0
149
Member Avatar for ilikerps

Hello, I am working on a server program that deals with opening files, or at least that is all that is relevant for this post. I am using VC++. I use multithreading so that it can be multi-client, of course, but when I try to use this line: [CODE]infile.open(filename, ios::in);[/CODE] …

Member Avatar for ilikerps
0
216
Member Avatar for ilikerps

I have an edit box, with its settings as "multiline", "want return", and "vertical scroll." All I want to do is to have new lines between each output line. However, I have tried "\n", which did not work. So, is there a way to make them have line breaks?

Member Avatar for freespace
0
524
Member Avatar for ilikerps

Hello. I am trying to convert my chat client from a C++ program that runs in DOS into one that runs in a Windows Dialog. I am using Visual C++. However, I am already getting a second error (please understand that there have been many before this that I [I]have[/I] …

Member Avatar for ilikerps
0
209
Member Avatar for ilikerps

Hello. I am trying to convert my chat client from a C++ program that runs in DOS into one that runs in a Windows Dialog. I am using Visual C++. However, I am already getting a strange error: [CODE]#include <string>[/CODE] That links without error, but when I try to use …

Member Avatar for ilikerps
0
184
Member Avatar for ilikerps

Hello, I just have a question about how to find a substring when one has only a string and coordinates for where the data will be? For instance, a string "why,hello", and data that is at the coordinates 4 to 8. strstr, I obviously cannot use directly, because I have …

Member Avatar for Ancient Dragon
0
131
Member Avatar for ilikerps

Hello, I am having trouble with arrays. Basically, this is what happens: [code] vector <char*> constArray(10); char* changingString = "hello"; constArray[0] = changingString; changingString = "hi"; printf("constArray[0] = %s\nchangingString = %s", constArray[0], changingString); [/code] Output: constArray[0] = hi changingString = hi So, I think constArray[0] is changing because it points …

Member Avatar for ilikerps
0
117
Member Avatar for ilikerps

How does one reset an array, to make it retain its size but get rid of all data it has stored? Would one do it by setting all the array values to '\0'?

Member Avatar for SpS
0
411
Member Avatar for ilikerps

Hello, I am having a problem with sockets. Not the sockets themselves, exactly, but more of the recieving and accepting of messages and connections (respectively) at the same time. My program runs a loop where it will wait to accept a connection (using accept()), and then wait to recieve a …

Member Avatar for ilikerps
0
118