Posts by Lorhan Sohaky • 56 points
4 posts
-
3
votes3
answers1303
viewsA: What is a git submodule for?
Submodule is for you to manage your repository modules! What does that mean?! Let’s say you’re creating a program and need to add a library you found on github to facilitate development. You can add…
gitanswered Lorhan Sohaky 56 -
0
votes0
answers91
viewsQ: Cache Storage with Python
I’m trying to use WPA in a Flask app. I wonder if it is possible with Flask or Python to store my pages in the browser’s Cache Storage? From what I’ve seen so far I’ll have to use javascript, but…
-
0
votes2
answers104
viewsA: How to pass structure data to a text file?
You can use the function fwrite. #include <stdio.h> int main (){ struct televisao tv; FILE *pFile; pFile = fopen ("arquivo.bin", "wb"); fwrite (tv , sizeof(tv), 1, pFile); fclose (pFile);…
-
-1
votes2
answers556
viewsA: Create a function that returns random number in C
The C language itself provides a function for generating "random" (pseudo random) numbers. To make the number "more random", you can use the time to sow the function. Required headings: #include…