Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. char* line[255];
  2. ....
  3. line[0] = '1'; // filled char by char
  4. ....
  5.  
  6. char charCode = (char)line[i];
  7. if (charCode == 't' || charCode == 'n' || charCode == ',' || charCode == ' ')
  8. {
  9. // do someting
  10. }
  11.  
  12. warning: cast from pointer to integer of different size
  13.  
  14. line[0] = "1"; // filled char by char
  15.  
  16. line[0] = '1';
  17.  
  18. char* line[255];
  19.  
  20. char line[255];
  21.  
  22. char line[255];
  23. ....
  24. line[0] = '1'; // filled char by char
  25. ....
  26.  
  27. char charCode = line[i];
  28. if (charCode == 't' || charCode == 'n' || charCode == ',' || charCode == ' ')
  29. {
  30. // do someting
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement