FYI, there are no global variables in the above code snippet at all. It's like debating whether "The King of USA has a hat or not".jdc {l Wrote}:Count chars and lines from a filewas debating a bit on global's.
- {l Code}: {l Select All Code}
int count_chars_lines (FILE *f, int *nl, int *rc )
{
int rc = 0;
int rl = 0;
while((get(f)) != EOF ){
if (c== '\n'){
rc++;
}
}
*nl = rl;
*nc = rc;
}
No, they are not. I have absolutely no idea where you get that from.jdc {l Wrote}:but what it seems is that global's in C are the pointers
int hi_I_am_a_global_variable_but_not_a_pointer;
int *hi_I_am_a_global_pointer;
int main(void) {
int hi_I_am_neither_global_nor_pointer;
int *hi_I_am_not_a_global_pointer_by_no_means;
}
I've told you, your problem is that you want it all at once. Learning programming requires patience, you have to do small steps, and only one step at a time. No library can magically replace your lack of knowledge and experience, you have to build that up on your own, little by little.jdc {l Wrote}: people looking to enter in to C, and have the same problem as me
I'm bzt, and yes, that's correct I'm an expert. I have more than 30 years of programming experience, not just in C but in many other languages as well (compiled and interpreted alike). And I'm not only expert on most of the commonly used C libraries, but I have even written lots of libraries myself.jdc {l Wrote}:BZk which time you talk, you talk as you are a expert on which library.
Html is not a library, and you cannot do games in pure html. You would need some code to do the logic and interactions, either Javascript on the client side or something else on the server side. Html alone can't do that.jdc {l Wrote}:First library's are extensible; html is not for games but you can do them in html.
Yes, you can. I've learned programming behind the iron curtain where source code and manuals were literally non-existent. Everything we knew we've learned from studying the disassembly and doing reverse-engineering. Simply there was nothing else to study from back then.jdc {l Wrote}:2º best to learn is from code and manual. Can't just learn from manual or just code.
Ncurses is neither a tool software, nor a development tool.jdc {l Wrote}:3º no one talked about games, is a tool software. it says in topic development tool
Why are you posting here if you're not interested in people's responses?jdc {l Wrote}:4º "you do not make sense to me" who care about your opinion?
That's true.jdc {l Wrote}:5º C is modular and cross platform; Much more then C++ the more rules you create the less modular it becomes (restrictive).
See? This is not how you do graphics at all. Take a look at one of my simple C projects, xstoneage to see how to add X11 graphics to a C code. Hint: there's no graphics.h, and knowing how to invoke X11 functions syntactically isn't enough by far. You have to understand the semantics too.jdc {l Wrote}:6º In C you can work width all kind of library's if next we want to add graphics from graphics library we can add them (graphics.h) (not easy but can be done).
I have hard time interpreting this. I wonder if you can do whatever you want with xstoneage for example, provided its code is Free and Open Source.jdc {l Wrote}:7º we have access to the source code we can do whatever we want is not a frame work.
Start listening to C expert's advice.jdc {l Wrote}:8º stop bugging people width your opinion?
Why would I learn ncurses when I already know it, have used it, what's more, I'm in a position that I could actually write ncurses?jdc {l Wrote}:9º want to help? go on and learn ncurses very stable project. read the posts comments on Youtube every one say that...
Again, what has this to do with anything? Are unity projects development tools too? (sarcasm, only a rhetorical question)jdc {l Wrote}:10º Unity projects are not 100% a topic for this forums, since you can't access the source code of the engine.
bzt {l Wrote}:Html is not a library, and you cannot do games in pure html. You would need some code to do the logic and interactions, either Javascript on the client side or something else on the server side. Html alone can't do that.
Both of these rely on a server side logic as I've said. Actually implemented by the webserver's URL routing. (Or if you download the files locally, then on your OS's path resolution and filename lookup).Technopeasant {l Wrote}:bzt {l Wrote}:Html is not a library, and you cannot do games in pure html. You would need some code to do the logic and interactions, either Javascript on the client side or something else on the server side. Html alone can't do that.
Well, actually...
https://en.wikipedia.org/wiki/Hypertext_fiction
And even...
https://libregamewiki.org/The_night_wol ... of_Venzone
Because without a game state and game logic, then they can't be called games, simple as that. They are nothing more than interactive books, which, don't get me wrong, can be fun on its own right, no doubt about that. Just not games per definiton. Same goes to other genre too, for example is Bandersnatch fun? You bet it is! But can you call that interactive movie a real game?PeterX {l Wrote}:Why should "The night wolves..." and similar sites not count as games? They don't have an official data state but nontheless they are games.
Users browsing this forum: No registered users and 1 guest