Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Too stupid to google - CHECK.
Too stupid to even formulate a question - CHECK.
Too lazy to do your homework yourself - CHECK.
You'll never make it as dev. Go and flip burgers at McD, maybe that's something you could succeed at. -
no, it's the place for devs to rant. We are not simulating anything neither in C nor D or Z or any other char.
-
// i like to avoid arguments
void main(){
while (1){
printf("go");
sleep(60);
printf("stop");
sleep(60);
}
} -
Guys don't be so rude! Help a bro out.
Here's your program :) It may take a few minutes to run, c is an old language. Just give it a while.
#include <stdio.h>
int main(){
FILE* f = fopen("traffic.txt", "w+");
while(1){
// Ask user for directions
fprintf(f, "Where to?\n");
}
return 0;
}
Traffic controller simulation program in c
question