有很多不同的方式可以让你与你的精神层面建立联系,无论是冥想、瑜伽,甚至是难以捉摸的算命世界。算命源码,或者特别是算命源码应用程序,对于那些想要开始使用算命源码,或者只是让他们的读数更快、更容易接收的人来说非常有用。所以,这里将介绍一款算命源码占源码供大家安装使用。
源码及演示:m.appwin.top
部分源码:Header .c
//Header File
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <ctime>
#include <fstream>
using namespace std;
//MENU OPTIONS
//functions for menu options
void startReading();
void retrieveData();
void viewTarot();
//menu options
char menu()
{
char response;
cout << "Would you like to - ";
cout << "[S]tart a new reading, [R]etrieve a previous reading, [V]iew up tarot card information or [Q]uit?" << endl;
cin >> response;
cin.ignore(256, '\n');
return toupper(response);
}
//starts card game simulation
void startReading()
{
system("pause");
system("CLS");
}
//displays last saved reading
void retrieveData()
{
system("pause");
system("CLS");
}
//view tarot card input file
void viewTarot()
{
system("pause");
system("CLS");
}
//add messages to saved output file
void dataLog()
{
system("pause");
system("CLS");
}
//File I/O
class TarotLogg
{
private:
string writeLine; //input string
public:
//function to open and output file
void startRem()
{
ifstream infile("TarotDiv.txt"); //input file stream
ofstream outfile("TarotLog.txt"); //output file stream
//opens text file
if (infile.is_open())
{
//outputs text file to console
if (outfile.is_open())
{
//reads through file until the end
while (getline(infile, writeLine))
{
cout << writeLine << endl;
outfile << writeLine << "\n"; //prints line
} //end of while
outfile.close(); //closes output file
} //end of outfile
//error if output file can not be opened
else cout << "Unable to open output file. \n" << endl;
infile.close(); //closes input file
} //end of infile
//error if inpu