Senin, 14 Juli 2025

Queue


#include <iostream>

#include <queue>

int main() {

    std::queue<int> myQueue;

    myQueue.push(10); // Add 10 to the queue

    myQueue.push(20); // Add 20

    myQueue.push(30); // Add 30

    std::cout << "Front element: " << myQueue.front() << std::endl; // Output: 10

    std::cout << "Back element: " << myQueue.back() << std::endl;   // Output: 30

    myQueue.pop(); // Remove 10

    std::cout << "Front element after pop: " << myQueue.front() << std::endl; // Output: 20

    std::cout << "Queue size: " << myQueue.size() << std::endl; // Output: 2

    if (myQueue.empty()) {

        std::cout << "Queue is empty." << std::endl;

    } else {

        std::cout << "Queue is not empty." << std::endl; // Output: Queue is not empty.

    }

    return 0;

}

Minggu, 13 Juli 2025

Minggu, 08 Juni 2025

Japanese song

 https://www.youtube.com/shorts/t3HCLWdfB4g

https://www.youtube.com/shorts/-yABoHCwI2Y


chinese song

 https://www.youtube.com/shorts/VovVNLLZ_lc

https://www.youtube.com/watch?v=EKq6k-21eXw&list=RD1-jybnkMtpU&index=12

https://www.youtube.com/watch?v=qpgwH9HrmlA&list=RD1-jybnkMtpU&index=15


https://www.youtube.com/watch?v=Ga0fIIgTKpQ&list=RD1-jybnkMtpU&index=21

https://www.youtube.com/watch?v=SI25lDeJ32A&list=RD1-jybnkMtpU&index=22

https://www.youtube.com/watch?v=H3Qlumjqvwk&list=RD1-jybnkMtpU&index=27

https://www.youtube.com/watch?v=iBUV7dxGhno&list=RD1-jybnkMtpU&index=26

https://www.youtube.com/shorts/Sj0QzyH_7VA

https://www.youtube.com/shorts/KFhyk5oUHNY

https://www.youtube.com/shorts/VUGFdkXFTmo

https://www.youtube.com/shorts/ejeanYP18nU

https://www.youtube.com/watch?v=m_flgmciCoE&list=RDkwvZHMU0cTw&index=8

https://www.youtube.com/watch?v=Fo9yBgL7TzM&list=RDkwvZHMU0cTw&index=9

https://www.youtube.com/watch?v=XX73VAr3zr8&list=RDkwvZHMU0cTw&index=25

https://www.youtube.com/shorts/sJyF4ri4BSk

https://www.youtube.com/shorts/Av9LMrvGfL0



Rabu, 09 April 2025

Ghibli

 Kunjungi :https://chatgpt.com/

Upload foto :


Ketik prompt Ghibli

Hasil :



Chatgpt

 Kunjungi : https://chatgpt.com/

Upload Foto ini ;


Tulis prompt nya :

Create a toy of the person in the photo. Let it be an action figure. Next to the figure, there should be the toy’s equipment, each in its individual blisters. 1) a book called “Geografi”. 2) a a book called “RPP”. 3) Map. 4) compass. 5) Quadcopter. Don’t repeat the equipment under any circumstances. The card holding the blister should be a background of Alaska. Also, on top of the box, write ‘Dudi Gunawan’ and underneath it, ‘Guru Geografi’. Add a warning sticker at the bottom: “Hayu diajar Geografi!”. The figure and equipment must all be inside blisters. Visualize this in a realistic way.


Hasilnya :