#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int number, flag=1;
int w,h,n;
int tall,wide,position,x=0,y=0,a=0;
char line[50],common[50];
FILE *ifp;
Type: Posts; User: SavesTheDay
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int number, flag=1;
int w,h,n;
int tall,wide,position,x=0,y=0,a=0;
char line[50],common[50];
FILE *ifp;
hey dude! whats going on....of course you know me just now starting to work on this! hope Discrete ended up ok...did WAR III work for you? tell Neil im sorry i havent made a copy for him yet...ill...
also...what exactly does the:
fgets(line,100,ifp);
line do....i understand the concept..it stores the input in variable line....it the second parameter, 100, the amount of characters to read...
I've got a question about functions.....here is the current code that I have...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
main()
{
Sounding arrogant would be naming myself:
"THESMARTESTPROGRAMMERINTHEWORLDWHOHASSEXWITHYOURMOTHEREVERYNIGHTANDWHOKNOWSEVERYTHING"
or I could go with something as BOLD and chicken **** such as...
It's a band, you dolt. You really aren't funny.
Hello.
I have a few questions for everyone. We have a large programming assignment we are working on. We have to make a program which arranges rectangles on a giant x,y grid (a bigger...
Well, I got my fgets() working...but how do I recognize when I come across a space in my line? What is the space character...when I come across a space, I want to stop...
[code]
#include <stdio.h>
#include <string.h>
main()
{
int tall,wide,size,x=0;
char line[100],temp[100];
FILE *ifp;
dude! hahaha....i can't believe you read that this late....it's 2am and our programming is finally working....you gotta give me your e-mail addy and name so I can write you sometime....how did the...
What is The VK_Pause, We're suppose to write a program that exits when someone strikes the Break Key, and we don't know how to accomplish this.
well here is my problem....this might be a bit hard to explain.....we have a structure containing the 3 fields firstname, lastname, and phonenumber.....the program we are making is like an address...
Does anyone know the ascii value for the pause/break key?
that code works fine when i pass a q.....but if i don't pass anything the code flips out and shut down....suggestions??
mmmm....I have a real quick question I hope someone can answer within an hour and a half....heh....here's the thing......
We need to create a way to put our code into "silent mode"....if the user...
Fayetteville Rocks!
Try something like.....
#include <stdio.h>
#include <conio.h>
int main()
{
int x,y;
mmm....i think i fixed my problem....i just realized that i was trying to send an array over the port...
char send1[5]="1011";
outportb(0x378,send1);
that was a real dumb mistake....i...
mmm....well here it is...the program I've been trying to work for awhile now.......it is supposed to offer chatting over the parallel port with 2 DOS based computers...it's not working though and I...
gr.........remove the 400 lines of commenting before you post it, so everyone can read the code better..
while (receive[x]!='\0')
{
int Byte=Read_Input();
if ((Byte!=0) && (y==0)
{
restoreBits(Byte);
restoreSend1();
y++;
...
I made one during Chemistry class...it's pretty simple...goes like this:
char FullBinary[9]="10101100";
int Binary[8]={128,64,32,16,8,4,2,1};
int x,Total;
for (x=0; x<=8; x++);
...
weird...i'm in a hurry now so I don't really have time to mess with it...but off the top of my head I would *guess* that when the characters are being read in, something funny is going on.....since...
That was one problem...the other problem was this:
This was setting the MAX to what J was....you are using j for the loop counter...you want the MAX to be the VALUE of j, then store the...
Er. Can anyone tell me the difference between calloc(); and malloc(); To me, it looks like they do the same thing.........