Search:

Type: Posts; User: Charmy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    932

    Windows Services

    Hey everyone i have been looking into writing windows services and found a few examples around the net, but i found an article i really am interested in looking at the code for but i cannot find it....
  2. Replies
    14
    Views
    7,449

    the FA option gives you a crazy amount of output....

    the FA option gives you a crazy amount of output.

    ex.



    int strlen(const char* text)
    {
    const char* s = text;
    for ( ; *s; ++s )
  3. Replies
    6
    Views
    1,142

    You are correct here. As for the fseek, yea...

    You are correct here.


    As for the fseek, yea it is a C function but there is absolutly nothing wrong with using File pointers and C functions in a C++ program. the file rotuines are defined in...
  4. Replies
    14
    Views
    30,893

    I have a much better suggestion for you. ...

    I have a much better suggestion for you.

    Thinking in C++ By Bruce Eckel

    you can get them for free online here at his website.
    http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

    Or get...
  5. Replies
    2
    Views
    4,700

    I appricate the response i will look into both of...

    I appricate the response i will look into both of those and see if i can find somthing.

    As for the sound device, the problem with that approach is the way in which i wish to apply the technology....
  6. Replies
    18
    Views
    2,099

    ;) I knew you were going to ask that. The...

    ;) I knew you were going to ask that.

    The rand function is dependent on a random "seed" which to make it simple, dictates how the numbers are generated.

    add the following to your code.


    ...
  7. Replies
    18
    Views
    2,099

    #include #include #include...

    #include <iostream>
    #include <cstdlib>
    #include <string>

    using namespace std;

    string Command;

    struct User
    {
  8. Replies
    18
    Views
    2,099

    Re read my post =)

    Re read my post =)
  9. out.write((char *) &vectout, sizeof(vector) * 3);...

    out.write((char *) &vectout, sizeof(vector) * 3);


    Remove & before vectout. same with vectin.

    You are creating these dynamically which means that the containers are pointers. Thus using the &...
  10. Thread: Array question

    by Charmy
    Replies
    3
    Views
    853

    Not always, if you are attempting to make an...

    Not always, if you are attempting to make an actually array of characters and not a string. then you need to leave off a null termination character "\0" otherwise it will be treated as a string.
  11. Replies
    18
    Views
    2,099

    Could you be more specific on what exactly we are...

    Could you be more specific on what exactly we are looking for?

    Compile wise



    cout<<"You took out ">> UATK <<" points.\n"; }


    should be
  12. Replies
    2
    Views
    4,700

    Bluetooth Audio Stream

    Hey everyone, i just need some advice here. After 3 hours on google I have declared myself a failure becuase i am unable to find what it is i am looking for. So i am hoping someone here can point me...
  13. Replies
    6
    Views
    5,094

    In my opinion the All in one books published by...

    In my opinion the All in one books published by thomson are just ok... I own all of them and i ahve to say they help you explain the very basics of openGL and directx, but you most certainly won't be...
  14. Replies
    12
    Views
    1,300

    You need to put the struct def above the...

    You need to put the struct def above the functions that use it. Also you can simplify your struct defintion and typedef into a single statement



    typedef struct employeeRecord
    {
    char...
  15. Replies
    4
    Views
    2,465

    Actually unsigned characters and signed...

    Actually unsigned characters and signed characters have a big difference. Most modern compilers (VC++ for example) have the /j option set in the compiler, which forces all chars to be set to...
  16. Replies
    9
    Views
    3,927

    well you can easily get that on Odd numbers. ...

    well you can easily get that on Odd numbers.

    return(value<<31)>>31;

    This will return 0 on even and -1 on odd, but i need 0 on 0 and 1 on all all non zero numbers.

    Thanks for the links i will...
  17. Replies
    19
    Views
    3,080

    He is indeed correct the character '\0' is called...

    He is indeed correct the character '\0' is called the null termination character, (ASCII code 0) the \ means the next character in line (in this case 0) is an escape character type, not the actual...
  18. Replies
    9
    Views
    3,927

    Thanks for all the respones, - is a vaild...

    Thanks for all the respones, - is a vaild operator sorry i forgot it. As for the code posted, it doesn't work for me either, i get a constant -2134252232 or somthing. Any all good thoughts up to this...
  19. Replies
    9
    Views
    3,927

    Tough Bitwise Exercise

    I am just lost on this one, its got me baffled.

    A function is passed a Signed 32 bit integer.
    This function must return EXACTLY 1 or 0 (i.e. it returns int not bool)
    You are allowed to use the...
  20. Replies
    1
    Views
    1,044

    String to Binary Files.

    Hey I am having an issue storing string in binary format than reading them back.

    here is the code.



    #include <iostream>
    #include <conio.h>
    #include <vector>
    #include <string.h>
  21. Replies
    2
    Views
    1,535

    BGI (Borland Graphics Interface) is used to make...

    BGI (Borland Graphics Interface) is used to make images in 16 bit (usually dos) out of text. Alot of old dos programs that have pixel art use some of these. But the error means your program is...
  22. Thread: system() help

    by Charmy
    Replies
    8
    Views
    1,260

    I know for a fact that one call is clrscr(); but...

    I know for a fact that one call is clrscr(); but i have only ever gotten it to work with the borland compiler (On windows that is). Whenever i use MSVC i use system("cls"); as well... but clrscr()...
  23. Replies
    1
    Views
    888

    return simply implies that you wish for control...

    return simply implies that you wish for control to be returned to the caller of that function.

    a void simply means that the caller shouldn't expect any value to come out of the function, but until...
  24. Thread: Structures help

    by Charmy
    Replies
    29
    Views
    2,478

    Convenient if you know all the internal function...

    Convenient if you know all the internal function calls, and easier only if you need the features it comes with.

    Any formal Programming training you get on C/C++ almost never introduces std::string...
  25. Thread: Help with loops

    by Charmy
    Replies
    26
    Views
    1,829

    Cin has very lazy input validation, when you use...

    Cin has very lazy input validation, when you use cin and input a char it doesn't automatically convert it to an int for you, or god forbid you type in a string.

    There are several methods you can...
Results 1 to 25 of 34
Page 1 of 2 1 2