Search:

Type: Posts; User: fadlan12

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    886

    Never mind, I had to change the configuration in...

    Never mind, I had to change the configuration in VS:
    taken from
    FAQ: Cannot convert from 'const char [..]' to 'LPCTSTR'

    Resolution

    You will have to do one of two things:

    1. Change your...
  2. Replies
    4
    Views
    886

    Having some problems, tried the win32 code and it...

    Having some problems, tried the win32 code and it does not like converting const chars to LWPTS. Using VS10. Good practice debugging I guess.
  3. Replies
    4
    Views
    886

    Nice one, Thanks.

    Nice one, Thanks.
  4. Replies
    4
    Views
    886

    Reading in more than one file

    I am creating a recipe search for my wife: she has hundreds of recipes, all in different txt files. Is there a way of reading in more than one file? I have a folder with all of the recipe files in...
  5. Replies
    2
    Views
    3,343

    I don't think you need the after the + and...

    I don't think you need the <> after the + and before the (). But then I have not done a template overloaded operator before.

    Also wouldn't it be:

    Forest<NODETYPE>& operator+(Forest<NODETYPE>&...
  6. Replies
    18
    Views
    2,568

    Thanks. I appreciate your time.

    Thanks. I appreciate your time.
  7. Replies
    18
    Views
    2,568

    White Flags, this better for the constructor?...

    White Flags,

    this better for the constructor?


    Student::Student ()
    {
    name = "stan";
    userid = "1234";
  8. Replies
    18
    Views
    2,568

    No, my fault, thanks for looking.

    No, my fault, thanks for looking.
  9. Replies
    18
    Views
    2,568

    Correct as it stands it's working, it was not ...

    Correct as it stands it's working, it was not working prior to Elysia pointing out that I was not using set and get functions correctly. I will update the comments in the code post.
  10. Replies
    18
    Views
    2,568

    Yea what I meant is when something was pointed...

    Yea what I meant is when something was pointed out I was trying to update my original code post and prevent cluttering up the thread. Thanks for your advice.

    I will look at something else for the...
  11. Replies
    18
    Views
    2,568

    Sorry, I was trying to update the code i posted...

    Sorry, I was trying to update the code i posted without another post and did not change that. It does work even though the constructor does not really do anything (string auto initializes to empty...
  12. Replies
    18
    Views
    2,568

    It works now.( see following posts). It still has...

    It works now.( see following posts). It still has the set function not as streamlined or accurate as it should be though (and a constructor that does nothing...) thanks.

    H file
    #ifndef lab0_h...
  13. Replies
    18
    Views
    2,568

    I am always afraid to put too much on here for...

    I am always afraid to put too much on here for fear of plagiarism, or being accused of cheating.
    I changed the if(roster[i].name == search) name is a member variable. And changed members to...
  14. Replies
    18
    Views
    2,568

    Doh, it's a member function. With that () back in...

    Doh, it's a member function. With that () back in (i have been testing various versions)
    I get this error now.

    no match for 'operator==' in '(((Student*)(&roster)) + (+(((unsigned int)i) *...
  15. Replies
    18
    Views
    2,568

    Searching Array of objects

    Doing a simple class with names and ID numbers. In main I created a object array named roster and in main I am trying to search the array to print out the name or the id if the other is entered....
  16. Replies
    15
    Views
    2,654

    Nevermind: a cin.ignore fixes it, fgets getting...

    Nevermind: a cin.ignore fixes it, fgets getting last /n and skipping. Looking at the c-faq now :).
  17. Replies
    15
    Views
    2,654

    Is there something wrong with fgets line? when...

    Is there something wrong with fgets line? when trouble shooting I got it to work with cin.getline(line,80) (after changing the identifier pointer and reference). But only when the getline was after...
  18. Replies
    5
    Views
    2,077

    By encrypted i mean converting the char to an int...

    By encrypted i mean converting the char to an int and adding 10 to it. The code I posted has the decrypting code.
    right now I convert it to int to add 10 and then convert back to char prior to cout...
  19. Replies
    5
    Views
    2,077

    If I use that the output file stops at...

    If I use that the output file stops at whitespace? so my sentence gets hose and the deciphered file changes from "want some cheese" to "lis eÿ"

    I had tried a couple different input methods, EOF...
  20. Replies
    5
    Views
    2,077

    I have a file that gets opened as char and...

    I have a file that gets opened as char and converted into int + 10 for encryption, then that encrypted file gets opened and converted back to int -10 as shown above.
    For example the input file...
  21. Replies
    5
    Views
    2,077

    Output file has extra characters.

    I am writing a program that encrypts a text file and then reopens the encrypted text and deciphers it and prints to another text file. Problem is at the end it gives me these two characters: ÿõ. I...
  22. Replies
    8
    Views
    3,213

    X-=5

    X-=5
  23. Replies
    8
    Views
    3,213

    Just decrement by 5.

    Just decrement by 5.
  24. Replies
    2
    Views
    2,450

    There is a post about a reverse string, same...

    There is a post about a reverse string, same principal. I got it to work with a for loop and string.length().
  25. Whoops, sorry about that. Was not trying to down...

    Whoops, sorry about that. Was not trying to down any other languages.
Results 1 to 25 of 39
Page 1 of 2 1 2