My bro will fixed it. Thanks for your time.
Type: Posts; User: KoG Metalgod
My bro will fixed it. Thanks for your time.
The issues is that my Vigenere encryption program works to the point where you can encrypt things, and almost decrypt things perfectly. 9/10ths of the time the decryption works but when it decrypts...
well I allready knew that the intergers would not fit but assumed that it would convert each digit to there ANSI value.
#include <stdio.h>
int main()
{
int x;
for(x=48;x<58;x++);
...
My programming partner and I have been working on a cool project dealing with binary/hex and it is working great. Everything is just about done and the mathematical side is finished moving into the...
you could use something like this and modify it to work for you
int main(){
char farray[200];
int x;
FILE *fp;
fp = fopen("c:\\t3.txt","r");
x=0;
if(fp==NULL) printf("NULL);
I don't understand why flamers come to boards, its a question and an answer. Thanks Noir for the response.
a 32 bit machine max is 2^32 -1, thats 32/8 (bytes/bits) which is 4 bytes max able to compuate on 1 variable on a 32 bit machine.
Ok question about fgets(), I wanted to try it out in an old program of mine.
#include <stdio.h>
int main()
{
unsigned long int x,y;
printf("welcome to the gfc:\n");
fgets(x, sizeof x,...
Here is the blind truth, I don't care why we have to do it a certain way. If you had a jigsaw skill saw, you don't use your hand to test the blade. Its common sense to lose the gets() (even though I...
ints are 2-bytes (2^16-1), doubles are 4 bytes(2^32-1), chars are one byte(2^8-1). All though ints are machine based and the OS can have them as for the current general standard is 2 bytes on a 32...
Just to weight in on a heavy conflict. What does fgets() use or do differently then scanf() and gets(). Also back in the day when I was learning C at my old summer job, the book "C for dummies"...
awesome post *votes to move to official Tutorial section*.
well I was working on the code in a back room and has no network connections, so I quickly ran across the building to a computer with internet to post the code. I was in a rush and made sure I posted...
here is the code, if you have any ideas help me out please.
#include <stdio.h>
#include <conio.h>
int main()
{
printf("test for robot");
whats so hard about typing "int main()"? You sound like once of those half c++ converts who has to litter everything up and fight tooth and nail for your c++ ways. Follow the standard that way when...
-1 is assocated with the newline, somewhere in your code add on and if getchar() != '\n';. I would tell you where to add it but you have only posted a cool function. Thats the only reason why I could...
All I can do is help you alittle bit, mytime is undefined.
I dont have time to code it out but make everything a string and store it in an array is the ghist of the idea.
why would you want to store the phyical "whitespace" or do you want to know the amount of whitespace and hold the value in an array/pointer?
bro come on, did you even try? Did you go to class? Do you need with the syntax or the body of the program. Its strange that you know its called printf() and scanf() and yet have no clue to use them....
malloc will assign the amount of memory that you need like void *malloc(size_t n) and returns NULL if there is not enought mem for the req. void * malloc is a great way to have a pointer to the array...
I complied this with ease in Dev C++ ver 4.9.9.2. Maybe you have not have it set in C. Try saving it as a .C file then try. I cant see you error I am at school so I am just guessing.
I would put money that you didn't save the file as .c and you have it on default .cpp *c++ file*. Thats why it wont work. Also use Dev C++ IDE on bloodshed.net, I have been using it for a while and...
Looking for a place to find C videos, not to post them.
have someone write you a shell script to auto log you in, as far as it beging root I would say. Thats a bad idea root should be left to the jedi.