Search:

Type: Posts; User: Phan

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,032

    Thats almost what I need, Salem. But how would I...

    Thats almost what I need, Salem. But how would I want to include everything [I]after[I] "message"?
  2. Replies
    10
    Views
    2,032

    ok, I have a varialbe that is the following: ...

    ok,

    I have a varialbe that is the following:

    y = -1 hello hey sup -2 bye cya

    Is there a way that I can get it to print everything except everything after -2?
  3. Replies
    10
    Views
    2,032

    Printing part of a local variable

    Hello,

    I was wondering if there is a way to only get a certain part of text from a variable. For example if y = hello hey sup howdy, is there any easy way to choose and print one of those...
  4. Replies
    10
    Views
    3,131

    Ok, so I should probably use select then with a...

    Ok, so I should probably use select then with a timeout. How would select() be used in a situation like this? select(blah, &readfds, NULL,NULL,&timeout); ?
  5. Replies
    10
    Views
    3,131

    Does read return anything if there is nothing...

    Does read return anything if there is nothing more to read? Because I've currently been trying something like this:


    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>...
  6. Replies
    10
    Views
    3,131

    Yes, I accidently posted this is C. My mistake. ...

    Yes, I accidently posted this is C. My mistake.


    Is get(); the thing that messes up my code?
  7. Replies
    10
    Views
    3,131

    Socket code problems

    When I run this program, everything works as expected. It starts up and connects to a server and gets all the stuff the server is supposed to send. However, when I try to type something, it works,...
  8. Replies
    25
    Views
    1,950

    How do I transfer that value?

    How do I transfer that value?
  9. Replies
    25
    Views
    1,950

    Thanks guys. Right now, it works as programmed....

    Thanks guys. Right now, it works as programmed. However, on the contact and notepad menus, I press "0" and it takes me back to the main screen but then it quits. This is expected since all my cin...
  10. Replies
    25
    Views
    1,950

    Its actually still not working right. I did a...

    Its actually still not working right. I did a quick test, and it is not working for me:


    #include <iostream.h>
    #include "menu.cpp"
    using namespace std;
    int main()
    {
    int answerget;
    ...
  11. Replies
    25
    Views
    1,950

    Help with "cin" in C++

    Hello, I am somewhat I newbie to C++ programming and I require some help with this. I am writing a simple organizer program but I run into a problem: I run it and it gives me the main menu, and I...
Results 1 to 11 of 11