Search:

Type: Posts; User: bnkslo

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,188

    Thank you for your help. I finished it. And i...

    Thank you for your help. I finished it. And i have to say it works.

    Now its time to do the second assigment --> calculator. I already know i will need some help... :)
  2. Replies
    6
    Views
    1,188

    Yes this is all i want to do. At the end i have...

    Yes this is all i want to do. At the end i have to keep track of the hands that where dealt.

    Like:

    1 x pair
    4 x 2 pair
    1 x tree of a kind
    ...
    ..
    .
  3. Replies
    6
    Views
    1,188

    Thank you for your help... I implemented what you...

    Thank you for your help... I implemented what you said.



    #include <iostream>
    #include <cstdlib>
    #include <ctime>

    using namespace std;
  4. Replies
    6
    Views
    1,188

    Statistic problem

    Hello. My problem is like this. I have to make a program where i have 6 random number from 1 to 6. I can change any of the numbers 2 times. So far this is working for me. The next step i dont know...
  5. Replies
    22
    Views
    3,631

    what about: buffer=malloc(sizeof(vData));

    what about:

    buffer=malloc(sizeof(vData));
  6. Replies
    22
    Views
    3,631

    But the thing is i dont know how to malloc the...

    But the thing is i dont know how to malloc the memory?

    Could i do something like this:




    FILE *vData, *iData;
    char *buffer[MAX_SIZE];
  7. Replies
    22
    Views
    3,631

    I agree if there is: But what if...

    I agree if there is:

    <step 1>

    But what if there is only:

    <step 1

    and after that there is no >. I would search true the whole file for the > and i would not find it, so i would need to...
  8. Replies
    22
    Views
    3,631

    I would say i need so much memory as the file is...

    I would say i need so much memory as the file is big? But i could be wrong!?
  9. Replies
    22
    Views
    3,631

    1. Well that is the question? It can be 1 or...

    1. Well that is the question? It can be 1 or maybe 100. That's something i can't predict. Or it could happen that when i find < there is not a > character and i get to EOF. So i don't have a number!?
  10. Replies
    22
    Views
    3,631

    Some questions? 1. How much buffer? Only for...

    Some questions?

    1. How much buffer? Only for one char or do i allocate for the whole file?
    2. I was reading about allocating memory but I'am still confused?

    Can i do something like this?
  11. Thread: fprintf problem

    by bnkslo
    Replies
    2
    Views
    1,621

    fprintf problem

    I would like to write into a file this:

    <?xml version="1.0" encoding="ISO-8859-1" ?>

    The part of the code that should do this:



    FILE *fs;
    fs=fopen("vs.xml", "wt");
  12. Replies
    7
    Views
    1,470

    Thanks Salem, i did it with the help of the FAQ....

    Thanks Salem, i did it with the help of the FAQ.

    I still have a question. Lets say i would need to find a txt file in the directory structure?

    My code is listing everything. So i already have...
  13. Replies
    7
    Views
    1,470

    directory and file listing

    Hello,

    i have a problem. I would like to print out everything that is on a hard drive. Like c: or d: etc...

    For now i came up with this:



    #include <stdarg.h>
    #include <stdio.h>
  14. Replies
    22
    Views
    3,631

    I have to copy the characters from input file to...

    I have to copy the characters from input file to the output file. But in the process i have to remove everything that is between the characters <>...

    Example:

    input file

    Today is a <sunny>...
  15. Replies
    22
    Views
    3,631

    It's for homework. Another question. How can...

    It's for homework.

    Another question. How can you go back to the first character ('<') when i found the last one ('>')?
  16. Replies
    22
    Views
    3,631

    I thought of that. But what if i have in the...

    I thought of that. But what if i have in the text:

    input file
    for(i=0;i<15;i++)

    output file
    for(i=0;i<..... where does it end ?

    So i think i cant just stop copying with this character <...
  17. Replies
    22
    Views
    3,631

    file i/o and remove something

    Hi,

    i have a problem of removing some text from a file between this characters <>. For example:

    input file
    #include <stdio.h>

    output file
    #include <>
  18. Replies
    15
    Views
    3,465

    Thank you all, it finally worked. Some of the...

    Thank you all, it finally worked.

    Some of the print outs, i even used the "special" character type:



    0123456789
    ┌──┐ ┐ ┌──┐ ┌──┐ ┬ ┌── ┌──┐ ┌──┐ ┌──┐ ┌──┐
    │ │ │ │ │ │ │ ...
  19. Replies
    15
    Views
    3,465

    Well i still have a small problem. It doesnt...

    Well i still have a small problem. It doesnt print a 0 if its in the first place like 0123.. The print out is only 123. I know its because in the while statement is going for as long the number is >...
  20. Replies
    15
    Views
    3,465

    root4 thx, but i just did it by myself...as...

    root4 thx, but i just did it by myself...as always man should not give up so soon

    The one loop i will try and work out too.

    And thank you mike and matsp.
  21. Replies
    15
    Views
    3,465

    I give up, i tried a couple of things but it...

    I give up, i tried a couple of things but it didnt worked. :(
  22. Replies
    15
    Views
    3,465

    So i have to write a totaly different code....

    So i have to write a totaly different code. Because i have the 2D array of the numbers and the 2D array of the characters. I think you mean i have to do something like this:



    row1: "+--+", "+",...
  23. Replies
    15
    Views
    3,465

    Mike thank you again for helping. This is what...

    Mike thank you again for helping.

    This is what i did:



    #include <stdio.h>

    char *deliStevilke[]={ // numbers representet with characters
    "+--+", // 0
  24. Replies
    15
    Views
    3,465

    Kepil, i understad how to use the %10 operand. If...

    Kepil, i understad how to use the %10 operand. If for example i do:

    8713%10

    the result is 3, but this is the last digit and i have to print this one at the last place. Just thinking if i print...
  25. Replies
    15
    Views
    3,465

    Numbers printed with characters

    Hello, i have to make a program that would print out numbers represented with characters like this:

    8317



    +--+ +--+ + +--+
    ! ! ! ! !
    +--+ +--+ + +
    ! ! ! ! !
Results 1 to 25 of 36
Page 1 of 2 1 2