Search:

Type: Posts; User: krakatao

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,101

    .dat protection

    Hello. I want to write a program with different people data in different .dat files and those files should be protected by password so other people couldn't access. I want to ask what is the best way...
  2. Replies
    9
    Views
    2,265

    When i am using int letter=(int)alpha; ...

    When i am using

    int letter=(int)alpha;

    while ( currentPtr != NULL && (int)currentPtr->alpha<=letter)
    program sorts list by letters ABC...
    when i am using

    while ( currentPtr != NULL ...
  3. Replies
    9
    Views
    2,265

    while ( currentPtr != NULL && value >...

    while ( currentPtr != NULL && value > currentPtr->value && strcmp( currentPtr->alpha, alpha ) >= 0)



    invalid conversion from `char' to `const char*'
    initializing argument 1 of `int...
  4. Replies
    9
    Views
    2,265

    Sort alphabetically and by number

    Hello. I faced a problem trying to sort list alphabetically and then by number.
    e.g.
    surname name A 8
    surname name B 1
    surname name B 2
    Here is my code what i tried so far

    void insert(...
  5. Replies
    1
    Views
    962

    How to avoid repeating

    if ( ( fp = fopen( "list.txt", "r" ) ) == NULL )
    {
    printf("File does not exist. \n");
    system...
  6. Replies
    3
    Views
    1,814

    You're right. Thank you very much :)

    You're right. Thank you very much :)
  7. Replies
    3
    Views
    1,814

    Can't scanf char

    Hello I have i question. why i can't scanf character when i open file e.g.

    if ( ( fp = fopen( "list.txt", "w" ) ) == NULL )
    {
    printf("No...
  8. Replies
    8
    Views
    1,322

    Thanks already solved.

    Thanks already solved.
  9. Replies
    8
    Views
    1,322

    Now I understood. But how to pass them in?

    Now I understood. But how to pass them in?
  10. Replies
    8
    Views
    1,322

    I can print tree values and delete them. Also i...

    I can print tree values and delete them. Also i can insert elements into stack but when i do like this it still does not work.

    void move(TreePtr current)
    {
    Stack start;
    Stack end;
    ...
  11. Replies
    8
    Views
    1,322

    "G" is "end" forgot to change when translated...

    "G" is "end" forgot to change when translated code.
  12. Replies
    8
    Views
    1,322

    Move binary tree elements to stack

    Hello. I am trying to move binary tree elements to stack. I tried to move like this but i am getting empty stack still/.

    void move(TreePtr current)
    {
    Stack start;
    Stack end;
    ...
  13. Replies
    3
    Views
    1,904

    I always done everything like that all programs...

    I always done everything like that all programs worked. That's why i do not understood clearly. Maybe you could write few most important lines how it should look like and then i figure out the...
  14. Replies
    3
    Views
    1,904

    Binary tree delete function

    Hello. I am making binary with insert, print, delete search functions. I faced the problem i can't find out why my program won't delete and element. Here is my code. I think algorythm is good but...
  15. Using Listbox to change image in Picturebox and text in label!

    Hello!

    My problem is exactly as it says in the title
    My goal is to have couple of items in the listbox and when highlighting one item a image in the picturebox should appear, and so on for each...
  16. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    I have finished. Thank you.

    I have finished. Thank you.
  17. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    Last thing left to do is to sort first 20 numbers...

    Last thing left to do is to sort first 20 numbers but i dont know why array remains unsorted.


    //float temp;

    for (r=1;r<20;r++)
    {
    from=r;
    for (j=r+1;j<=20;j++)
    {
  18. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    #include #include int...

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

    int main()
    {
    FILE *fp;
    int i=1,j;
    float numbers,average=0;
    float array[200];
  19. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    while (fscanf(fp,"%f",&numbers)==1) { ...

    while (fscanf(fp,"%f",&numbers)==1)
    {
    printf("%f ", numbers);
    }
    I faced a problem. Only first number printed out correctly other number 0.000000 i am sure number stored in file correctly...
  20. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    When i will finish program i will change system...

    When i will finish program i will change system ("pause");
  21. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    #include #include int...

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

    int main()
    {
    FILE *fp;
    int i=1,k,j;
    float numbers,average=0,now,temp,minimum;
  22. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    Does not work even with this :/ for (i=0;...

    Does not work even with this :/
    for (i=0; i<=100; i++)
  23. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    while(i==100) { if(fscanf(fp, "%f",...

    while(i==100)
    {
    if(fscanf(fp, "%f", &array[i])!=1);
    break;
    i++;
    }
    for(j=0;j<i;j++)
    {
    printf("%f \n",array[j]);
    }
  24. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    while(!feof(fp)) { ...

    while(!feof(fp))
    {
    fscanf(fp,"%f",&array[i]);
    i++;
    }
    printf("%s \n",array);
    getchar();
    getchar();
    Still doesnt work(no output). So what should i do? :(
  25. Thread: Need advise

    by krakatao
    Replies
    36
    Views
    4,473

    while(1) { if (fread(&numbers, sizeof(float),...

    while(1)
    {
    if (fread(&numbers, sizeof(float), 1, fp) != 1)
    break;
    fscanf(fp,"%f",array);
    printf("%s",array);
    }
    system("pause");
Results 1 to 25 of 58
Page 1 of 3 1 2 3