I'm currently making a terminal just for fun and to learn some python :)
I'm half way through making this terminal which sends commands to the OS by using commands.getcommand("...")
only problem is there doesnt really seem to be any environment there.. eg. environment variables, changing...
I'm having problems trying to access properties within an element...
when the element is set up like this:
<span id="bla" style="color: white; border: 1px solid black">blablabla</span>
I am able to access the style properties no problem at all e.g...
Valgrind & ccmalloc are reporting that there is a memory leak with this:
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
cout << "Hello World\n";
return 0;
}
Valgrind says:
==26081==
==26081== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)...
Hi, I havent had much experience with doing random access with fwrite so I'm getting this problem with it. When I write some information to a specific point within the file, it seems to end the file straight after the data I've just written and I lose the rest of the file??..
Heres the code...
I've been running apache for years and had no problem with it until recently..
whenever i try to access a local virtual host i can never get to it
eg.
i type in: development
and i get a not found page and the URL changes to this:
http:///?%20development
anyone else come across this? maybe...
I've got WinXP on hda1, Red Hat 9 on hdd6 & Slackware 9.0 on hdd7.. Slackware 9 was the last one I installed but I cant get it up and running - I tried using Lilo but it didnt seem to work.. basicly Lilo has never worked on my machine - not sure why so thats why I'm using GRUB. I can boot to XP...
I've written a few programs in C that access the local MySQL database on my linux system, the problem is this when I run one of my C programs it comes up with this error:
Error on connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Then if I edit the socket entry...
i wrote this script to test out the createElement and removeChild functions, it works fine in Mozilla, but in IE, it creates the DIV layer, but when i hit a key to activate the removeChild function it says that the DIV layer does not exist?
<html>
<head>
</head>
<script...
ive got a general function that will act apon whatever structure i want to pass to it but is it possible to do that?
i tried this:
void test(void* obj) {
obj->member=....
}
the compiler seems to allow the void* obj, but the compiler is giving errors when i try to access members of that function
this has me stumped... ok this is what im trying to do..
i have a structure with alot of char*'s within it - when the user inputs a new value of one of the char* members the program updates that members' value - i've left out the free commands and other stuff to make this code a bit easier for...
Hi, I'm running Red Hat 8 and I'm programming in C and C++, but compiled file sizes seem to be a little bit big?
eg:
int main() {
int i=0;
}
when i compile this with: gcc -O2 test.c -o test
the file size is 9748kb - this seems a little bit large for one command - is there a way to reduce...
Hi,
I've written a key generator program in C++ with VI and it compiles no problems at all with g++. The program has a class within it called "Encrypt".
Within KDevelop I created a nice little GUI to control the program instead of having to go to the shell to execute it. Within the...
how would i go about having a function pointer within a struct?
i've gotten this far and it seems to work but the function doesnt seem to be getting called:
struct Page {
char* title;
...
void (*out)(const char*);
}
void out(const char* str) {
printf("%s\n",str);
}
struct...
Hi me again,
ne1 know why this would be throwing alot of warnings?
class blaba {
vector<string> dosomething(... , ..);
};
vector<string> dosomething(... , ..) {
...
};
it only seems to throw warnings when trying to use a return type of vector<string> - any other type of vector its fine...
I've got some questions about return types from functions...
I've written a few programs now in C++ and they are working fine but I'm not sure if they are really programmed properly or not. The only issue that I'm faced with is am I returning valid values/objects that are safe?
Like is it...
Hi guys,
I've been programming all my CGI scripts in Perl and now want to change over to C++ to speed them up a bit.
I've got a simple email submit program that I wrote in Perl and I'm not sure how to go about it in C++, I want to connect to the mail server using sockets but I want the program...
i just cannot find information on this anywhere!
i have a form on a webpage that calls my CGI PERL script, my script processes the passed variables and saves them, but then i need my PERL script to submit a form off to another website.
can this be done???????
please help
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.