Search found 7 matches

by d31mOZ
Mon May 15, 2006 12:03 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 38848

by d31mOZ
Mon May 08, 2006 8:04 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 38848

483 WHY WA???

I submit this code and i get WA, WHY??? It's a problem so easy!!!!!!


#include <stdio.h>

//483

int main()
{
char c, s[100]; int cant = 0;
while ((c = getchar()) != EOF)
{
if (c != '\n')
{
if (c != ' ')
{
s[cant++] = c;
} else
{
for (int i = cant - 1; i > -1; i--)
printf("%c", s[i ...
by d31mOZ
Mon May 08, 2006 7:47 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 38848

The last output don't should be:

for ---> as..
this --->..sa

???????
by d31mOZ
Fri Apr 14, 2006 5:19 pm
Forum: Algorithms
Topic: Nonconvex polygon
Replies: 2
Views: 1358

Yes, i think that, but, the problem will be apply to application medic, and the point should will be border, trying of conform an image of part of the body.

I believe that it will give me point of medical figure.

Thank, your interest of help me.
by d31mOZ
Fri Apr 14, 2006 4:15 pm
Forum: Algorithms
Topic: Nonconvex polygon
Replies: 2
Views: 1358

Nonconvex polygon

Hello to all:
I am a student of a University of Computer Science, and in my project have put me a tasks and is one me is returning crazy :-? :

Initially they gave one, that given a cloud me of points, is needed that my program gives back the convex polygon, and I already did it, with a mathematical ...
by d31mOZ
Sat Apr 01, 2006 11:32 pm
Forum: C++
Topic: Print a long duble
Replies: 3
Views: 2488

Print a long duble

How i can print a variable "long double", for example:


#include <iostream.h>

int main()
{
long double n1 = 100000000;
cout << n1;
return 0;
}



The program is good, but print:
1e+08

I want that print:
100000000

What i can do it?

Greetings...
by d31mOZ
Sat Apr 01, 2006 8:10 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 56775

727 --> why RTE?

Each time i submit the next code, i get RTE, WHY??????



#include <iostream.h>
#include <stdio.h>
//727

int Prioridad(char c, bool t)
{
int prior;
switch (c)
{
case ')':
case '(': if (t) prior = 5; else prior = 1; break;
case '+':
case '-': prior = 2; break;
case '*':
case '/': prior = 3 ...

Go to advanced search