in den Ordnern:
- RocksGam3R_Test
- Programmiersprache 'C'
- Purpl3Umbr3lla_Test
- Programmiersprache 'Java'
- FunGam3R_Test
- Programmiersprache 'C++'
- xxhoeckyxx_Test
- Programmiersprachen 'C und C++'
- Uebungen der TH
This is a little Test
How does Arrays work?
Create a C program lotto.c that randomly selects x different numbers from a range of
1 to n determined. x and n should be entered.
Possible processes of this program lotto.c:
I have to write a Programm that let you show "Lottozahlen" in which crreation you want. Shood look like this:
Lottozahlen-Simulation
=======================
Wieviele Kugeln sollen zur Verfuegung stehen (mind. 1 und max 100): 49 ✞✝ ☎✆←֓
Wieviele werden davon gezogen (mind. 1 und max. 49): 6 ✞✝ ☎✆←֓
==== 6 aus 49 ====
12 15 24 32 37 40
Lottozahlen-Simulation
=======================
Wieviele Kugeln sollen zur Verfuegung stehen (mind. 1 und max 100): 7 ✞✝ ☎✆←֓
Wieviele werden davon gezogen (mind. 1 und max. 7): 7 ✞✝ ☎✆←֓
==== 7 aus 7 ====
1 2 3 4 5 6 7
Lottozahlen-Simulation
=======================
Wieviele Kugeln sollen zur Verfuegung stehen (mind. 1 und max 100): 50 ✞✝ ☎✆←֓
Wieviele werden davon gezogen (mind. 1 und max. 50): 12 ✞✝ ☎✆←֓
==== 12 aus 50 ====
10 13 23 25 27 29 33 36 37 41 42 43
There have to be another way to Subtraction the time in the right way.
Code function is "richtigstellung_zeit()"
int richtigstellung_zeit(int zeitwert, int wert)
{
int zeahler = 0,
zeitwert_alt = zeitwert;
if (wert == 0 || wert == 1)
{
while (zeitwert > 60 || zeitwert < 0)
{
if(zeitwert > 60)
{
zeitwert = zeitwert - 60;
zeahler++;
}
if(zeitwert < 0)
{
zeitwert = zeitwert + 60;
zeahler--;
}
}
}
if (wert == 2)
{
while (zeitwert > 24 || zeitwert < 0)
{
if (zeitwert > 24)
{
zeitwert = zeitwert - 24;
zeahler++;
}
if (zeitwert < 0)
{
zeitwert = zeitwert + 24;
zeahler--;
}
}
if(zeitwert_alt > zeitwert)
{
zeitwert = -zeitwert;
}
}
return zeitwert;
}
Probably the answer is simple and the only thing to change is from this:
if(zeitwert_alt > zeitwert)
{
zeitwert = -zeitwert;
}
to this:
if(zeitwert_alt < zeitwert)
{
zeitwert = -zeitwert;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.