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...
Type: Posts; User: fadlan12
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...
Having some problems, tried the win32 code and it does not like converting const chars to LWPTS. Using VS10. Good practice debugging I guess.
Nice one, Thanks.
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...
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>&...
Thanks. I appreciate your time.
White Flags,
this better for the constructor?
Student::Student ()
{
name = "stan";
userid = "1234";
No, my fault, thanks for looking.
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.
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...
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...
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...
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...
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) *...
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....
Nevermind: a cin.ignore fixes it, fgets getting last /n and skipping. Looking at the c-faq now :).
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...
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...
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...
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...
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...
X-=5
Just decrement by 5.
There is a post about a reverse string, same principal. I got it to work with a for loop and string.length().
Whoops, sorry about that. Was not trying to down any other languages.