Scivillage.com Casual Discussion Science Forum
Will someone come to my aid? (C++ and apps) - Printable Version

+- Scivillage.com Casual Discussion Science Forum (https://www.scivillage.com)
+-- Forum: Science (https://www.scivillage.com/forum-61.html)
+--- Forum: Computer Sci., Programming & Intelligence (https://www.scivillage.com/forum-79.html)
+--- Thread: Will someone come to my aid? (C++ and apps) (/thread-13372.html)

Pages: 1 2 3


Will someone come to my aid? (C++ and apps) - Ostronomos - Dec 17, 2022

I am hoping that one of you might have extensive knowledge of C++ and creating an app using an IDE. I invented an app with million dollar potential but have not gotten it up and running let alone in the app store. I created it when I was high.

I want this app to simply display 3 pages of content in text format. Am I supposed to create a separate header file for the text and then write the code in another file? And use a member function to call the file that the text was saved on? If so, how do I do this?

I do not wish to take an istream just and ostream. Should I use the getline function? If so, what would that look like?


RE: Will someone come to my aid? (C++ and apps) - confused2 - Dec 17, 2022

There's an example of reading (and writing) a file here:
https://www.w3schools.com/cpp/cpp_files.asp

You don't need to use header files for your program if it is only one file - you create headers to link small bits into one large program.

Probably you don't want your output displayed in a terminal window - for an 'app' it needs to be pretty with buttons and windows and such-like.
I don't know of a free (or not free) C++ IDE that does graphics. The Lazarus IDE creates windows and buttons by just drag and drop - a sort of alien technology in the C++ universe but it creates pascal code which is nice and easy to write but not as fashionable as C++. Lazarus is free and has served me well for the last 10 years.
Syne (or other) might be able to suggest a worthwhile IDE to create 'apps' for C++.

Download Lazarus IDE here:
https://www.lazarus-ide.org/


RE: Will someone come to my aid? (C++ and apps) - Syne - Dec 18, 2022

You'd think such a "genius" could figure out how to use Google and access all the answers already out there.


RE: Will someone come to my aid? (C++ and apps) - confused2 - Dec 18, 2022

In fairness - if you don't know what you're looking for - you don't stand much chance of finding it. Servers, html, php, javascript, sql .. many many things you need to know to get an 'app' out there.


RE: Will someone come to my aid? (C++ and apps) - Syne - Dec 18, 2022

Not really. As long as you know which language you intend to use, any specific answers are pretty easy to find. Especially if you're a "genius."
All the basics of app design have been done before, and there's plenty of tutorials out there for just about any language.


RE: Will someone come to my aid? (C++ and apps) - Zinjanthropos - Dec 18, 2022

I wonder if a genius can create something a genius doesn’t know how to create?


RE: Will someone come to my aid? (C++ and apps) - Syne - Dec 18, 2022

(Dec 18, 2022 05:46 AM)Zinjanthropos Wrote: I wonder if a genius can create something a genius doesn’t know how to create?

When you're high, you sure can believe it's possible.

Then you sober up...and start asking smarter people to help you.


RE: Will someone come to my aid? (C++ and apps) - confused2 - Dec 18, 2022

"Standing on the shoulders of idiots" doesn't have quite the same ring to it as "Standing on the shoulders of giants".


RE: Will someone come to my aid? (C++ and apps) - Ostronomos - Dec 18, 2022

(Dec 17, 2022 11:46 PM)confused2 Wrote: There's an example of reading (and writing) a file here:
https://www.w3schools.com/cpp/cpp_files.asp

You don't need to use header files for  your program if it is only one file - you create headers to link small bits into one large program.

Probably you don't want your output displayed in a terminal window - for an 'app'  it needs to be pretty with buttons and windows and such-like.
I don't know of a free (or not free) C++ IDE that does graphics. The Lazarus IDE creates windows and buttons by just drag and drop - a sort of alien technology in the C++ universe but it creates pascal code which is nice and easy to write but not as fashionable as C++. Lazarus is free and has served me well for the last 10 years.
Syne (or other) might be able to suggest a worthwhile IDE to create 'apps' for C++.

Download Lazarus IDE here:
https://www.lazarus-ide.org/

So I will be storing string text in the app, as a string variable. So far I tried to use the getline function and word object but the IDE gave me a weird error message.


Can I do this all in one header file? If so, I want to know which preprocessor variable header guards I will be needing (#define, #ifdef, or #ifndef). And do we need to write these header guards out in each and every file we create? Also, what will I need to charge people for the app and as well, how do I get the app from the IDE to Android?


RE: Will someone come to my aid? (C++ and apps) - Syne - Dec 18, 2022

Baby bird needs spoon feeding.