Search:

Type: Posts; User: borko_b

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,124

    Poll: Alternative C++ Header names

    Recently I started naming my modules like this:

    1. Class Module:



    Foo\Foo.class.h:


    #ifndef FOO_FOO_CLASS_H
  2. Replies
    8
    Views
    1,067

    Not really ... The ASCII is one byte char... ...

    Not really ...
    The ASCII is one byte char...

    but the UNICODE char is two bytes:

    sizeof(wchar) == 2
  3. Replies
    2
    Views
    923

    this is Bad... look at the string class to see...

    this is Bad...
    look at the string class to see how its done ...
    it should be like this :




    //file: SavingsAccount.h
    class SavingAccount
    {
  4. Replies
    5
    Views
    1,531

    You forgot to "use" the standart namespace ... ...

    You forgot to "use" the standart namespace ...



    //...
    #include<string>
    using namespace std;
    //...
  5. Just look here :) char Calcgrades(char...

    Just look here :)


    char Calcgrades(char lgrade,char ngrade); // <- this shouldn't be here! :) :)

    {
    if (ngrade >= 90)
    { lgrade = A;
    }
    else if (ngrade >= 80 and < 90)
  6. Replies
    9
    Views
    1,234

    try using : Acool_cStRiNg_loocA :)

    try using : Acool_cStRiNg_loocA :)
  7. One last thingy to add :) : use : ...

    One last thingy to add :) :

    use :



    #include<iostream>


    instead of:
  8. Replies
    9
    Views
    1,234

    You obviously forgot to implement a standart...

    You obviously forgot to implement a standart constructor for your class... (the code you posted isn't correct, because there is no declaration of cSTRING::cSTRING(void) ...)


    so just include...
  9. First of all look at this: ... DerivedClass...

    First of all look at this:


    ...
    DerivedClass test();
    ...
    test[i] = 12;
    ...
  10. Replies
    4
    Views
    3,790

    int offset; sometype mystruct, *ptr; char...

    int offset;
    sometype mystruct, *ptr;
    char buff[32768];

    memcpy(&buff[offset], &mystruct, sizeof(sometype ));


    or
  11. Thread: ASM dll import

    by borko_b
    Replies
    1
    Views
    2,283

    Come on guys!! there must be someone fluent...

    Come on guys!!

    there must be someone fluent both in ASM and C!!

    help pls!
  12. Thread: ASM dll import

    by borko_b
    Replies
    1
    Views
    2,283

    ASM dll import

    Hi there...

    heres my problem:

    i wrote a win32 dll and i ported it to ASM

    it got realy faster and alot smaller


    BUT
  13. Thread: Calculator

    by borko_b
    Replies
    5
    Views
    1,089

    Most probably Notepad is written in C.. with the...

    Most probably Notepad is written in C..
    with the Win32API...
    ... The functions in Win32API are called with standart C call
  14. Replies
    2,805
    Views
    7,054,749

    No. Do you believe that an asteroid is going...

    No.

    Do you believe that an asteroid is going to smash us?
  15. Thread: string problem

    by borko_b
    Replies
    3
    Views
    1,002

    try this one... int extract(char *src,char...

    try this one...


    int extract(char *src,char *dest,int dest_sz) {
    char *psrc =src;
    char *pdst = dest;
    while(*psrc && *psrc!='(') {
    psrc++;
    }
    if(!*psrc) return -1; /*ERROR! '(' not...
  16. Thread: flip

    by borko_b
    Replies
    7
    Views
    2,552

    int flip_str_to_str(char *in,char *out) { ...

    int flip_str_to_str(char *in,char *out) {
    char *pin,*pout;
    int len = strlen(in) ;

    pin = in ;
    pout = out+len;
    *(pout+1) = '\0';
    while( *pin) {
    *pout =...
  17. Thread: C Homework

    by borko_b
    Replies
    18
    Views
    2,457

    :) :) Calm down you all ! :) He is going to...

    :) :)
    Calm down you all ! :)


    He is going to kill himself now! :)
  18. Replies
    5
    Views
    1,845

    uhm! first isn't that t-h-eor-et-ical question?...

    uhm!
    first
    isn't that t-h-eor-et-ical question? :)

    second
    What exactly do you mean???
    by:
    "lets say that i want to write a operating system and i know what to do when i wrote it how will i...
  19. Thread: random()?

    by borko_b
    Replies
    14
    Views
    1,451

    % is used for getting the remainder of a...

    % is used for getting the remainder of a division...

    5 / 2 = 2 <-quotient
    5% 2 = 1 <- remainder 5 = 2*2 +1

    10/3 = 3
    10%3=1 -> 10 = 3*3 +1

    64/8=8
    64%8=0 -> 64= 8*8 + 0
  20. Thread: 0 float

    by borko_b
    Replies
    6
    Views
    1,550

    Don't use : float f = 0; use :

    Don't use :


    float f = 0;


    use :
  21. Replies
    4
    Views
    1,105

    char *arrayOfStrings[256] = { "String number...

    char *arrayOfStrings[256] =
    {
    "String number 1",
    "String number 2",
    "String number 3",
    "String number 4",
    "String number 5",
    "String number 6"
    };
  22. Replies
    4
    Views
    1,358

    OOPS!! ... while(pstr!=) { ... should...

    OOPS!!



    ...
    while(pstr!=) {
    ...

    should be:
  23. Replies
    4
    Views
    1,358

    int find_firstlast(char *str,char chr,int...

    int find_firstlast(char *str,char chr,int *first,int *last){
    char *pstr = str;
    int len = strlen(str);
    *first = -1; *last = -1; /*invalid */
    /*find first*/
    while(*pstr){
    ...
  24. Thread: Smoker?

    by borko_b
    Replies
    81
    Views
    16,238

    Poll: unfortunately i do.... i tried a few times to...

    unfortunately i do....
    i tried a few times to quit... (3 times)
    but no success...

    I started when i was teen , and i regret it...
  25. Thread: extraction

    by borko_b
    Replies
    13
    Views
    1,771

    >>...I want to write a program that can print...

    >>...I want to write a program that can print only the vowels ...

    !!!!
    Did you tried any of the code posted here???

    Your code didn't change to much
Results 1 to 25 of 123
Page 1 of 5 1 2 3 4