Is there anybody so kind to give me some advice?
[cpp]
#include <iostream>
#include <cstring>
using namespace std;
int key[255];
int is(char *p)
{
int stack[300],stack1[300],now,f;
int i,at=0;
int len=strlen(p);
for(i=0;i<len;i++)
{
if(p =='N')continue;
stack[at++]=key[p ];
}
while(1 ...
Search found 8 matches
- Thu Sep 16, 2004 2:47 pm
- Forum: Volume 2 (200-299)
- Topic: 271 - Simply Syntax
- Replies: 46
- Views: 19796
- Thu Jul 01, 2004 6:41 pm
- Forum: Volume 3 (300-399)
- Topic: 332 - Rational Numbers from Repeating Fractions
- Replies: 83
- Views: 34097
help! 332 RTE
here's my code:
[cpp]
#include <iostream.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int main()
{
int a,b,i,d,j,k,m,cases=0,y;
char c,p[100];
while(cin>>j,j!=-1)
{cases++;
cin>>c>>c;
cin>>p;
k=strlen(p);
k-=j;
b=atoi(p);
i=1;
for(m=0;m<j;m++)i*=10 ...
[cpp]
#include <iostream.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
int main()
{
int a,b,i,d,j,k,m,cases=0,y;
char c,p[100];
while(cin>>j,j!=-1)
{cases++;
cin>>c>>c;
cin>>p;
k=strlen(p);
k-=j;
b=atoi(p);
i=1;
for(m=0;m<j;m++)i*=10 ...
- Tue Dec 16, 2003 2:35 pm
- Forum: Algorithms
- Topic: Ask for algorithms for find large primes!
- Replies: 5
- Views: 2213
- Sun Dec 14, 2003 8:53 am
- Forum: Algorithms
- Topic: Ask for algorithms for find large primes!
- Replies: 5
- Views: 2213
- Fri Dec 12, 2003 10:09 am
- Forum: Algorithms
- Topic: Ask for algorithms for find large primes!
- Replies: 5
- Views: 2213
Ask for algorithms for find large primes!
Please help me!
How can I find a prime with 150 digits?
Are there any algorithms?
How can I find a prime with 150 digits?
Are there any algorithms?
- Tue Oct 14, 2003 12:34 pm
- Forum: Algorithms
- Topic: a stupid problem
- Replies: 3
- Views: 1353
- Sun Oct 12, 2003 4:10 pm
- Forum: Algorithms
- Topic: a stupid problem
- Replies: 3
- Views: 1353
- Sun Oct 12, 2003 3:47 pm
- Forum: Algorithms
- Topic: a stupid problem
- Replies: 3
- Views: 1353
a stupid problem
can anybody tell me why modf(pow(216,1/double(3)),&s)=1.0?