![]() |
Show 20 posts from this thread on one page |
VisorCentral.com (http://discussion.visorcentral.com/vcforum/index.php)
- A place to test things out (http://discussion.visorcentral.com/vcforum/forumdisplay.php?forumid=24)
-- C code play (http://discussion.visorcentral.com/vcforum/showthread.php?threadid=17349)
C code play
Using the basic [CODE] tag:
Now using the [PHP] tag:code:
#include <stdio.h> #include "localHeader.h" int main( int argc, char **argv ) { int iVar = 1; double dVar = 2.3; char cVar = 'x'; char *str = "This is a string"; printf( "Testing 1, 2, 3\n" ); if ( iVar ) { do { dVar -= 0.1; } while ( dVar > 0.0 ); } else { printf( "foo\n" ); } return 1; }
PHP:
#include <stdio.h>
#include "localHeader.h"
int main(
int argc,
char **argv )
{
int iVar = 1;
double dVar = 2.3;
char cVar = 'x';
char *str = "This is a string";
printf( "Testing 1, 2, 3\n" );
if ( iVar ) {
do {
dVar -= 0.1;
} while ( dVar > 0.0 );
} else {
printf( "foo\n" );
}
return 1;
}
Hmm, if it did not put the PHP: in befor the code block, this would be very usable for C code.
What is that font that is being used in [code]
code:
Sample Code
quote:
Sample Code in Arial
Sample Code in Times
Sample Code in Courier
Sample Code in Century
Sample Code in Lucida Console
Sample Code in Verdana
| All times are GMT. The time now is 11:54 PM. | Show 20 posts from this thread on one page |
Powered by: vBulletin Version 2.3.4
Copyright © Jelsoft Enterprises Limited 2000 - 2016.