« first day (854 days earlier)      last day (1574 days later) » 

12:20 AM
$limit = 2000000; // horrible php code
$list = range(3,$limit,2);
$primes = array(2);
$banned = array();
foreach($list as $n){
	if(!isset($banned[$n])){
		$primes[] = $n;
		if($n*2<$limit){
			$array = range($n*2,$limit+$n,$n);
			foreach($array as $arr){
				$banned[$arr] = 0;
			}
		}
	}
}

//$primes contains the primes
 
1 message moved from Lounge<C++>
 
 
8 hours later…
8:32 AM
Hello. How can I add javax.resource.spi.work.WorkManager class to J2EE project in eclipse?
 
 
3 hours later…
11:13 AM
How to put char* into character array?

int main(){

char sentence[] = "my name is john";
int i=0;
char ch[50];
for (char* word = strtok(sentence," "); word != NULL; word = strtok(NULL, " "))
{
// put word into array
// *ch=word;
/*ch[i]=word;
printf("%s \n",ch[i]);
i++;*/

//Above commeted part does not work, how to put word into character array ch
}
return 0;
}
 
1 message moved from Lounge<C++>
 
How to assign chracter pointer to character array?
 
1 message moved from Lounge<C++>
1 message moved from Lounge<C++>
1 message moved to Lounge<C++>
 
 
2 hours later…
1:26 PM
Hello. How can I add javax.resource.spi.work.WorkManager class to J2EE project in eclipse? What jar must use?
 
 
2 hours later…
3:23 PM
2 messages moved from Java
 
3:55 PM
 
user142019
4:35 PM
 
user142019
 
3 messages moved from Lounge<C++>
 
 
1 hour later…
6:02 PM
:10164603 I want to use make, what correction I need to make in this code?

all: LinServer LinClient

LinServer:
g++ LinServer.cpp -o LinServer

LinClient:
g++ LinClient.cpp -o LinClient
ok got it!
@CatPlusPlus what you mean by tia? :)
at all: I have used pthread in LinServer.cpp and when I execute individually i write: g++ -o a LinServer.cpp -lpthread
in case of makefile it gives error undefined reference to pthread_create
any help?
 
5 messages moved from Lounge<C++>
 
6:47 PM
 
That's some really gritty pixel art. o.0
I think I'd prefer something more flowery. x3
 
3 messages moved from RapphD
 
7:20 PM
 
1 message moved from Lounge<C++>
 

« first day (854 days earlier)      last day (1574 days later) »