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
#pragma warning (disable : 4996) | |
#include "stdafx.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct apple { | |
int weight; | |
char color[10]; | |
} Apple; |
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 "stdafx.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
/* | |
Задатак 1. | |
Написати програм на језику С који: | |
а) Чита са тастатуре имена три датотеке: једне изворне и две одредишне; | |
b) Отвара као текстуалне, прву датотеку за читање, другу и трећу за упис и читање; |
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 ( | |
"github.com/graphql-go/graphql-go-handler" | |
"github.com/graphql-go/graphql" | |
"net/http" | |
) | |
var queryType = graphql.NewObject(graphql.ObjectConfig{ | |
Name: "Query", |
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 ( | |
"github.com/graphql-go/graphql-go-handler" | |
"github.com/graphql-go/graphql" | |
"net/http" | |
) | |
var queryType = graphql.NewObject(graphql.ObjectConfig{ | |
Name: "Query", |
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 ( | |
"github.com/graphql-go/graphql-go-handler" | |
"github.com/graphql-go/graphql" | |
"net/http" | |
) | |
var queryType = graphql.NewObject(graphql.ObjectConfig{ | |
Name: "Query", |
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> | |
#include <string.h> | |
#include <stdlib.h> | |
#define ROW 4 | |
#define LINE 80 | |
#define FULLARR (ROW * LINE) // Malo macro play-a | |
int main() { |
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> | |
#define MAX 10 | |
int sort() { | |
int x[MAX]; | |
int y[MAX]; | |
int brojPromena = 0; | |
int j = 0; //brojac za novi niz y | |
int temp = 0; |
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
/* | |
* | |
* Zadatak 1. | |
* Napisati program na jeziku C koji od 20 celih brojeva, ucitanih sa tastature, formira niz od brojeva koji su u opsegu od 0 do 100 | |
* a onda ciklicno premesta elemente zadatog niza za m mesta udesno (m je broj zadat preko tastature) | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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
Public Class Form1 | |
//Generisanje niza bez onih pozitivnih i negativnih suma | |
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click | |
Dim i As Integer 'Brojac | |
Dim randomValue As Integer 'Var gde cuvamo nasu random vrednost | |
Dim upperbound As Integer = 40 'Gornja granica | |
Dim lowerbound As Integer = -10 'Donja granica | |
For i = 1 To 40 Step 1 'Idemo 40 puta sa promenom od 1 i svaki put generisemo nasumican broj izmedju nasih granica | |
randomValue = CInt(Math.Floor((upperbound - lowerbound + 1) * Rnd())) + lowerbound |
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> | |
#include <stdlib.h> | |
#include <ctype.h> | |
int main(int argc, const char *argv[]) { | |
int x = 0; | |
int y = 0; | |
printf("Enter X: "); scanf("%d", &x); |
NewerOlder