#include <iostream>
using namespace std;
class test {
public:
test(int one, int two); //concustructor taking two arguments.
private:
}; one (1, 1)
//one will be created as an ojbect -- but as now the compiler will give me an error
void main()
{
}
Is there a way when this class has been defined that I can create a object with it so the user does not have to?
By that I mean the user will use the class methods, but the object deprived from the class test will have been already created.
So in main I do not have to declare say test one. Sorry I can't be more clearer on this but it is the same way you can do it with structures.
Segra 1.6.0 by Razvan Serea
Segra is a free, open-source OBS-powered game recorder offering fast gameplay capture, instant clips, AI highlights, deep game integration, and seamless uploads—perfect for gamers, streamers, and content creators. Lightweight, fast, zero bloat.
Segra key features:
Automatic Game Recording: Begin capturing gameplay the moment your game launches, with zero manual setup.
Instant Clipping: Save important moments instantly using a customizable hotkey—perfect for highlights, montages, or quick shares.
Segra AI Highlights: Let Segra automatically detect kills, assists, deaths, and key events to generate polished highlight reels without manual editing.
Gameplay Uploads: Upload recordings and clips directly to Segra.tv for fast sharing and cloud access.
Deep Game Integration: Enjoy advanced game-data tracking across hundreds of supported titles, enabling smart highlight generation and stat-informed clipping.
High-Performance Capture: Record up to 4K at 144 FPS using OBS-powered technology with minimal performance impact, supporting NVENC, AMD VCE, and custom quality controls.
Segra Editor: Edit recordings easily with timeline controls, segment management, and event-based navigation to build the perfect clip.
Customization Options: Adjust hotkeys, output formats, storage paths, codecs, capture quality, and performance settings for a tailored recording experience.
Segra 1.6.0 changelog:
Recording: Added HDR support.
Grand Theft Auto: Added game integration for deaths (FiveM and RAGE MP supported).
Highlights: Added customizable padding for highlights.
Replay Buffer: Added a shockwave visual effect when a replay buffer clip is saved.
Audio: Increased the maximum sound effects volume from 100% to 200%.
Hotkeys: Fixed hotkeys not triggering while unrelated keys were held.
Installer: Added code signing to verify publisher identity, branded the installer, and reduced OS security warnings.
OBS: Updated the supported OBS version to 32.1.2.
Download: Segra 1.6.0 | 74.4 MB (Open Source)
View: Segra Homepage | Github | Screenshot
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
Most of the sellers are selling under a business name, and you can't jail a business.
The best option would be to blanket ban brick chargers and regulate fixed PD faceplates for wall as a spur from existing sockets. That way they'd be checked with during during an EICR.
Question
Genesi
#include <iostream> using namespace std; class test { public: test(int one, int two); //concustructor taking two arguments. private: }; one (1, 1) //one will be created as an ojbect -- but as now the compiler will give me an error void main() { }Is there a way when this class has been defined that I can create a object with it so the user does not have to?
By that I mean the user will use the class methods, but the object deprived from the class test will have been already created.
So in main I do not have to declare say test one. Sorry I can't be more clearer on this but it is the same way you can do it with structures.
Thanks.
Link to comment
https://www.neowin.net/forum/topic/220912-creating-a-object-from-a-class-automatically/Share on other sites
8 answers to this question
Recommended Posts