Thanks for the help Sebastiani, always helpful:)
Type: Posts; User: Stenland
Thanks for the help Sebastiani, always helpful:)
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//const char EOL = '\n';
/* decompress(char a)
Denne metoden leser inn en char(int) i form av en byte.
Deretter puttes de 4...
Thats a direct copy paste yes. Thats how I've been told to do command line arguments for now at least.
The c was a char, I then changed it to an int after seeing your post and it didnt change...
Hi
I'm currently writing a program that can take a file of ascii symbols and compress each symbol into 2 bits, and then decompress it again and print out the file. My decompress method works 100%...
Nevermind I am an idiot
Thanks again Sebastiani for taking the time to learn me these things, really appreciated and it is going to be a massive help for me(I'm doing a course at uni this semester where we basically have to...
Thanks a lot for your help Sebastiani, learned some valuable lessons:)
One last question for anyone that has time, that is related to you showing me that you can max the input size in the scan f...
Thanks for your help so far. Unfortunately the problem still persists after I removed the amperstand. The rest of the code is identical to what I pasted on these boards. Did it work properly for you...
Variable names and printf segments are in norwegian, but that shouldnt really matter:
#include <stdlib.h>
#include <string.h>
int vocal(char a)
{
if(a == 'a' || a == 'e' || a == 'i'...
I have allocated enough space, both arrays are size 10(im only using very short test names, in my example a name with the length 6)
Vowelcounter has an initial value of 0
The 2 arrays are...
Hi
I'm currently learning C and I have ran into an issue I cant figure out.
I am trying to copy one char from a char array into another, and I am getting a segmentation fault.
The code...