Search:

Type: Posts; User: ZAK

Search: Search took 0.01 seconds.

  1. Thread: Use C or C++???

    by ZAK
    Replies
    6
    Views
    2,663

    Ok, what happens when C++ is compiled is that all...

    Ok, what happens when C++ is compiled is that all of those class will take up more memory and will compile to more code then when C is used the extra code is just overhead of enforcing the nature of...
  2. Thread: Use C or C++???

    by ZAK
    Replies
    6
    Views
    2,663

    C++ in some cases can get as low as C, however,...

    C++ in some cases can get as low as C, however, object oriented design like C++ will cause a lot of unnecessary over head when writing low level routines...C has traditionally been the *nix language...
  3. Replies
    5
    Views
    1,803

    That number is a starting value and an ending...

    That number is a starting value and an ending value the program description says that you must generate all the cycle lengths from i to j inclusively. This problem is neat on the theoretical model...
  4. Replies
    10
    Views
    4,274

    This is true Salem, but strcmp never was designed...

    This is true Salem, but strcmp never was designed to return a boolean it returns an integer... it really isn't a boolean function. The enumeration code is a better elegant solution to the problem.
  5. Replies
    2
    Views
    1,176

    Also, you have a bug in your code if your...

    Also, you have a bug in your code if your variable rnx = 0 then the log function will tend towards infinity, theres an asymptote at log(0), you can think of it being undefined you may want to make...
  6. Replies
    10
    Views
    4,274

    good call quzah! I actually posted a C++ solution...

    good call quzah! I actually posted a C++ solution to a C question...you also can not declare a variable in side of a loop in C. I would however not put a flag in the loop when you can just use the...
  7. Thread: Use C or C++???

    by ZAK
    Replies
    6
    Views
    2,663

    In general both languages are used in Linux, if...

    In general both languages are used in Linux, if you want to do low level system style programming C will be the beast of choice if you want to just interface with already written libraries C++ is...
  8. Replies
    10
    Views
    4,274

    Well depending on how your loop is set up (ie...

    Well depending on how your loop is set up (ie what your sentinal value is) you can just set a variable to the sentinal for example when using the for loop:


    for (int i = 0; i < 10; i++)

    just...
  9. Thread: Base classes

    by ZAK
    Replies
    11
    Views
    1,299

    Nope, I don't think it's a new feature its a typo...

    Nope, I don't think it's a new feature its a typo sometimes I break into an accidental Java type code except in Java the class is preceeded with the keyword abstract. Thanks for catching that...
  10. Thread: Base classes

    by ZAK
    Replies
    11
    Views
    1,299

    Yes there is use something like the following...

    Yes there is use something like the following code segment.



    virtual class MyClass
    {
    public:
    int get_data();
    virtual void my_function();
    private:
  11. Thread: some OS questions?

    by ZAK
    Replies
    7
    Views
    1,476

    Kernel threads or processes are those processes...

    Kernel threads or processes are those processes in an operating system that can scheduled by the kernel of the operating system in other word the OS is completely aware they exist. You can think of a...
  12. Thread: need some help

    by ZAK
    Replies
    4
    Views
    1,112

    First the programming is building an array of...

    First the programming is building an array of strings...then it is finding out the size of the array...getting input in the form of a string converting the string to lowercase checking to see if...
  13. Replies
    3
    Views
    2,214

    I think you would have to write your own...it...

    I think you would have to write your own...it wouldn't be that hard though. Happy Coding
Results 1 to 13 of 13