My genius idea for an app

#1
Ostronomos Offline
A little over 3 years ago I was ^ and I came up with a genius idea for an app. Something consistent with the profound mind-altering effects. As has always been my experience.

I'm currently honing my intellect towards C++ programming in an effort to develop this app within the next year.

So far I'm on chapter one of C++ Primer. It's a highly complex language as you will see shortly.

Basically, each program starts by including a header or more. Headers from the standard library are enclosed in angle brackets. Headers that are not part of the library are enclosed in double quotation marks. The name of the header is derived from the name of the class, if you're using a class. A class defines a type. The name of the type is the same as the name of the class.

Next, inside the main function - where the operating system runs a program by calling main - it defines the variables or objects and initializes them to a certain value. Next it reads the data from the standard input into the object. Finally, it uses the output expression to print a sum or value (usually a numeric value or string) to the standard output.

Whenever we use an if, while or for statement as a condition, the effect is to test the state of the stream. If the read succeeds, then the condition is true and we execute the block immediately following the condition. If the statement is false, then we fall out of the block and execute the else branch.

A conventional sum - the result of two numeric values - may be added by the output statement. However, if one is using a class, such as sales_item, only the components are added, to generate a sum. Note the similarities of the two statments.
Reply
#2
Peeples Offline
So you start a thread about your "genius idea" for an app, and then proceed to say nothing about your "genius idea"? Is this, instead, going to be a blog about your experiences with C++?

What is your "genius idea"?
Reply
#3
confused2 Offline
I Wrote:Can you suggest a free phone emulator and a way to get a few buttons showing .. to help a beginner get started..?

AI Wrote:Yes, there are free Android emulators that you can use to simulate a phone environment on your computer. Here are a few options:

Android Studio Emulator: This is an official emulator that comes bundled with Android Studio. It allows you to create virtual devices with various screen sizes, Android versions, and hardware configurations.

Genymotion: Genymotion is a popular Android emulator that offers a free version for personal use. It provides a user-friendly interface and supports various Android versions.

BlueStacks: BlueStacks is another well-known Android emulator, mainly used for running Android apps on Windows and macOS. It offers a free version with limited features.

To create a simple app with buttons using Android Studio, follow these steps:
Launch Android Studio and create a new project.
Choose ""Empty Activity"" as the project template.
Open the activity_main.xml file and switch to the Design tab.
Drag and drop Button components from the Palette onto the layout.
Configure the buttons' properties, such as text and onClick behavior, in the Attributes panel.
Run the app on an emulator or a connected physical device to see the buttons in action.
Copy
Add reaction
Reply
#4
Syne Offline
Ostro has "started" tackling programming several times. He never gets anywhere with it. Likely because he's too high to concentrate or persist at it.
And he's got delusions of grandeur, where all his ideas are supposedly genius.

All evidence to the contrary.
Reply
#5
Ostronomos Offline
<iostream>

"salesitem.h"

int main

{

sales_item total;

std::cin >> total;

sales_item trans;

std::cin >> trans;

if (item1.isbn () == item2.isbn ())

total += trans;

etc.

else {

}

return 0;

This (in its complete version) is the most complicated program we have seen so far, but it uses only facilities that we have already seen.

As usual, we begin by including the headers that we use, iostream from the library and our own sales_item.h.
Inside main we define a variable named total which will hold our transaction data. We start by reading the first transaction into total and checking whether the read was successful. If the read fails, we fall out of the if condition and execute the else branch following the condition.

A more perspicacious reader will see the similarities between computer programming and reality. Especially the input/ output streams.
Reply
#6
confused2 Offline
There's two ways to get anything showing on a smartphone. You can write your code on your actual computer and have it serve up a page with whatever you want on it. Or you can write your code to run on the actual phone - things like calculators and clocks are just coded in the phone itself. When the page you see is created on the server this is called 'Server Side' and when it is created on the actual phone it is called 'Client Side'.
Unless you have another source.. we'll look at client side software later (much later).
So.. Server side.
To enable your computer to 'serve' pages you need to install a webserver. The industry standard is called 'apache' .. you need to install this on your computer. Then you need to know the address (IP) of your computer on your local area network (ask if a problem) .. then you start your browser on your phone and as the page/address/IP you type in the address (IP) of your computer .. you should see the apache 'hello' page which tells you everything is working. When/if you get that far we'll start making a web page .. the basis of an 'app' but provided by your computer.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is reality shaped by our observation? Fringe idea in science is still controversial C C 0 623 Jan 18, 2025 11:41 PM
Last Post: C C
  Damasio: idea that consciousness might be generated by nervous system alone is false C C 1 651 Nov 13, 2021 09:32 PM
Last Post: Magical Realist
  New perspectives challenge the idea that saturated fats cause heart disease C C 0 495 Jan 25, 2021 07:25 AM
Last Post: C C
  Is classical atomistic theory the most important idea in human history? C C 0 589 May 3, 2020 09:07 PM
Last Post: C C
  Future fruit of the "organisms are algorithms" idea C C 0 756 Jan 28, 2019 05:29 AM
Last Post: C C
  New Power Plant idea uses Fusion trevorjohnson 9 2,927 Aug 12, 2017 07:11 PM
Last Post: trevorjohnson
  Cosmogenesis: The idea of creating a new universe in the lab is no joke C C 1 829 Jun 25, 2017 08:30 PM
Last Post: Magical Realist
  The inheritance of crime: An old, discredited idea makes a comeback C C 0 788 Jul 11, 2016 07:51 PM
Last Post: C C
  Multiverse can't explain reality: The idea that is even stranger C C 3 2,064 Feb 13, 2016 05:43 PM
Last Post: C C



Users browsing this thread: 1 Guest(s)