473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to make a ."something" command in c++

93 64KB
Hey!, it been a long time since last time and this time it's an AI script for a rocket probe... I need a subcommand like:
Expand|Select|Wrap|Line Numbers
  1. something.something();
underneath the main commands... but how do I set these up in the class?
May 13 '14 #1
3 1370
weaknessforcats
9,208 Expert Mod 8TB
You need a class declaration with something() as a public member function.

Then you create an object of this class, say obj, then you can code obj.something().

You may want to spend a little time reviewing the details of this.
May 13 '14 #2
Xillez
93 64KB
can you send me a link to any tutorials? if you could do that would be awsome... thanks for you help!
May 13 '14 #3
weaknessforcats
9,208 Expert Mod 8TB
There's no point in doing that. If you Google "c++ tutorial" you will get links to over 17,000,000 pages.
May 13 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: peter_bradley | last post by:
Hi all, Not sure if this is possible, but can I change the controls of a command button on a per record bases in a subform. In my case, I would like to make a command button visible only if...
9
by: Atley | last post by:
I am looking for a way to run DOS-type commands from within a VB.net 2003 application. I also need to be able to answer questions (ie 'Are You Sure') that the command line may require. ...
1
by: Fester Bestertester | last post by:
Okay, here's the bonehead question of the day: Is there some syntax or command line switch that I can use to call a Public Sub from a command line? If so, what is the syntax? The purpose: if I...
0
by: Tharpa Roberts | last post by:
Under Visual C++ 6.0, if you made a command-line program, it would stay open after execution, and then you would press any key to close it. Under Visual Studio 2005, if you make a C++ command...
4
by: abolos | last post by:
Hello, I have an unbounded text box which have a default value of Zero (0). And a command button which is not enabled and will save the value in the text box when pressed. What I want is that:...
1
by: wish | last post by:
Hello Let say my situation is like this, i want to sort the serialno column in ascending order and at the same time i also want to sort the modeltype in ascending order and all the same...
1
by: Dave Programmer | last post by:
In a Makefile, I have something like the following: # makefile start X = "default_x" Y = "default_y" targA: dosomething -x $(X) -y $(Y)
3
by: Sean425 | last post by:
import java.util.*; class variables { public static void main(String args) { Scanner input = new Scanner(System.in); String op; int numberOne, numberTwo, result = 0;
12
by: Atropo | last post by:
Hi all. Having several strings how do i combine them to construct a command; lets say to run the date command. string str = "14/10/08 19:06:09"; strDD = str.substr(0,2); strMM =...
1
by: muawais | last post by:
hy i am trying to install Osmocomm-bb i have installed toolchains and required libraries but when i run make command in scr directory of osmocomm bb it produce the following error. configure:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.