Skip to content
/ FP Public

Completed assignments for Programming Fundamentals lectures at university.

License

Notifications You must be signed in to change notification settings

AntonC9018/FP

Repository files navigation

Important!

You need to compile with the GNU C++ Compiler (gcc)! The code makes extensive use of stack arrays of size not known at compile time.

For example code like this will not work with MSVC:

int main() 
{
    int n;
    printf("Introduceti n:");
    scanf("%i", &n);

    int nums[n];
}

To compile it with MSVC, you need to preallocate the buffer:

#define BUFFER_MAX_SIZE 128

int main()
{
    int nums[BUFFER_MAX_SIZE];
}

Or do a malloc:

int main() 
{
    int n;
    printf("Introduceti n:");
    scanf("%i", &n);

    int* nums = (int*) malloc(n * sizeof(int));
}

Any PR's are welcome. Leave a star as a way to say "Thank you".

About

Completed assignments for Programming Fundamentals lectures at university.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published