Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7724527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:42:43+00:00 2026-06-01T04:42:43+00:00

There’s probably a silly error in my code. I have defined the following variables:

  • 0

There’s probably a silly error in my code. I have defined the following variables:

unsigned char   uEngines;
unsigned short  uActiveEngines
unsigned short  uDed
.... 

and a few others.

Elsewhere in the code, I tried to print the structure in the gdb and got the following .

$6 = {uEngines  = 12 '\f', uActiveEngines = 4095 .....

1) I am trying to output the uEngines value using cout, but it’s only outputting a blank space:

cout <<strVariable->uEngines;

2) what does ‘\f’ mean in the gdb output ?

Am I doing something wrong with data type ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:42:45+00:00Added an answer on June 1, 2026 at 4:42 am

    It’s a formfeed, one of the non-printable characters in the ASCII character set below space.

    It’s meant to do a “page advance” operation on whatever device you send it to, assuming that the device supports it.

    12 is the decimal value as shown below:

    Char  Dec  Hex  Control Action
    ----  ---  ---  --------------
    NUL     0    0  Null character
    SOH     1    1  Start of heading, = console interrupt
    STX     2    2  Start of text, maintenance mode on HP console
    ETX     3    3  End of text
    EOT     4    4  End of transmission, not the same as ETB
    ENQ     5    5  Enquiry, goes with ACK; old HP flow control
    ACK     6    6  Acknowledge, clears ENQ logon hand
    BEL     7    7  Bell, rings the bell...
    BS      8    8  Backspace, works on HP terminals/computers
    HT      9    9  Horizontal tab, move to next tab stop
    LF     10    a  Line Feed
    VT     11    b  Vertical tab
    FF     12    c  Form Feed, page eject
    CR     13    d  Carriage Return
    :
    :
    

    Because it’s a char, std::cout << uEngines; will output it as a character rather than an integral value. If you want it as in integral value, cast it to one:

    std::cout << (int)uEngines;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is this strange situation I'm fighting on. I have 3 pages, les call
There is a text file with 1,000,000 lines of code floating around and Ctrl+F
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
There is something I miss with the notion of Synchronizing code in Android. Scenario
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
There are numerous Agile software development methods. Which ones have you used in practice
There have been several questions on SO regarding getting Contacts numbers using the Contacts
There's a combobox event in my code: self.combobox1.Bind(wx.EVT_COMBOBOX, self.onActionCombobox1) It executes the function def
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
There is probably an easy answer for this, but when I added DateTime.Now.ToString() to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.