![]() |
|
My genius idea for an app - Printable Version +- Scivillage.com Casual Discussion Science Forum (https://www.scivillage.com) +-- Forum: Science (https://www.scivillage.com/forum-61.html) +--- Forum: Alternative Theories (https://www.scivillage.com/forum-130.html) +--- Thread: My genius idea for an app (/thread-19675.html) |
My genius idea for an app - Ostronomos - Jan 25, 2026 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. RE: My genius idea for an app - Peeples - Jan 26, 2026 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"? RE: My genius idea for an app - confused2 - Jan 26, 2026 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: RE: My genius idea for an app - Syne - Jan 26, 2026 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. RE: My genius idea for an app - Ostronomos - Feb 5, 2026 <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. RE: My genius idea for an app - confused2 - Feb 7, 2026 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. |