View unanswered posts | View active topics It is currently Mon Aug 03, 2020 11:28 am

Reply to topic  [ 4 posts ] 
Forum for general C questions, tips, etc 
Author Message

Joined: Wed Jun 25, 2008 6:07 pm
Posts: 46
Post Forum for general C questions, tips, etc
Some problems and solutions I've seen here have nothing to do with platforms, and are really just questions about how to get things done in C. It would be nice to have an area for these types of things without having to imply that they are somehow specific to NXT, VEX, etc.

[edit] I suppose in retrospect, those sorts of things could just as easily be put in with the 'general discussions.'

Tue Oct 07, 2008 9:52 pm
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: Forum for general C questions, tips, etc
you are right, SOME problems are actually general C programming problems.

a) RobotC doesn't keep ANSI C99 standards and so it's particularly diffferent from ANSI C, and
b) SOME RobotC programmers are C programming starters, so it's all one to them if it's a C or a RobotC programming problem

HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}

Wed Oct 08, 2008 3:47 am
User avatar

Joined: Sat Sep 20, 2008 12:16 pm
Posts: 106
Location: Curently fighting aliens on P3X-828
Post Re: Forum for general C questions, tips, etc
But then again, Avidprogrammer does have a point. I also program in C++, and I use Dev C++ for that. I have had many problems with programming in C++ as I made my way up the learning curve, and I still do to this day. So shall I state again that I agree with Avidprogrammer. :)

Sorry, your program could not be downloaded. Please reboot your computer.
FTC Team #2959 Team Smash Bros CLICK HERE.(or click www)
What the world needs is more geniuses with humility, there are so few of us left.


Sat Oct 18, 2008 8:03 pm
Profile WWW

Joined: Wed Oct 08, 2008 4:14 am
Posts: 8
Post Re: Forum for general C questions, tips, etc
how many posts in total are just about general C code (and are not related to robot programming)?

Sun Oct 19, 2008 6:36 am
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.