User Profile

Collapse

Profile Sidebar

Collapse
Netaro
Netaro
Last Activity: Nov 7 '07, 10:32 PM
Joined: Jan 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Netaro
    started a topic .a Files.
    in C

    .a Files.

    So, i was looking through the c++ standart header, and the thing i've noticed, those only contain the declarations of functions. Ok, but where are the definitions? For example, i wanted to see what's "inside" the system() function, how it works etc, etc... So, i noticed those .a files. So, two questions i'd like to ask: What are .a files, what they contain, and where are the "insides" of those std functions?
    See more | Go to post

  • Netaro
    started a topic Imitating key input from keyboard.
    in C

    Imitating key input from keyboard.

    Well, the title isn't quite correct, but that isn't a problem...
    Well, how could i write a prog which will "emulate" pressing the keyboard buttons?
    For example, that will wait some time, emulate "Alt" and "Tab" keys, then wait some time, then 'pretend" to press another button?
    See more | Go to post

  • Netaro
    replied to A few questions about files..
    in C
    I'm still a newbie, so could you please make a sample code? I can only read things from file using
    Code:
     File.read((char*) &b, sizeof(b));
    . I don't know well how to read using a line. Also, i have noticed, that if i put
    Code:
    file << " ";
    into code that writes something to file, i am unable to skip it, so it is impossible to read anything that is behind. So, how to skip those fragments?a
    See more | Go to post

    Leave a comment:


  • Netaro
    replied to A few questions about files..
    in C
    Thanks for this, Sicarie :D.
    Yet, there are some other questions....
    Is there any other way to delete/rename than using system commands?

    And, could you explain to me, how to read only specified part of the file (that's the first question i have asked :) ), if i want to get only one thing from the file?...
    See more | Go to post

    Leave a comment:


  • Netaro
    replied to A few questions about files..
    in C
    Sorry if my post caused "confusion" , but the file is a .txt.
    Sicarie ->
    Not much, only creating and reading the file, writing into file and reading out of file in specified "order". And I'm using dev-cpp, under windows XP.
    See more | Go to post

    Leave a comment:


  • Netaro
    started a topic A few questions about files..
    in C

    A few questions about files..

    Well, i still don't understand some things about files...
    For example, i have created a file, with following structure ->
    int,int,float, some class, some other class....
    And, i open that file to read, and i want to load only the some_class. So, how can i "skip" the other unneded variables? I have looked for it in Jesse Liberty's "Teach yourself c++ in 21 days.", but i didn't understand, as i haven't understood...
    See more | Go to post

  • Netaro
    replied to How to send an email?
    in C
    Thanks for this, i'd give it a try , but is there anything that can be done without the visual c++? Just in a console (using dev-c++ as ide)?...
    See more | Go to post

    Leave a comment:


  • Netaro
    started a topic How to send an email?
    in C

    How to send an email?

    Hello!
    Well, i want to send an email to some specified adress using c++. Is there any function that sends email (with attachements, or just a plain simple text) to specified adress?
    See more | Go to post

  • Netaro
    started a topic How to start a program using another program?
    in C

    How to start a program using another program?

    Well...
    So, i have a program. A normal program, which does something, and so..
    and i have another program, which wants to run the first program....
    So, there are 2 questions about that problem ->
    1) How can i run the program using another program? Is there anything like runProgram(Dire ctory,Name.exe) ?
    2) Programs usually returns the 0 value when they end. So, can i, for example, put something like
    ...
    See more | Go to post

  • Netaro
    replied to A problem with an array of unknown size.
    in C
    Willakawill -> that method works perfectly! Thanks :D
    See more | Go to post

    Leave a comment:


  • Netaro
    started a topic A problem with an array of unknown size.
    in C

    A problem with an array of unknown size.

    Hello!
    So, i have this type of a problem -> i have wrote a function that sorts the array in ascending order. the beggining looks like this ->
    Code:
    template <typename T>
      void PosortujBabelkowoTablice(T& Tablica, int i) {
    // and the rest of a code....
    So, as you see, i must always give the i param, which is the number of objects within array Tablica. But, i want to make it simpler, in a way i give only...
    See more | Go to post
No activity results to display
Show More
Working...