does this function work only for numbers?\nI mean cant it work for any thing else...If not do u know a substitute that would perform such function on symbols
123079
It works only for numbers *directly*, but through simple use of an array, you can make it work with almost anything.\n\nFor instance, if you want a random day of the week, consider the following code snippet:\n\nconst char *Days[7] =\n{\n"mon","tue","wed","thu","fri","sat","sun"\n};\n\nThe expression Days[rand () % 7] will return one of the above strings at random.\n\nThe secret here is to use an array as a mechanism to translate a number into a string.
572058
Excuse me for my poor C knowledge but ATOL already converts a string of numbers into an actual number. Therefore if you take "strlen" of ATOL, you're trying to calculate the length (# of digits) of a number instead of a string, which strlen will only accept.
47874
I understand you want to convert A,B,C... to {0,1}, right? then. In C, all strings are character arrays, otherwise collection of characters. by converting each character u can do. as u can see each character both printable and other have a numerical value. it is in a table, ASCII table. Here the code\n----------\nvoid binary(char ch)\n{  if(ch>0) binary(ch/2);\n   printf("%d",ch%2);\n}\nvoid toBinary(char*text)\n{  for(i=0;text[i]!='&#92;0';i++)\n   {  binary(test[i]);\n      printf("&#92;n");\n   }\n}\n----------\n\ni hope these two functions helps you.....\ngood luck.
366138
I'm assuming you mean *only* the four common operators; as this is a very well known puzzle (called the 24 game, or something similar).\nIn that case, its actually impossible (I have written a computer program to prove this for me). Of course, its possible if you allow various other things like ! or ^, but not with just +-/*.
131134
It seems undefined since for x <= 0 and x != odd number, x^x doesn't work out so well.  If it's x->0+, then it's just 1.
374338
Working above is good until this step:\n\n2 + 0.8x >0.9(x + 6)\n2 + 0.8x >0.9x + 5.4)\n0.1x > -3.4 ← Symbol error in this line\n\nShould read 0.1x < -3.4\nie x < -34
558458
For the first one, 4<-2<6 does become -2>x>-3 (you do have to flip the signs) and yes, it is still an "And" statement, just in reverse (or in other words, -2>x>-3 is the exact same thing as -3<x<-2). For the second one, you don't actually have to multiply by 10, but you should get the same answer either way. I got 0.84<x<1.76.
597269
1) You should try making a flow-chart to see the issues here...\n\n2) Your comparison:  if %1==%1 (and also for %2) will ALWAYS BE TRUE and will never get to parts of your code!
163249
these are just ascii codes\n\njust press alt key + any number\n\neg\n\nalt + 65 = A\nalt + 66 = B\nalt + 1 = symbol;\netc..\n\nin this way u can choose ur symbol so keep trying...............
389844
☺☺☺☺☺☻☻☻☻☻♥♥♥♥♥Alt+1=☺ Alt+2=☻Alt+3=♥♥♥♥\nand you can do a bunch more.
547682
2x + 28 < with a line under it _ <_   6x\n\nsorry don't know how to add that special character in, but it is only one thing like the +\n between the 28 and 6
413787
Hello,\n\nWell, I havent used VB 6 for a long time (i using c++ now) but if I not mistaken it does write integer and infact any data type (including the ones you may have created yourself) to files...\n\nIt'd be better if you could post your code.\n\n[]s
554199
they would not be functions because for the same value of x there would be two values of y.\nfor example: if x=1, then y = 1 or y = -1.\nalso the graphs of the functions do not pass the vertical line test\n\nhope this helps!!!
62890
I believe that modulo "%" is an integer operator. For floating point numbers, you should use the function "fmod", which is a standard function whose prototype is in math.h.\n\nFloating point is useful for a number of things, typically:\n\n- where fractional information is required (although using fixed point arithmetic can suffice here too)\n\n- where overflow is possible, such as if your long is only 32 bits, and your result may be larger than 2^31 - 1\n\nThe float *should* work - perhaps there is a problem with your declaration, or even possibly your compiler (sometimes happens). It is frustrating learning how to program in C and takes quite a while to master - that is why I always laugh at the "Learn C in 24 hours" books.
570124
Please post the snippet of code that does not work. In general, you need to check an array's length before yo uaccess its elements - it's called defensive programming, and good programmers should employ it.
623827
x' € S - {x}\nworks fine...\n( replace the € by the usual "is an element of" symbol )
482267
ha! max is not a builtin function.\n\nbut Math.max is!\n\nalert( Math.max( 10,5,21,54,23) )\n\nworks!