This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################## | |
# | |
# This file is part of FORCE - Framework for Operational Radiometric | |
# Correction for Environmental monitoring. | |
# | |
# Copyright (C) 2013-2020 David Frantz | |
# | |
# FORCE is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct students *students_new(void) { | |
struct students *stds = malloc(sizeof(struct students)); | |
stds->length = 0; | |
stds->head = NULL; | |
return stds; | |
} | |
void students_push_back(struct students *students, struct student *student) { | |
struct students_el *el = malloc(sizeof(struct students_el)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
int count = 0; | |
while(1) { | |
printf("count: %d\n", count++); | |
int i; | |
int n = scanf("%d",&i); | |
if (n != 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var s []int | |
for { | |
var n int | |
fmt.Println("Please enter the number or zero to exit") |