Forum: Networking Hardware Configuration Sep 29th, 2009 |
| Replies: 4 Views: 1,142 Hi. Thanks for your help so far. I have tried and failed to get this working with the BTHomeHub. i can get a connection between the two routers but no internet connection sharing.
As such I have... |
Forum: Networking Hardware Configuration Sep 9th, 2009 |
| Replies: 4 Views: 1,142 Does anyone have a clue how to do this?
So far I have got the second router (belkin) to say it is connected but the master router is not showing it up on the list
Please help! |
Forum: Networking Hardware Configuration Sep 9th, 2009 |
| Replies: 4 Views: 1,142 Hi,
I am trying to set up a strange network configuration. Basically I have a wireless network from a BTHomeHub covering my house but I have a few devices that need an Ethernet connection and I... |
Forum: PHP Mar 20th, 2009 |
| Replies: 4 Views: 497 By the way here is the code included in PHPProxy
<?php
# edit this
# set this to your client machine or proxy,
# comment it out if you don't want protection |
Forum: PHP Mar 20th, 2009 |
| Replies: 4 Views: 497 I am trying to make a proxy server for my house to connect to the internet through. I am trying to use phpproxy, but I have no background in php or anything like this other than a little html. Can... |
Forum: C Mar 3rd, 2009 |
| Replies: 10 Views: 1,652 Hi Thanks for that Salem. One question though. What is buff in your sscanf example? Is it in the standard library or something I have to cast myself. If so what should it be? |
Forum: C Mar 1st, 2009 |
| Replies: 10 Views: 1,652 Nothing seemed to be working and I haven't really used strtol/strtod before so I am not to confident with them, so I tried fgets.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>... |
Forum: C Mar 1st, 2009 |
| Replies: 10 Views: 1,652 I have only really used sscanf for command line arguments, in int main I would put int main(argc, char* argv[]), then for each sscanf I would put sscanf(argv[n], %d, %number. I haven't really been... |
Forum: C Mar 1st, 2009 |
| Replies: 10 Views: 1,652 So will sscanf do this? Because when I try sscanf I get a seg fault. I can only make my program accept command line arguments with sscanf |
Forum: C Feb 28th, 2009 |
| Replies: 10 Views: 1,652 Hi,
I am trying to validate user input from the scanf function. I have managed to ensure the input is an integer between the limits of 2 and 1000, but I haven't managed to get the program to only... |
Forum: C Feb 28th, 2009 |
| Replies: 8 Views: 563 Thanks for you help. I have figured out what I am doing wrong. For future reference though, is it possible to declare an array of strings? Isn't that effectively an array of character arrays? |
Forum: C Feb 28th, 2009 |
| Replies: 8 Views: 563 So if put
printf("%s %d %d\n", coltitle[2], table[k][0], table[k][1]);
This should print the string of characters? |
Forum: C Feb 28th, 2009 |
| Replies: 8 Views: 563 Thanks. That is what I was considering doing. I am struggling with my array of characters though. It is causing a seg fault at file output point.
Here's the code:
#include <stdio.h>
#include... |
Forum: C Feb 28th, 2009 |
| Replies: 8 Views: 563 Thanks for that. One more thing. If I want to set the first values in the output table to characters, but as you correctly guessed table is an array of integers, how would I go about this? I am... |
Forum: C Feb 18th, 2009 |
| Replies: 8 Views: 563 Hi. I need to make a program which outputs an array to a file. The output file needs to have two columns, one labeled m(e) another labeled v, but I can't get the columns of the array to be separated... |
Forum: C Feb 12th, 2009 |
| Replies: 13 Views: 898 That all works brilliantly. Thank you.
One more thing. I need to make the output file be in two columns, one labeled m(e) another labeled v, but I can't get the columns of the array to be... |
Forum: C Feb 10th, 2009 |
| Replies: 13 Views: 898 Hey Guys.
I am still getting the segmentation fault and can't figure out how I'm doing malloc wrong
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> |
Forum: C Feb 4th, 2009 |
| Replies: 13 Views: 898 Ok I have made some changes, but still getting a seg fault in the while loop. Can't see why just yet.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int main... |
Forum: C Feb 3rd, 2009 |
| Replies: 13 Views: 898 Hi.
I have written a program to build an array and move values around until a point of "equilibrium" is reached. It then records how many of each number there are and outputs them to a file. My... |
Forum: C Jan 30th, 2009 |
| Replies: 18 Views: 1,134 Never mind I have seen my error and its REALLY stupid. thanks for all your help everyone |
Forum: C Jan 30th, 2009 |
| Replies: 18 Views: 1,134 No I didn't use -wall because I am compiling with gcc and its not an option on that compiler (as far as I know!)
I am still getting a bus error in the while loop by the way, and as I'm new and... |
Forum: C Jan 29th, 2009 |
| Replies: 18 Views: 1,134 Getting a bus error in the while loop now. Arrrgh this code is driving me nuts |
Forum: C Jan 29th, 2009 |
| Replies: 18 Views: 1,134 haha, thanks thats a really stupid error but I didnt see it |
Forum: C Jan 29th, 2009 |
| Replies: 18 Views: 1,134 Hi.
Thanks for all your help so far, but I have become stuck again with a bus error.
Here's the code
#include <stdio.h>
#include <stdlib.h>
#include <string.h> |
Forum: C Jan 22nd, 2009 |
| Replies: 18 Views: 1,134 I am still having a bit of trouble with this. I don't think I have implemented your corrections properly. Also it is giving me the message:
warning: assignment makes pointer from integer without a... |
Forum: C Jan 21st, 2009 |
| Replies: 18 Views: 1,134 I am trying to produce a program which produces a random array of numbers but I am running into a problem in that when the array becomes even a little large, say 10x10, I get the Bus Error or... |
Forum: C Jan 20th, 2009 |
| Replies: 2 Views: 3,020 |
Forum: C Jan 19th, 2009 |
| Replies: 2 Views: 3,020 I'm having a bit of trouble with this random number generation function. It's going to be part of a much larger program which requires lots of random numbers so I decided to use time as a seed.... |
Forum: C Dec 2nd, 2008 |
| Replies: 1 Views: 342 Hi,
In this piece of code in my program I am receiving the following error request for member âyâ in something not a structure or union.
struct intpair {
int x ;
int y ;
} ;
struct... |
Forum: C Nov 27th, 2008 |
| Replies: 2 Views: 1,274 Thanks for your help! Much easier than the way I was trying to go about it and now I understand malloc a bit! |
Forum: C Nov 27th, 2008 |
| Replies: 2 Views: 1,274 Hi I'm trying to implement malloc into the following file but I am having some difficulty grasping the concept.
My code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define... |
Forum: C Nov 25th, 2008 |
| Replies: 1 Views: 885 Ok I have figured out external functions, just the other part now |
Forum: C Nov 25th, 2008 |
| Replies: 1 Views: 885 Hey,
I'm really stuck on a program I have to make for a class. We have to integrate f(x) = cos^2 (x). We are given a file with values of x and corresponding values of f(x). We have to use a while... |
Forum: C Nov 1st, 2008 |
| Replies: 3 Views: 1,406 thanks for your help! I can now get properly started! |
Forum: C Nov 1st, 2008 |
| Replies: 3 Views: 1,406 Hi. I'm new to C, so I have probably made an elementary mistake in my code.
I am trying to make a program for finding roots of a quadratic equation, using if and else, but first I'm trying to get... |
Forum: Community Introductions Nov 1st, 2008 |
| Replies: 1 Views: 302 Name: James
Nickname: Jim
Height: 6'2''
Weight: 140
Hair: Brown
Eyes: Green/Blue
Location: UK
Age: 20
Hobbies: Music, gaming, drawing (esp. in flash), squash, cycling, anything techy! |