Search:

Type: Posts; User: Clinthill98

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    973

    yes this looks okay to me.. you are passing the...

    yes this looks okay to me.. you are passing the value of the pointer to the first member in the array in which case you can pass by value or by pointer type both will produce the same results.. not...
  2. ya just add another parameter in your function so...

    ya just add another parameter in your function so u can pass the address to the local scope of your function your calling and than write the data to a buffer.

    like this for example.

    char...
  3. I think when you call your function and it...

    I think when you call your function and it returns the pointer it is going out of scope because the string is only declared locally in the function. so here is what i got





    #include...
  4. Replies
    3
    Views
    1,283

    ah thanks guys.. ya threw me off.. I miss counted...

    ah thanks guys.. ya threw me off.. I miss counted one 1 byte in the text in the pattern. ty for the help
  5. Replies
    3
    Views
    1,283

    Heap Corruption When freeing memory?

    My Function...


    int findpattern( char * source, char * start, char * end)
    {
    char * start_ptr = strstr(source, start);
    if (start_ptr != NULL)
    {
    char * end_ptr = strstr(start_ptr, end);...
  6. Replies
    2
    Views
    1,360

    Any Room For Improvement?

    I've been studying C for sometime now and Ive started with the standard library's of course, but anyway im trying to make sure to keep my code organized and neat. Main question is I know when making...
  7. Replies
    1
    Views
    804

    Problems calling this function

    Ive been trying to learn C++ for over two weeks now hoping to get into win32 api's soon but simple ........ is stumping me. I know all about data types and basic stuff but I just dont seem to get it?...
  8. umm yea is it best to define functions and...

    umm yea is it best to define functions and classes in header files? because it looks all messy right?
  9. thanks guys I see what your saying now and I...

    thanks guys I see what your saying now and I fixed it simple solution instead of using cin>> which reads any output the user enters I used cin.getline(serverip, 16) which will only read 16...
  10. i got it thanks Ice I was using the wrong args. ...

    i got it thanks Ice I was using the wrong args. but my idea was correct thanks I will look at it later I see what u mean now cin>> will return any input but with the right args using cin.get(args) I...
  11. Yeah your right it doesnt cap it. So why does it...

    Yeah your right it doesnt cap it. So why does it only read one if its defined char serverip; because that defines 1 character and if i want 16 than use char serverip[16];

    EDIT maybe it was only C...
  12. are u referring to char serverip[16] ? I tryed...

    are u referring to char serverip[16] ? I tryed using just char serverip; it only reads 1 character..
  13. First Program using 5 Different Tutorials on Cprogramming.com

    Ok hello C++ gurus Im here to learn C++ and cprogramming is really helping me with the basics. Once I feel comfortable maybe I can pick up a book or two on C++. My main reason for learning C++ is for...
Results 1 to 13 of 14