Well I thank god no one on Failblog is a programmer...
I taught that the 'for' loop maybe needs to check if the iterator needs to be changed, and if you let the program run for like zillion years...
Type: Posts; User: yann
Well I thank god no one on Failblog is a programmer...
I taught that the 'for' loop maybe needs to check if the iterator needs to be changed, and if you let the program run for like zillion years...
Lol that made me laugh... No really i had no idea, I guess I'm an idiot right now...
...Yeah?
So, I'm working with an Arduino.
I want to edit some of the core functions and i need to know - what is faster, a "for" or a "while" loop?
while(1)
{
do;
};
Hi guys! Some of you maybe know me, or maybe not...
Anyway I would like to make a 2d game (something like a strategy game) in C or C++.
Would you be kind enough to explain how can i make it?...
It's funny, I used to love playing with Lego's, and its really never stopped, the Lego's just take new shape~
---epic
Hi people here I am again to ask you; how do I make a GUI in C?
I have Linux...
OK, I just used "%s" instead of "%27[a-zA-Z0-9_-]"...
Sorry quzah, don't get upset so easy, i didn't notice that newline!
here...
while((strcmp(pn,cmd3) != 0) && (searchn < 2)){
printf("\n pn= \"%s\"\n",pn);
fflush(stdout);
printf("search for\n");
scanf("%27[a-zA-Z0-9_-]", pn);
searchn++;
}
Yes, now I fixed that, but it still skips my input...
Well, pn is still name.c, because I haven't changed it yet, what is wired is that program doesn't stop when it gets to scanf function, or when the searchn is higher than 2...
Well, maybe you didn't understand me in a proper way, I said "it makes a c file(it doesn't compile IT)" I didn't said that my program doesn't compile...
OK, but still I have the same problem)=.
I know it does... But, read my first post, there aren't any problems with that, the problem is somewhere here:
while(pn != cmd3 || searchn<2){
printf("search for\n"); ...
o, MY(this) program does compile with no errors, but it makes another c file, which is another story...
Hi, this code should make a c file(it wont compile it) by my preferences...
#include <stdio.h>
#include <string.h>
#define txt ".txt"
#define dat ".dat"
#define c ".c"
#define cmd1...
OK, idea is very very simple, this is the second time i use this title :P.
I know that eg. means for example, but my whole life I was thinking that ie. means "in example" o.0
Hi, my new project is called SPM, which stands for "Science Projects Manager/Maker".
It will be a program which allows you to create a science projects, it will first ask what to listen to, ie....
Cool, thanks! It works!
But, how can I make a file that has the name I inputed?
So...no, eh?
Hi guys, I am making a program that should be able to make files/variables using a value of another variable...How do I do that? Here is what I have done so far.
#include <stdbool.h> ...
Could you post the whole code, if you want?
I am calculating independent angle for both servos :).
It is not "fake" just because no one haven't used it, it IS actually possible, take third dimension, is just a folded version of second...
No, I actually didn't do that yet but here is what i want...The turret first adjust his angle for left and right, and the for up and down, one servo is for left and right and the other one is for up...