No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Middle School Student
- Interests
- Computer Programming (although it is doubtful I'd be here if that wasn't true)
14 Posted Topics
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 … | |
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 … | |
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 … | |
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 … | |
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) << … | |
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 … | |
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] … | |
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? | |
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] … | |
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 … | |
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 … | |
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 … | |
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'? | |
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 … |
The End.