Search:

Type: Posts; User: laasunde

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,627

    Predicate definition

    Does the C++ standard define an interface for a predicate?

    The reason I am asking is that I have an template class (see below) where I would like to accept a predicate as an input to the...
  2. Replies
    13
    Views
    3,681

    332 = 101001100 (in binary). you then & the...

    332 = 101001100 (in binary).
    you then & the value with 0xff which leaves you with the binary number 01001100 (decimal value of 76). The & operation bascilly truncates the most significant bit.
  3. You should look into atoi...

    You should look into atoi
  4. Replies
    7
    Views
    1,977

    Try adding #include

    Try adding


    #include <unistd.h>
  5. Thread: server ip

    by laasunde
    Replies
    6
    Views
    1,771

    Cheers :)

    Cheers :)
  6. Thread: server ip

    by laasunde
    Replies
    6
    Views
    1,771

    Thanks for your reply. Your solution seems to...

    Thanks for your reply. Your solution seems to work, do you mind telling how is works ?

    Just before checking this post I found this code bit that figures out the computers ip address here
  7. Thread: server ip

    by laasunde
    Replies
    6
    Views
    1,771

    Thanks for your reply Salem. The thing is, I dont...

    Thanks for your reply Salem. The thing is, I dont get an either a compile error nor a run-time error.

    What my server program does is basiclly output to the screen whatever is send to it.

    If I...
  8. Thread: server ip

    by laasunde
    Replies
    6
    Views
    1,771

    server ip

    Im trying to setup a port listening program using c++ with socket.

    If I configure my address like this,


    sockaddr_in host;
    host.sin_family = AF_INET;
    host.sin_port = htons(portnr);
    ...
  9. Thread: Sockets

    by laasunde
    Replies
    9
    Views
    3,118

    If your doing windows-programming you need to...

    If your doing windows-programming you need to init you winsock before using it.



    bool initWinsocket()
    {
    WORD wVersionRequested;
    WSADATA wsaData;
    int err;
  10. Replies
    1
    Views
    1,686

    According to this...

    According to this article strcmpi is not supported by ansi c++. I bet if you use strcmp (without the 'i') your code will compile just fine.
  11. Replies
    2
    Views
    1,448

    Does this help : #include...

    Does this help :


    #include<iostream>
    #include<conio.h>

    using namespace std;

    int func(int number)
    {
  12. Replies
    3
    Views
    1,063

    Maybe something like this : #include...

    Maybe something like this :


    #include <iostream>
    #include <cstdlib>

    using namespace std;

    class Vehicle
    {
  13. Replies
    14
    Views
    3,219

    This code should work, #include ...

    This code should work,


    #include <iostream>
    using namespaces std;

    int main()
    {
    cout << "hello 1" << endl;
    cout << "hello 2" << endl;
  14. Replies
    5
    Views
    1,773

    Next time maybe do a board and google search...

    Next time maybe do a board and google search before asking.

    Hope this help.
  15. Replies
    3
    Views
    1,510

    .

    .
  16. Replies
    1
    Views
    1,600

    combine c++ and java

    Can anyone recommend a good article \tutorial on combinding java and c++ programming language. I've tryed searching on google but didnt find much besides a very basic helloworld example on...
  17. Replies
    11
    Views
    13,045

    I'm very sorry, totally mis-read that post. Hope...

    I'm very sorry, totally mis-read that post. Hope javacvb wasnt offended or anything like that. Sorry javacvb :)
  18. Thread: Trim A String

    by laasunde
    Replies
    5
    Views
    2,142

    This should get you going: int len =...

    This should get you going:


    int len = sVar.length();
    if ( isdigit(sVar.at(len-1)) )
    {
    cout << "last char is a number..." << endl;
    }
    else if( isalpha(sVar.at(len-1)) )
    {
  19. Replies
    11
    Views
    13,045

    Are you for real ? It's a huge job...

    Are you for real ?

    It's a huge job 'converting' a java program with gui into a c++ program with gui, not sure if it's even possible.
  20. Thread: Trim A String

    by laasunde
    Replies
    5
    Views
    2,142

    Take a look at this code for the start of the...

    Take a look at this code for the start of the string:



    #include <iostream>
    #include <string>
    #include <ctype.h>
    using namespace std;

    int main()
  21. this should get you started :...

    this should get you started : http://www.cplusplus.com/ref/ctime/localtime.html
  22. Replies
    8
    Views
    1,104

    Maybe this helps: #include ...

    Maybe this helps:


    #include <cstdio>
    #include <iostream>
    #include <ctime>
    using namespace std;
    int main ()
    {
    time_t rawtime;
  23. Replies
    1
    Views
    1,655

    Should be a simple example at sun...

    Should be a simple example at sun.
  24. anonytmouse : That looks very much like vb code,...

    anonytmouse : That looks very much like vb code, am I correct ?
  25. http://ej.bantz.com/video/ ...

    http://ej.bantz.com/video/

    http://www.twain.org/

    Try searching for capCreateCaptureWindow and capDriverConnect
Results 1 to 25 of 294
Page 1 of 12 1 2 3 4