Thread: Float stray '302' in program і stray '240' in program?

  1. #1
    Registered User
    Join Date
    Nov 2015
    Posts
    112

    Float stray '302' in program і stray '240' in program?

    Kind all daypart! Here strange errors
    E:\GRAF\Zvjyazuvannya\Zvjyazuvannya1\Exclude.h|13| error : stray '\302' in program|
    and
    E:\GRAF\Zvjyazuvannya\Zvjyazuvannya1\Exclude.h|13| error : stray '\240' in of program|

    Error floating. And often get on closed, blindfolded text.

    I tried a line with an error to cut out, to delete, an error becomes into place of new line
    but with the same number.

    I cut out all top of file, and however an error remained in a fourth line, always in a line number four.

    And today, after the restart of computer, the same error now in a line number thirteen.

    It is floating errors, and I can not localize them.

    That such these stray '\302' in program and stray '\240' in program?

    That do they from itself present?

    What do they look like? As them search them?


    Code:
    /* Exclude.h — Определения переменных для исключения ненужных заголовочных файлов. За дополнительными разъяснениями обратитесь в [30]. */
        #define WIN32_LEAN_AND_MEAN
        //jj
     /*
        Весьма эффективная мера, уменьшающая размер предварительно скомпилированного
        заголовочного файла (pch) почти в два раза.
         */
    //hhh
     /*
        Эти определения также
        уменьшают размер pch-файла и
        уменьшают время компиляции.
        Все программы в данной книге будут компилироваться с этими определениями. От использования средств защиты можно отказаться при помощи оператора #define NOSECURITY. */ 
        #define NOATOM
        #define NOCLIPBOARD
        #define NOCOMM
        #define NOCTLMGR
        #define NOCOLOR
        #define NODEFERWINDOWPOS
        #define NODESKTOP
        #define NODRAWTEXT
        #define NOEXTAPI
        #define NOGDICAPMASKS
        #define NOHELP
        #define NOICONS
        #define NOTIME
        #define NOIMM
        #define NOKANJI
        #define NOKERNEL
        #define NOKEYSTATES
        #define NOMCX
        #define NOMEMMGR
        #define NOMENUS
        #define NOMETAFILE
        #define NOMSG
        #define NONCMESSAGES
        #define NOPROFILER
        #define NORASTEROPS
        #define NORESOURCE
        #define NOSCROLL
        #define NOSERVICE
        #define NOSHOWWINDOW
        #define NOSOUND
        #define NOSYSCOMMANDS
        #define NOSYSMETRICS
        #define NOSYSPARAMS
        #define NOTEXTMETRIC
        #define NOVIRTUALKEYCODES
        #define NOWH
        #define NOWINDOWSTATION
        #define NOWINMESSAGES
        #define NOWINOFFSETS
        #define NOWIMSTYLES
        #define OEMRESOURCE
    Last edited by Dmy; 04-25-2017 at 03:35 AM.

  2. #2
    Registered User
    Join Date
    Nov 2015
    Posts
    112
    Which script or which program should you extract at once all the stray '\ ' in program ?? After all, I do not see in notepad.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,163
    I would suggest you try without any of the Russian characters in comments first.

    Also, get a better editor than notepad.

    Perhaps notepad++ (ask google).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Nov 2015
    Posts
    112
    Yes. It just made copy-paste with the mouse, from the book.

    I don't agree with Russian comments. This is not a bug. The compiler is obliged to ignore, not to perceive that for slashes.

    Error floats. It may even be in another file. Wrong error message.

    What is in-hex-format to look stray '\302' in program|, stray '\240' in program?

  5. #5
    Registered User
    Join Date
    Jun 2015
    Posts
    1,643
    Quote Originally Posted by Dmy View Post
    What is in-hex-format to look stray '\302' in program|, stray '\240' in program?
    It's octal.
    Code:
    302oct = 3 * 8 * 8  +  0 * 8  +  2 = 194 = 0xC2
    240oct = 2 * 8 * 8  +  4 * 8  +  0 = 160 = 0xA0
    
    Interpretting this as UTF-8
    C    2    A    0
    1100 0010 1010 0000  =>  000 1010 0000 = 0xA0
    Unicode code point A0 is NBSP (non-breaking space).

    Assuming that the NBSP characters occur between #define and the macro names, you could use a decent editor (not Notepad! get Notepad++, instead), copy one of those characters, and do a global replace with a regular space (using the spacebar).

  6. #6
    Registered User
    Join Date
    Nov 2015
    Posts
    112
    Thanks!!! Thanks!!! Grandiosely great thank you !!
    Last edited by Dmy; 04-29-2017 at 02:16 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error stray 240 in program
    By sean146 in forum C Programming
    Replies: 3
    Last Post: 11-19-2016, 07:14 PM
  2. What does: 'error: stray \357 in program' mean?
    By Phanixis in forum Linux Programming
    Replies: 8
    Last Post: 12-04-2010, 01:48 AM
  3. stray '@' in program
    By hilbert16 in forum C++ Programming
    Replies: 2
    Last Post: 10-05-2010, 06:21 AM
  4. C compiling / error: stray \ in program
    By Elya in forum C Programming
    Replies: 5
    Last Post: 07-02-2009, 08:20 AM
  5. stray '\223' in program... Help
    By reRanger in forum C++ Programming
    Replies: 3
    Last Post: 11-23-2004, 02:45 AM

Tags for this Thread