Hello, I wrote this program for my Intro to Digital Systems class to convert a base 10 number into a Binary base 2 number string. It works perfectly except for some numbers it slams a number in front...
Type: Posts; User: acidbeat311
Hello, I wrote this program for my Intro to Digital Systems class to convert a base 10 number into a Binary base 2 number string. It works perfectly except for some numbers it slams a number in front...
I'm outputting text to an lcd. I want the text to scroll every .5 seconds. I can easily do this every second. I made this test program ...
#include <stdio.h>
#include <time.h>
int main()
{...
I am having a hard time understanding how to get the output i want.
I want to say this...
temp_var = strchr(string, "=");
however what do I declare temp_var as? and how would I print...
I would like to know how to print characters after ')' has been read... I need this to extract the data from a file that contains 100's of .pls files which are used for connecting to web streams,...
yes, i've read the man file. What I want to do is say do this until '\n' is reached. But i get an error whenever I do this. The example i posted sort of works, however the output looks more like...
I need help with a multidimensional array that gets its data from a file. I want to say....Do this until end of line is reached, then go to the next line to fill the next row of data.
int i;
...
I'm creating an internet radio device that has an LCD interface with a keypad. I want to load MPLAYER when I push a button to open a stream. How can I launch mplayer from within in the c file?
I should have been a bit more specific. What I am after is the IP you are assigned by a central server. My setup is that computer 1 assigns me an IP. I want to find that IP and the current IP given...
I'm a linux user and would like to create a basic program that outputs the local and internet IP that is currently in use by the machine. Does anyone know where I might obtain these 2 things from the...
first we'd need to know what compiler you are using. I don't believe there is a built in c compiler in windows.
However, this may be quite confusing if you haven't even touched arrays yet. It took me forever to understand this stuff. there is also another command you might want to check out called toupper()....
There is one thing that can really minimize the work. Letters can be converted to numbers. So if you have 'A' - 'A' you have then number 0. So my suggestion would be to fill the array like this...
...
i forgot to add that toupper is part of the ctype.h library.
I'm not 100% sure on this. but wouldn't you also need the toupper() command to make sure that the input is made uppercase. I would give this a try at the end.
toupper(answer);
in my c class the professor uses the terms call by reference and call by value. I can not find these in the book. could anyone explain this to me?
oh my. today is not my dad. i printed to the input file.
Dude, you guys rock. I still can't believe i made that small error with the &. Now i have one problem it opens, it reads, but the printing does not work.
#include <stdio.h>
#include <string.h>...
I am using linux and i'm haveing a problem with this code. It doesn't even seem to open the file. I also tried useing the gets function but GCC warns me that gets() is dangerous and should not be...
yea, I'm very sorry. I read that on the homework for the messages. I was just too excited that i knew how to do it. next time i will be more careful. If an admin would like to take down that last...
I just handed in an assignment like this last week for my programming in c class. It's just a simple histogram.
void histogram(double input[],double range, double max, double min,char fname[],...
If someone could help me with this code I would be very greatful.
I need to get the depth value out of the main function so i can use it in the function celcius_at_depth. and then how would i get...