No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
9 Posted Topics
Re: You could write a guessing game that goes like this: computerNum is set to a random number in range 1-10 (look up rand and srand to help you) userNum is set to user input A while loop is created until userNum equals computerNum. (Don't forget to have userNum re-entered inside … | |
I can get variables from an html page into my perl cgi script just fine, but I want to process these variables (also works), and pass them to another cgi script. I'm not sure how though. I've tried to set up a new <form> inside of my perl script to … | |
My goal is to have a simple piece of code that will raise an exception if input of non-int is entered. My problem so far, is that I haven't been able to reach the catch block. I have read a little about bad_typeid, but do not know how to implement … | |
I'm currently working on an application that involves reading pdf files into a variable and passing them to a server via http POST method. On Linux, everything is fine because I can use cat and popen: [CODE=python]pdf = os.popen('cat testpdf.pdf').read() #read pdf data in Linux[/CODE] However, in Windows, the DOS … | |
I have a simple script to POST a pdf to a server. It works great when I use Ubuntu to run it. However, when I run it in Windows, I get this error: Error: <urlopen error [Errno 10035] A non-blocking socket operation could not be completed immeditately> Could this be … | |
I am trying to compile code that will perform an http POST using the GNU c++ compiler, and I get the following error: http_post2.cpp:93: error: ‘strlen’ was not declared in this scope The line that it points to is simply: [CODE]SEND_RQ("POST ");[/CODE] I went up to see where SEND_RQ is … | |
Is it possible to return values from a shell prompt back into c++ as a variable? IE: If I have the line [ICODE]system("cat *txt");[/ICODE] I am unable to store any of the results within my c++ program. Thanks! | |
Re: I'd still really like to know though, because I have the same problem. How did you figure it out? | |
I've been able to open text files, read them and write to them. However, I always have to specify the name of the file before I compile. IE: ofstream myfile ("example.txt"); I've tried to declare a string, and then use that where the name of the file would nomally be, … |
The End.