answersLogoWhite

0


Best Answer

Using TurboC? kbhit and getch are your friends

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is there any keyword in c or c plus plus like the function inkey in qbasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the keyword for function(python)?

There are two related concepts, both called "keyword arguments". On the calling side, which is what other commenters have mentioned, you have the ability to specify some function arguments by name. You have to mention them after all of the arguments without names (positional arguments), and there must be default values for any parameters which were not mentioned at all. The other concept is on the function definition side: You can define a function that takes parameters by name -- and you don't even have to specify what those names are. These are pure keyword arguments, and can't be passed positionally. The syntax is def my_function(arg1, arg2, **kwargs) Any keyword arguments you pass into this function will be placed into a dictionary named kwargs. You can examine the keys of this dictionary at run-time, like this: def my_function(**kwargs): print str(kwargs) my_function(a=12, b="abc") {'a': 12, 'b': 'abc'}


What are the usages of keyword final in java?

It's a built-in keyword that defines an entity that cannot be later modified. It can be used in different aspects within your code (like setting a 'final' class, method (function), or variable).


What character can be used as a substitute in a keyword?

Well, you can substitute 'a' with 'a', like: 'auto' instead of 'auto'.


What is return keyword in c?

return lets you literally return a value from a function. This allows you to define functions like: int add(int x, int y) { return(x + y); } int twoplustwo = add(2, 2);


What are the 6 ways to use this keyword?

"Java This keyword" is a reference to the current object, it is very helpful when you need to refer an instance of a particular Object from its available methods or using it's constructor, also "this" keyword helps us to avoid naming conflicts.The following are different ways to use java this keyword1) Using with instance variable2) Using with Constructor3) Pass / Return current instanceUsing with instance variableUsing this keyword inside a method or constructor it will use instance variable instead of local variable, in the absence of this keyword it will use local variableUsing with instance variableUsing this keyword inside a method or constructor it will use instance variable instead of local variable, in the absence of this keyword it will use local variableUsing with ConstructorUsing this keyword inside constructor like followingthis("Sony", 20); it will call the constructor having same parameter

Related questions

How do you do Qbasic programs?

type: PRINT "I like chocalate!"


How do you create static variables in PHP?

Use the "static" keyword to declare a static variable within a function like shown below. <?php function fun() { static $variable; static $another_variable = ''; } ?>


What is the keyword for function(python)?

There are two related concepts, both called "keyword arguments". On the calling side, which is what other commenters have mentioned, you have the ability to specify some function arguments by name. You have to mention them after all of the arguments without names (positional arguments), and there must be default values for any parameters which were not mentioned at all. The other concept is on the function definition side: You can define a function that takes parameters by name -- and you don't even have to specify what those names are. These are pure keyword arguments, and can't be passed positionally. The syntax is def my_function(arg1, arg2, **kwargs) Any keyword arguments you pass into this function will be placed into a dictionary named kwargs. You can examine the keys of this dictionary at run-time, like this: def my_function(**kwargs): print str(kwargs) my_function(a=12, b="abc") {'a': 12, 'b': 'abc'}


What are the usages of keyword final in java?

It's a built-in keyword that defines an entity that cannot be later modified. It can be used in different aspects within your code (like setting a 'final' class, method (function), or variable).


How do you add numbers in qbasic?

-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324


What words should I avoid using in a keyword search?

When you do a keyword search avoid using the word or letter I and also generic words, like to, the, on etc. You also need to try not using commas or punctuations in your keyword search.


Is there a keyword tool like Keyword-Research-Tool.net?

The most popular keyword research tool is Google's Adwords Keyword Tool -choose your location -choose your preferred language -enter a list of keyword terms (one per line - no commas) -enter the Captcha -Click Get Keyword Ideas Google will show your list first, and its own related keyword list below it.


Where could one go online for a free overture keyword tool?

Keyword Discover and Adwords look like good places to start. Nichebot has keyword research tools available. Free Keywords is another site that might be useful.


Where to get qbasic text book?

You can search for QBasic textbooks on online marketplaces like Amazon or eBay. Additionally, you can check with local libraries, bookstores, or educational institutions that may carry textbooks on programming languages. Also, there are many resources available online for free that can help you learn QBasic.


Why the main function is public and static?

The main function is public because it means it needs to be called by any object. I had to check this myself but if you try to make the main function in Java private it will give you a run time error. It is static because it is indicating it is a class method and it does not need to be instantiated. Without the static keyword you would need to do something like this Main main = new Main();


What character can be used as a substitute in a keyword?

Well, you can substitute 'a' with 'a', like: 'auto' instead of 'auto'.


What is return keyword in c?

return lets you literally return a value from a function. This allows you to define functions like: int add(int x, int y) { return(x + y); } int twoplustwo = add(2, 2);