User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 391,973 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,166 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:

function problem

Join Date: Aug 2005
Posts: 4,667
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 16
Solved Threads: 298
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: function problem

  #3  
May 9th, 2008
How about...

  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class Foo
  7. {
  8. public:
  9. bool isUpperCase( char t )
  10. {
  11. string crap = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  12. int size = crap.length();
  13.  
  14. // check if the same return true
  15. //otherwise return false
  16.  
  17. };
  18.  
  19.  
  20. int main()
  21. {
  22. Foo test;
  23. cout << test.isUpperCase('a') << endl;
  24.  
  25. cout << test.isUpperCase('A');
  26.  
  27. cin.get();
  28. }
Last edited by iamthwee : May 9th, 2008 at 5:25 am.
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
All times are GMT -4. The time now is 9:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC