then use if/else statements?
Type: Posts; User: principii
then use if/else statements?
I figured it out. I had to use autoconf.
Maybe something like this:
void enter_grade(int subject, float grade);
int x=0;
for(;;)
{
int subject;
float grade;
printf("Enter subject:\n\t0.Science\n\t1.Social...
scrappy - I downloaded the source code for all of the programs included with unix net prog, and took unp.h from it (i didn't want to type it up myself), stuck it in a directory with subdirectories...
A little bit off-topic, but I've noticed in the code that he just made more readable, he did:
return-type
func-name (type arg)
{
...
}
I've been screwing around with Sockets programming for a little while - just to see what it's like.
#include "../unp.h"
#include <time.h>
int main(int argc, char **argv)
{
int ...
$rpm --help
$rpm -ivh <package>
That was exactly my problem! Thanks!
I did:
#include <stdio.h>
#include <string.h>
int main(void)
{
char str[80], backwards[80];
Thanks very much! I understand now.
I'm doing an excercise in a book I bought, but I figured I'd go an extra mile. And i'm having a lot of trouble in getting this to work. Here is what I have (the part that works.)
#include...
Do you think you might be able to post a quick example of how snprintf could be used to output information?
I've heard very bad things about sprintf() and that it should not be used. What kind of security risks might it impose? Would printf() be a security hazard? What alternatives are there that provide a...
Just popping in. For what reason would you need to use a unix-based operating system? It appears to me, that it would be of no use to you. It takes time to learn the complexities and nuances of a...
That helped a little bit, but it wasn't what I was really looking for. I want to know in what type of situations you would use the different printf()'s. And how to use them so that your program...
Hello all. I've been reading through various materials and have come to confuse the living kaboodles out of myself. This might be asking a lot, but could someone please explain the differences...