199,114 Archived Topics
Remove Filter ![]() | |
#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { srand(time(NULL)); int tries = 0; int iNum; int UpperLim = 100; int LowerLim = 10; int iCompNum; cout << "Enter a number: "; cin >> iNum; do { iCompNum = rand() % (UpperLim - LowerLim) + LowerLim; cout … | |
I want to make this table with HTML and CSS but somehow the image cant appear in the browser... Can you help me? https://prnt.sc/rmo2xl .box-border { display: inline-block; border: 1px solid; height: 80px; width: 100%; } .image-position { display: inline-block; } <div class="box-border"> <div class="image-position"> <img src="igniteLogoImage.png" alt="asdasd" width="42" height="42"> … | |
ok i dont really know how to explain this but... c:=readkey; case (c) of #13:Halt; #27:goto menu else goto quit; as you can see above if you press Esc(which is 13) the program quits and if you press Enter(which is 27) it gos to the menu. I want to know … | |
I have the following two tables: TABLE 1: +-----------------------------+--------------------------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------------------+--------------------------------------+------+-----+---------+-------+ | patient_id | bigint(20) | NO | PRI | NULL | | | patient_wpid | int(11) | NO | PRI | NULL | | | age_at_visit | … | |
Hi there, I have multiple check bok in the html webpage. I want to get the selected check box value usin Javascript and email that value in email body content using a href mailto. Kindly please HELP me in this. Thank you. | |
to make our project finish, i need to get the data from the user who just log in(only his/her data) but i dont have any idea how, can someone help me...thank you very much! well appreaciated :) so this is the part where i need to add something so i … | |
Is there any way to backup/dump/export all the databases in one step and vice-versa (import all databases into MySQL) in MySQL ? If yes, then how I can do this..? | |
Hello I wish to call crystal report in my VB6 Application. For showing data report i used following code ; Example Date report name : datareport1 Code for showing report Load datareport1 Datreport1.show I have crystal report named "studentregister". please explain me how can show the crystal report in my … | |
Hello everone my name is reidho i have a problem with my code, i want to mirroring a api output from somesite using file_get_contents but the results is not like the original. Original Result :  My Mirroring Result :  The Code : $ping = "https://api.hackertarget.com/nping/?q=8.8.8.8"; $pingkeluar = file($ping); … | |
Hi all, I am building a GUI application using Python and Tkinter to mimic a Pay-At-Pump system. Currently, I am at stage where I have coded and defined the relevant frames and widgets that help to traverse through those frames, these are organised into classes. However, I am trying to … | |
Hi, I want to copy the data in the PayJour table to the ARCPayJour Table using the Clients Table where the StatusCo = 108. The problem is that the Clients table stop at the first 108 it gets and then do the copy prossecc, but do not go through the … Programming first-post | |
Hi,i have this code that i need to turn in for my homework. I based it off some things i saw on the internet. The point of the homework is that i need to have 2 or more structures and use some functions. It would mean a lot if someone … Programming c++ python visual-basic | |
these are the goals of the assignment i am trying to complete, i am running into a problem where i need to create a function get the product the customer selected and reutrn that information in a cout that also inculdes information from another function, i got the first part … | |
Hi, I have form1, and second form2 When I call second form2, form1 is disabled for any interaction. customer.Show() Me.Enabled = False Close button on form2 code is Private Sub Closebutton_Click(sender As Object, e As EventArgs) Handles Closebutton.Click Me.Close() Form1.BringToFront() Form1.Enabled = True End Sub As you can see, I … | |
<li><a href="#">Pre Schools</a> <li><a href="#" style="cursor: yes;">Schools</a> ** <li><a href="#">Contacts</a> <li><a href="#">Results</a> <li><a href="#">School Performance</a> <li><a href="#">Ranking</a> ** (These Items are required in Horizontal Sub Menu of School. How to do this?) <li><a href="#">Colleges</a> | |
Hello everyone, hope you're having a great day :D I have a project idea in mind but unsure how to go about solving it / unsure if i can solve it. I want to be able to classify messages to categories, where not all categories are known. I want the … | |
I have 2 form there are form 1 and form 2 my program current situation is when user click delete it will pop up a login form. When user click cancel button from login form the data on the database will be delete  when user click cancel it will … | |
<?php if(!empty($_POST[`submit`])){ if(empty($_POST[`user_name`])|| empty($_POST[`phone_number`])|| empty($_POST[`email`])|| empty($_POST[`password`])|| empty($_POST[`confirm_password`])) { exit("please fill in all the fields. <a href = './register.php'>return</a>") } if($_POST[`password`]!==$_POST[`confirm_password`]) { exit("passwords must match. <a href = './register.php'>return</a>"); } $pattern = "/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/"; if(!pregmatch($pattern,$POST[`email`])) { exit("please enter a valid email address. <a href = './register.php'>return</a>"); } /* $pwd = $_POST['password ']; … Programming php | |
Can I relocate to a new url after click the ok button using sweet alert? this is my javascript file, where should I place here the code if its possible thank you $(document).ready(function() { $('#formA').on('submit', function(e) { //Don't foget to change the id form $.ajax({ url: 'includes/Aenduser.inc.php', //===PHP file name==== … | |
Dear All, Good Morning! I am facing this issue i tried a lot but not able to find the issue with this function when i call this function i get error Argument not specified for parameter 'LVL' of 'Public Function UL(LVL As String) As String' The code is listed below, … | |
Hello dears, can anyone help me with how to code this: Write MARIE code to: 1. Input a number and store it in X . 2. Y will be equal to “ | |
can you please help me to answer that problem? This is a question, I have an employee salary table, How do I find the second highest from it.? A big thanks to those who will help. I appreciate it a lot. | |
Hi all, I am doing web services for an Android application which sends push notification. Below is the scenario: 1. I have 100s of customers registered on the website 2. Each user has his own subscribers list 3. Each user can schedule the push notification to be sent at a … | |
Hello! Can someone help me with coding in R ? I am new to R and I need to solve this project. It has been so many days I dont find a solution. This is the problem : You are an online movie and concert ticket service. Visitors go to … | |
Hi, I am trying to create an app with 2 python files, the first reads the user input (either from python shell or directly from the keyboard via modules like pynput-keyboard) and stores it in a variable (after enter pressed). The second creates the gui that has 2 labels and … | |
I have a problem where my text boxes are not being populated with existing data. I have two submit buttons, but the problem appears to happen when I call; return View("Index", siteInfo);. Here is my code; // GET: NewEntry public ActionResult Index() { return View(); } /// <summary> /// Generate … | |
I am trying to work out how to get data from two different tables in the same database and retrieve the filenames uploaded into the database for a specific ticket id and username. I have been having a go at the php code myself and have managed to INNER JOIN … | |
Hi helpful people. Its been a while since Ive been here, ever since I employed someone who knew about IT to look after it for me. I'm back on my own again, and looking for a bit of guidance please? I run a small sales company and receive daily sales … | |
Hello, While trying to get back into programming, I come across problems. The first one is: Why can't I work with global variables? Is there a new way of doing the same thing? Thanks | |
<?php if(!empty($_POST[`submit`])){ if(empty($_POST[`user_name`])|| if(empty($_POST[`phone_number`])|| if(empty($_POST[`email`])|| if(empty($_POST[`password`])|| if(empty($_POST[`confirm_password`])) { exit("please fill in all the fields. <a href = './register.php'>return</a>"); } if(empty($_POST[`password`]!==$_POST[`confirm_password`]) { exit("passwords must match. <a href = './register.php'>return</a>"); } $pattern="/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/"; if(!pregmatch($pattern,$POST[`email`])) { exit("please enter a valid email address. <a href = './register.php'>return</a>"); } $pwd = $_POST['password ']; if( strlen($password ) … Programming php | |
Mobile devices now offer a smooth and efficient method to reach customers. Attract new consumers and retain existing customers. Indeed, a mobile application is better than a website. To do this, you can create an application yourself if you have the right knowledge of the process. Or you can choose … | |
Greetings, my objective is to create a `Dictionary<string, string>` (or `Dictionary<string, List<string>>`), adding elements to it from a `List<string>`. The first string of the list should be the key of the dictionary, the other strings the value. For example: `List<string> list = new List<string>() { "key1", "value_x1", "value_x2", ... };` | |
I'm creating this page (http://www.50allstars.com/2018/05/test-menu.html) and would like to be able to directly link to a particular tab if need be. I've found a site (https://css-tricks.com/better-linkable-tabs/) that says a way for this to be done, but I'm not sure how to implement it or if there's a more simple & … | |
Hi, I want to sort an array of struct 'Workshops' in accordance with its member variable 'start_time'. I thought of using std::sort for the array and supplying 'CompareWorkshops' function as the third parameter- bool CompareWorkshops(Workshops W1, Workshops W2) { return (W1.start_time <= W2.start_time); } //calculate max no. of non-overlapping workshopes … Programming c++ | |
Hi i own an online game and i wish to know weather there is a way to disable my members from changing the URL in the url bar and only allow them to click links. If they change the URL in the url bar i would like it to header/re-direct … | |
I'm testing a new site on XAMPP. I have run into this notice: **Notice: A non well formed numeric value encountered in D:\xampp\htdocs\marksman\includes\register.inc.php on line 17** Code below class RegisterUser extends Db{ private $fullname; private $emailaddress; private $username; private $password; private $passwordRepeat; private $emailCode; public function registerUsers(){ if(isset($_POST['register-submit'])){ $this->fullname = … | |
Hi java coder here im converting a program into delphi for a project basicaly ive forgotten my whole delphi maths soo can anyone convert this into delphi [CODE](l1 & 0x2 ^ 0xffffffff) == -3;[/CODE] | |
Hello All. I have been working on getting code first migrations working for my asp webpage working for many weeks with lots of frustration. The main reason why i want to use migrations is to add a new column company or something else to my asp websites main login using … | |
hello everyone, I would like to ask for some help with my assignement. My task is to make a program which is converting arabic numbers to roman numerals, but I can't use loops. | |
Hey? Can someone help me to this program? I need to Search an specific information of a student. #include<iostream> #include<fstream> #include<istream> #include<stdlib.h> #include<string> using namespace std; void login(),registr(),form(),Add(),ShowList(),Search(),Update(); struct Student { int id; char name[25]; char name1[25]; char address[25]; char city[25]; int age; char gender[5]; string email; string contact; char … | |
I have used GroupBy and have got the value as below into individual array but the array consist of 5 sets of same Id so how do group them futhure to get something like expected result below , any idea would be helpful [{ "id": 116, "amgId": 168755, "amgName": "FIT", … | |
Hello! This is my first time trying to use Java, and I was trying to learn something with the "Scanner userInput" and ".nextInt()". After I put a bit of code on, it showed me: Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at java.util.Scanner.nextInt(Unknown Source) at java.util.Scanner.nextInt(Unknown … Programming java | |
How to convert a date that is in the format yyyy-mm-dd. For example: 2014-12-12 to Dec 12 2014? | |
Im just learning javascript and want to make a code for a prank on my friend. I want it that when i plug in a certain usb it will pop up a fake virus alert after a couple of seconds, and when you exit off it will pull back up … Programming java javascript | |
Hi, A few years ago, me and a colleague built the below code as a tool for our team to automatically update the names on our saved files in line with the company records management policy. Now that policy has changed and I need to update the code, and unfortunately … Programming visual-basic | |
Hi, i want to learn how to parse user input and check its validity in c#, for example i want the user to input a specific format : "x,y to x,y" where x is a number and y is a number (entered by the user) like : "1,4 to 3,8" … Programming c# | |
alright so i have got a c++ code(AIRLINE RESERVATION SYSTEM) which i can run as console application, but i want to convert it into GUI, and i dont know anything about GUI, where and how should i begin, i have 1 and half month to present it. | |
Hello I have a abstract class: import javax.swing.JOptionPane; public abstract class Question { static int nQuestions = 0; static int nCorrect = 0; String question; String correctAnswer; abstract String ask(); void check() { nQuestions++; String answer = ask(); if (answer.equals(correctAnswer)) { JOptionPane.showMessageDialog(null,"Correct!"); nCorrect++; } else { JOptionPane.showMessageDialog(null,"Incorrect. The correctanswer is … | |
Does anybody know a good way to break a screen up into multiple sections for filling out lengthy multi section data? I would like something that I can break data inputs up into sections and move onto the next section when I finish filliing out a section prior, sequentially. What … | |
How important is Unit Testing taken by employers, is it something that every developer should have as one of their skills, do some jobs require it more than others or is a simple test like handing out a piece of software to be used by friends family etc sufficient enough. |
The End.