User Profile

Collapse

Profile Sidebar

Collapse
mitola
mitola
Last Activity: Feb 15 '08, 08:56 PM
Joined: Sep 19 '07
Location: Slovenia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mitola
    started a topic deleting part of file and modyfing it
    in C

    deleting part of file and modyfing it

    [code=c]#include <stdlib.h>
    #include <stdio.h>
    #include <string.h>


    struct oseba
    {
    char ime[20];
    char priimek[15];
    char ulica[50];
    char mesto[50];
    char tel_st[10];
    short ucni_uspeh;

    int stevec;
    }pod[4];





    void predelaj_osebo( struct oseba pod[],FILE *fd)
    {int izbira;int i=0;...
    See more | Go to post

  • mitola
    replied to ADREEs book - mitola
    in C
    will possibly anyone answer?
    See more | Go to post

    Leave a comment:


  • mitola
    replied to ADREEs book - mitola
    in C
    and where can i see how to color the code etc.
    See more | Go to post

    Leave a comment:


  • mitola
    started a topic ADREEs book - mitola
    in C

    ADREEs book - mitola

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>


    struct oseba
    {
    char ime[20];
    char priimek[15];
    char ulica[50];
    char mesto[50];
    char tel_st[10];
    short ucni_uspeh;
    }pod[50];





    void vnos(struct oseba pod[],FILE *fd)
    {int i;
    fd=fopen("DIJAK I.BIN","a+");...
    See more | Go to post

  • mitola
    started a topic c binary searching for adress mitola
    in C

    c binary searching for adress mitola

    [CODE=c]#include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <conio.h>


    struct oseba //struktura osebe , ki jo kasneje uporabljamo v datoteki
    {
    char ime[20];
    char priimek[15];
    char ulica[50];
    char mesto[50];
    char tel_st[10];
    short ucni_uspeh;
    }pod[100];


    void vnos(struct oseba pod,FILE...
    See more | Go to post
    Last edited by Ganon11; Nov 30 '07, 06:05 PM. Reason: Please use the [CODE] tags provided.

  • mitola
    replied to Binary adress book-minor syntax -- mitola
    in C
    void vnos(struct oseba pod,FILE *fd)
    {
    printf("Vnesi ime: "); scanf("%s",pod. ime);
    printf("Vnesi priimek: "); scanf("%s",pod. priimek);
    printf("Vnesi ucni uspeh: "); scanf("%d",&pod .ucni_uspeh);
    printf("Vnesi ulico in st: ");scanf("%[^\n]s",pod.ulica );
    printf("Vnesi ime mesta: "); scanf("%s",pod. mesto);...
    See more | Go to post

    Leave a comment:


  • mitola
    started a topic Binary adress book-minor syntax -- mitola
    in C

    Binary adress book-minor syntax -- mitola

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>


    struct oseba
    {
    char ime[20];
    char priimek[15];
    char ulica[50];
    char mesto[50];
    char tel_st[10];
    short ucni_uspeh;
    }pod;

    void vnos(struct oseba pod,FILE *fd)
    {
    printf("Vnesi ime: "); scanf("%s",pod. ime);
    printf("Vnesi...
    See more | Go to post

  • mitola
    started a topic poinet on struct corection
    in C

    poinet on struct corection

    i know its easy to corect that mistakes but dunno i simply cant find them.

    14 new types may not be defined in a return type
    14 two or more data types in declaration of `vnos'

    [CODE=c]#include <stdlib.h>
    #include <stdio.h>
    #include <string.h>

    struct galaxy{
    char tokra[50];
    char tauri[50];
    char big[50];
    char small[50];
    }...
    See more | Go to post
    Last edited by Ganon11; Oct 29 '07, 01:18 AM. Reason: Please use the [CODE] tags provided.

  • mitola
    started a topic pointer on field. mitola
    in C

    pointer on field. mitola

    C language:
    [CODE=c]#include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int main()
    {int nak[50];int *i;
    srand(time(NULL ));
    for(i=&nak[0];i<&nak[50];i++)
    {
    nak[i]=rand()%50+450;
    }
    system("pause") ;
    return 0;
    }[/CODE]


    nak[i]=rand()%50+450; here is something wrong but how can...
    See more | Go to post
    Last edited by Ganon11; Oct 14 '07, 04:42 PM. Reason: Please use the [CODE] tags provided.

  • mitola
    started a topic C strings and pointers mitola
    in C

    C strings and pointers mitola

    C program language:

    [code=c]
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <iostream>


    int main()
    {char a[100],b[100],*pa,*pb;
    pa = &a; pb = &b;
    scanf("%s",*pa) ;
    scanf("%s",*pb) ;
    printf("vnesi 2 niza / input 2 strings");
    printf("\nstrin g:...
    See more | Go to post
    Last edited by Banfa; Oct 14 '07, 01:09 AM. Reason: Added code tags as per posting guidelines

  • i dont know something about files. how can you modify the text by alpahabet. its not meant every leter but the lines for exm.

    not modifyed:
    number
    leter
    root
    car
    auto

    modifyed:
    auto
    car
    leter
    number
    root

    and how can you compare two lines when doing with files.
    See more | Go to post

    Leave a comment:


  • mitola
    started a topic searching hardrive or CD drive for file
    in C

    searching hardrive or CD drive for file

    im trying to do a browser for hard drive or cd drive. with what functions i can aces a file on the dsk and open it?
    how can i aces certain file that aint in the same program as c++ program?
    See more | Go to post

  • mitola
    replied to Saving int,char etc... in C++ to work with later
    in C
    veeery nice , i was also looking for a nice pointers tutorial very useful. ill get my hands on work right now
    See more | Go to post

    Leave a comment:


  • mitola
    replied to Saving int,char etc... in C++ to work with later
    in C
    em could you just post link it give me strange results and i do not find corect article i think
    See more | Go to post

    Leave a comment:


  • mitola
    replied to Saving int,char etc... in C++ to work with later
    in C
    thanks mate. ill try my best
    See more | Go to post

    Leave a comment:


  • mitola
    started a topic Saving int,char etc... in C++ to work with later
    in C

    Saving int,char etc... in C++ to work with later

    i want to ask how can you save like for example char , or a string in c++ for multiple uses. like when you close the program and when you reopen it you can see what you entered.
    i need this to know how exacly ill make the adress book which can be used quite useful
    See more | Go to post

  • mitola
    started a topic C++ FILE function
    in C

    C++ FILE function

    I managed to actually create a file. but then i have problems beacuse i dont know hot to write something in it and read it. i like this function beacuse you can save your data in it.

    so im asking you how to make program able to write and read and then also save it.

    [code=c]
    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    FILE * pFile;
    char buffer...
    See more | Go to post
    Last edited by sicarie; Sep 24 '07, 03:58 PM. Reason: Code tags
No activity results to display
Show More
Working...