2,720 Recommended Topics
Remove Filter | |
I have MinGW installed on Windows 10. Can you help me compile something with it? I get this $ g++ first.cpp -o first bash: g++: command not found And then $ apt-get install g++ bash: apt-get: command not found | |
#include <iostream> // input and output code #include<conio.h> // getch - passwd #include<cstdio> // fileopen fscanf fileclose #include<windows.h> // system cls and pause using namespace std; ///////////////////////////////////////////////////CLASS EMPLOYEE ///////////////////////////////////////////////////////// class admin{ private:// variables for admin details char name[30],id[5],position[20]; int age,Salary,experience; //quit functions void quit(void){ cout<<"\n\n\n Please ENTER To Go Back … Programming c++ | |
Hi, everybody. I write bots and decided to share my experience of writing bots on the [Chat API] platform, maybe it will be interesting to someone We’ll tell you how to write a simple bot on PHP using API WhatsApp. A demo bot will react on commands of ordinary Whatsapp … Programming php | |
## Introduction ## If you are a Java developer coming to Kotlin, you might have wondered how to use a language construct that is similar to the try-with-resource statement in Java to automatically close Autocloseable/Closeable resources for you. Luckily, Kotlin provides the inline extension function `use()` that provides similar functionality … | |
## Introduction ## In Java, a common way to express a type that is a combination of two or more types is to just create an interface that extends the other types. The problem with this approach is that your code might be littered with interface declarations, polluting your code … | |
I have a issue with the code below what I am trying to get the image from gifts table with matching the user_gifts id with the gifts_id but can not seam to get it right anyone god any ideas thanks. public function get_my_gifts($user_id) { global $db; $my_gifts = []; $get_my_gifts … | |
Debug time Application run good all private sub and Function work properly, but with out debug not run properly please help me | |
so i have an assignment for a class to make a pick up sticks game. This is the actual assignment: "The rules of pick up sticks are as follows: The user chooses the number of matchsticks (5 to 50) to place in a pile. Then, the computer chooses who will … | |
Hello everyone, I am currently working on a project for a friend and have encountered some issues. I am attempting to fill out a form with a library called iTextsharp: [url]http://itextpdf.com/[/url] The form that I am attempting to fill out is [url]http://www.copyright.gov/forms/formco2d.pdf[/url] and I have been able to fill out … | |
Hi all, I've started to dive into OpenGL w/C++ to expand my library knowledge but I had a few questions. I've been following a tutorial online that basically walks step by step through the compiler linking, functions, and basics of an OpenGL program. I really would love to create some … | |
What I would like to do is to register a couple of shortcuts to move the mouse cursor. The cursor should jump from the one square area of the screen to the other. The question that comes to mind first is: which keys are not used (or at least not … | |
I'm trying to figure out why the regex code below gives me two different results, depending on where I use it. [A-Z]{0,1}[a-z]{2,}[:] **On phpliveregex.com, the above regex code matches the following:** narrator: Narrator: **When used in preg_match, the above regex code matches the following:** narrator: Narrator: NARRATOR: PS I'm not … | |
1. Write a program that would print the information (name, year of joining, salary, address) of employees by creating a class named 'Employee'. 2. Create a function in the Employee class that finds an employee by the given year of joining. 3. Create a function for sorting the employees according … | |
task 123454321 123454321 123454321 123454321 123454321 #include<iostream> using namespace std; int main(){ int i,j; for (i=1; i<=5; i++) cout<<i; for(j=4; j>=1; j--) cout<<j; } But what the next ??? Programming c++ | |
can someone explain to me this code and what the output should look like?, is there going to be two strings? and what does dest[I]=to src[] mean, is string bar going to have the string abcd or efghijk. #include <stdio.h> void copy_str(char *dest, const char *src); int main(void) { char … Programming c | |
The alarm clock application works by setting a certain time and then it perform a certain task eg:sound an alarm, display a messagebox test message. But the problem comes where i need to snooze(delay) the alarm clock for a certain time period like 10 second... Then it will re-initialise the … | |
## Introduction ## RxJava 3 includes 5 core classes: 1. Flowable, 2. Observable, 3. Single, 4. Completable, 5. Maybe. This tutorial aims to teach the basic concepts behind Observable, which serves as a foundation for understanding the other 4 classes. ## Goals ## At the end of the tutorial, you … | |
## Introduction ## In this tutorial, we will look at the RxJava `mergeWith()` and `concatWith()` operators. Amongst others, they are used to combine Observables together. All of the RxJava operators have ambiguous names, and behave differently, so let us take a look at 2 operators, `mergeWith()` and `concatWith()`, to see … | |
## Introduction ## `launch()` and `async()` are two of the most common coroutine builders to use in Kotlin, but they are somewhat different in usage. `launch()` returns a `Job` object, which can be used to cancel or perform other operations on the underlying coroutine. If our coroutine lambda returned a … | |
## Introduction ## In Kotlin, we can extend classes without subclassing via extension functions and extension properties. This feature is useful whenever we want to extend 3rd party libraries or final classes. In this tutorial, we will learn what extension functions and extension properties are, and how to create our … | |
i have code for write on console and change the text color and backcolor and clear screen(and much more) inside of a nice class console. these function change the text color and back color: void SetColorAndBackground(int ForgC, int BackC=0) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) ); } but is there any way for … | |
Write a C or C++ program that outputs prime numbers. This program should work as follows: The user will run the program and will enter a number on the command line. The program will then create another process using fork() that outputs all the prime numbers less than or equal … | |
The arithmetic mean of two numbers is the result of dividing their sum by 2. The geometric mean of two numbers is the square root of their product. The harmonic mean of two numbers is the arithmetic mean of their reciprocals. Write a C++ program that asks the user for … | |
hello i am new to the coding world and i am trying to get this login code to only accept the names and passwords in the access database, current any can login. please assist Imports System.Data Imports System.Data.OleDb Imports System.Data.DataTable Public Class Form1 Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal … Programming vb.net visual-basic | |
I am currently using HTML and Javascript to create a number guessing game. The issue with my current code is that any number the user inputs is a number that is ruled as the correct number. The problem is that the random number generator is not being recognized for some … | |
i been trying trying to convert a number of seconds into days, hours, min and seconds. but i keep getting errors, "expected identifier or '('" . how should i fix it.` #include <stdio.h> #include <stdlib.h> void to_dhms(int total_s, int *d, int *h, int *min, int *s); int main(void) { int … Programming c | |
hi all...i am a not that much in programming ... i would ask you how i can generate a multiple choice question chosen randomly from a list of questions with answers using functions in C program ...i know how to generate random numbers only ... help me please ,,, as … | |
hey guys, i was wondering, is there any other way to hide .php extensions without using .htaccess? Instead of: [url]http://www.example.com/index.php[/url] Visitors to your site will see: [url]http://www.example.com/index/[/url] my webhost does not support the .htaccess thingy. :yawn: :@ | |
i need code for insert multiple rows into database please help me | |
A shop owner has 2 outlets namely a High Street Branch and Mall Branch, before Covid19 lockdown the respective shops recorded sales as follows: High Street Branch Quarter Sales Q1 42,000 48,000 50,000 Q2 52,000 58,000 60,000 Q3 46,000 49,000 58,000 Q4 50,000 51,000 61,000 Mall Branch Quarter Sales Q1 … Programming java |
The End.