64,152 Solved Topics
Remove Filter ![]() | |
Little bit confuse on how can I turn this if else statement to a do while statement. Need some help.. #include<iostream> using namespace std; int main() { int div1,div2,rem,num; int count1=0,count2=0,sum1=0,sum2=0; system("cls"); cout<<"Enter divisors : "; cin>>div1>>div2; cout<<"Enter remainder to search : "; cin>>rem; cout<<"Enter number 1 : "; cin>>num; … | |
Hi Im having a hardtime making my query work the way it should be.i'm getting wrong output. basically what im trying to do is a simple user statistic that will show the user inputed data and user processed data base on the date range the user selected. heres the screenshots … | |
for example. name of field: f1 = "field1", f2 = "field2", f3 = "field3", f4 = "field4" how can I update the value of f2 and f3 without changing the value of f1 and f4. f2 = "new field2", f2 = "new field3" the new value of fields are. f1 … | |
Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet … | |
I have been cuddling with OOP programming. JavaScript seemed like a good start. I went to w3schools.com. function person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; this.name = function() { return this.firstName + " " + this.lastName this.capitalize = function() { … | |
Hi experts. I'm in need for your help. is it able to create a software who can check if a text file contain a text for example Words.txt has few words inside like: "work, job, play, study, go, house" and at Words1.txt have words like: " People, fun, jokes" can … | |
Hi Group, I'm getting the following error message as soon as the application opens: ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at IPSDataUpdate.Main.RunComplexProperties() at IPSDataUpdate.Main.Main_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at … | |
Hello, I want to know addresses of some coordinates, so I use geopy. my code is from geopy.geocoders import Nominatim def to_degrees(lats, longs): lat_deg = lats[0:2] lat_mins = lats[2:4] lat_secs = int(lats[5:])*60/10000 lat_msecs = int(lats[5:])*60%10000 lat_str = lat_deg + u'.'+ lat_mins + str(lat_secs) + str(lat_msecs) lon_deg = longs[0:3] lon_mins = … | |
Hello to all, i have my problem using php in updating mysql database, i have codes here. my problem is, when i click update, all data update altogether, i dont know what is wrong on my codes, your help is much appreciated. <?php if(isset($_POST['req_code'])){ $servername = "localhost"; $username = "root"; … | |
I cant seem to understand the issue with this statement, admittedly i have not written this code myself but have found it and modified it to work with what im doing, as most open source code is. This is for a secure login script that will pull a salted password … | |
Hello, I hope that I can get an answer for this question. I have a MYSQL table for charges which contains the following fields: ChargesID, ChargesTitle, OfficialFees and ProfessionalFees. What I need is to make a dropdown list which contain ChargesTitle and upon selection to autofill the OfficialFees and ProfessionalFees. … | |
I have the strangest problem. I am using colorbox a jquery plugin to open a modal window. [Click Here](https://plugins.jquery.com/colorbox/) The plugin will work only when i put this on my code `<div id="webcam"></div>`. Bellow you will find the javascript code i use to call the id='webcam' i use it so … | |
I tried playing with AJAX a bit. This is just the chunk of JavaScript I got. // FIRST TIME REQUIREMENT var interAction = new XMLHttpRequest(); var responseAJAX; interAction.onreadystatechange = function() { if (interAction.readyState == 4 && interAction.status == 200) { alert(interAction.responseText); responseAJAX = interAction.responseText; } } alert("inside"); interAction.open("GET", "ss-controller.php?req=freshStart", true); … | |
Hi. I,ve got some very helpfull advice from various experts on here and have nearly finished my program but am having a problem with a do while loop. When i try to put a do while ( the input isn't numbers one to ten) loop on a certain part of … | |
Okay, here I am again. I searched the forum and found the posts that I need to solve this password validator, but I'm not putting it together in my head correctly for some reason. I haven't started the isUpper, isLower, and isDigit functions, but I'm going to do those next. … | |
Hi there , how to integrate auto login in codeigniter? anybody can give idea? | |
Action link in my nav menu <li>@Html.ActionLink("Log Off", "Logout", "Account")</li> My Logout.cshtml codes. @{ ViewBag.Title = "Log Out"; Session.Clear(); FormsAuthentication.SignOut(); Response.Redirect("~/../Home/Index.cshtml"); } Why I can't access my logout form? | |
ok, so I'm trying to basically load a dll that can be under multiple names: - freetype6 - libfreetype-6 and more I don't want it to find freetype.dll (I want it to search for 'freetype' and '6') how can I load a dll with a regex from the system paths?? … | |
Think I am going mad here.. So I have a working website setup in IIS. This was all configured by a previous developer. We have a set of reports that you can browse to by going to localhost/Reports/ReportName, the underlying directory structure in IIS is actually Reports/Views/ReportName/index.cshtml. I have added … | |
Group, I'm extracting some month and year values from dates. I need to ensure they are NUMBERS as I'm going to multiply, add and subtract. I'm assuming I need to DECLARE these as NUMBERs. However I'm not sure how to do this correctly as I'm getting errors preventing me to … | |
Hey guys! So I'm making simple PetShop program based on an UML diagram I did. Anyway, I have 4 classes: PetShop(It's the main class), Pet, Customer, Transaction. I'm having an error on line 22 saying it cannot find symbol. I have the adopt() method in the Transaction class. Here's what … | |
I have a problem with mysqli syntax. I really can't see what the problem is in this code. I dont know much about it. When i use it on a function like this public function Somefunction() { $query=mysqli_query($this->db,"SELECT title,url,img FROM table WHERE status='1' ORDER BY id DESC")or die(mysqli_error($this->db)); while($row=mysqli_fetch_array($query,MYSQLI_ASSOC)) { … | |
Dearl all, Is there any way or codes for export dataset or datatabe to excel file. Whenever I use click event in the button, it will save my report in an excel file. My information inside in datatable (dataset) from database and I want to save it in excel file. … | |
A strange phenomenon! What is this number 8! We are in the 2.7 version of Python. **MY CODE ** x = raw_input("write a list! utilisation of raw_input ") y = input("write a list! utilisation of input ") print x, "resultat of rawinputation" print y, "resultat of inputation" **My input and … | |
Please ,could you explain this sentence The wins should be input in a parameter-less value returning function that returns the wins to the main function returning function just returns value and does not print message , right ? #include<iostream> using namespace std; int wins(int wins) { cout<<"Please input the number … | |
Hello I need help with this java tax assignment it is asking to Write the Java code needed to perform the following:• Calculate state withholding tax at 6.0%, and calculate fed-eral withholding tax at 25.0%.• Calculate dependent deductions at 2.0% of the employee’s salary for each dependent. public class Payroll.Java … | |
hey everyone im making a program that takes a number (n) from the user and then decides if it is prime or not and prints that decision to the screen [CODE] from math import * def main(): n=eval(input("please enter the number you wish to check:")) n=abs(n) if n < 2: … | |
Write a program that takes length as input in feet and inches. The program should then convert the lengths in centimeters and display it on screen. Assume that the given lengths in feet and inches are integers. Based on the problem, you need to design an algorithm as follows: 1. … | |
Hi every I am doing over my programming final project trying to see where I have gone wrong. And slowly am beginning to see some of my mistakes, I guess I was a bit overwhelmed anyway, the is part is where I was and still a bit confused. What is … | |
**Part A.** Define a function triangle that draws an equilateral triangle and takes two parameters: 1. t, a turtle object 2. size, the side length of an equilateral triangle **Part C:** Define a function flagLine that takes 3 parameters and draws a line of flags (triangles). You MUST use the … | |
Here is my php code. It is working fine. <?php ........ $cdt1 = Date("Y-m-d H:i:s"); $last_seen = "2015-05-20 12:15:20"; $datetime22 = new DateTime($cdt1); $datetime11 = new DateTime($last_seen); $interval1 = $datetime11->diff($datetime22); echo $interval1->format('%y years %m months and %d days %H hours, %i min and %s sec '); ......... ?> It is … ![]() | |
In my mind, using linked list is somehow abstract. Despite reading posts with similar topic, I still cannot understand how to apply it in to real problem. My teacher gives my this exercise. In spite of not being mandatory, I want do is to understand the problem: Addition/subtraction /multiplication.. . … | |
I've searched all over the Net and here on DL but I can seem to find only information on passing a single argument when opening a new form. When I attempt to send more than one I get the "Too many arguments to 'Public Sub New()'" error. I am trying … | |
hi ive followed a w3 schools form works fine for submission but if i refresh browers i get the following error Error: INSERT INTO userprofile (postcode, town, firstname, pfirstname, sexuality, psexuality, height, pheight, bodytype, pbodytype, tattoos, ptattoos, piercings, ppiercings, drinking, pdrinking, race, prace, smoker, psmoker) VALUES ('', '', '', '', … | |
Hello, people. A newbie here... sorry. A hired programmer (who doesn't use Windows) is writing a Python thing for me, On my Windows 7 PC, I installed Python v 3.4.3, and he says that I need to install certain non-standard modules... lxml, requests and xlwt from http://lxml.de/ http://docs.python-requests.org/en/latest/ https://pypi.python.org/pypi/xlwt Trying … | |
HI all, I have a question about how Entity Framework deals with databases and models, especially when it comes down to change your model after the database has been created. Let's look at a very simple example. I have an EmployerDetails class as below: using System; using System.Collections.Generic; using System.Linq; … | |
Hey guys, I am debugging some random files trying to get into gdb and I came accross a question how many machine instructions are used for this : `double x, dx, ans;` I guess I could see based on memory addresses and the size of double that 3 variables are … | |
basically, what I want to do is add a function name to an outside reference in a safe sys.modules reference without copying the name... best idea I got is to call a 3rd party function: def myfunc(args): x = None return x addname() # add 'myfunc' to sys.modules['/safe_ref/'] anyone got … | |
how to set countdown of time in jquery... in my database i have one field which content time in int format.. | |
i want to make an application, where user can upload their images and display it in Image control without physically saving it in a folder on disk. after done build the cone, an error show on this line. Dim base64String As String = Convert.ToBase64String(bytes, 0, bytes.Length) Error show on the … | |
Hi! I'm using Microsoft Visual Studio 2008, Microsoft SQL Server Management Studio. I need help. I cant figure out this if else statement for this condition: ///to check condition either the way ID exist in database ///if not exist then way ID can be delete ///if exist, message box appear … | |
Hi, I have a string that can look a little different from time to time. String Example 1: ((823584X80X998.NAOK == "1")) String Example 2: ((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == "2" or 823584X80X1001.NAOK == "3")) And I have this array with matching key (i've shortened the array for readability) ( … | |
Hi. Im using VS2008 and SQL Server Management Studio 2008. I want to ask, i have two different table, TableA and TableB in same database, DatabaseX. Both table have two same column, ColumnY but the data are different within this table. Example: TableA, ColumnY : A1, B2, C3, D4 TableB, … | |
The question sounds like this Permata store is a stationery store. It offers discount for every purchase as stated below. Write a PROGRAM THAT CAN DISPLAY THE DISCOUNT OFFER, ACTUAL price, and price after discount. -Amount spent Entittled discount 50-100 3% More than 100-300 10% More than 300 15% Can … | |
Group, I'm using TOAD to query the Oracle database. My better expertise is in VB.net. I have very little SQL experience. My question: Can I create a variable in TOAD/SQL to prompt for a date(s)? Here is what I want to do: Question 1: Enter Beginning Date (user to enter … | |
Hi all. As mention on the title above, i got an error `Fill: SelectCommand.Connection property has not been initialized` Anyone here have any idea or suggestion on how to solve this error? My code (.aspx.vb) for this program Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click … | |
Before upgrading to EXCEL 2010, I am able to open dbf files created in Visual Foxpro 7 or 9 in Excel 2003. I am not sure why after installing EXCEL 2010 I am no longer able to open the file. I get the error message when I tried opening the … | |
Hi all, I've searched in the ASP.Net and AJAX forums but I can't see any matches to this issue. The reason I'm posting in the ASP.NET forum is that the Error is being caused by my ASP.NET designer page. Myself and another developer are both working on different parts of … | |
Hello Daniweb Community, I was wondering if there is a way to replace words from a listbox. So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg. … | |
Hi I am trying to redirect a url in the htaccess file. RewriteEngineOn RewriteRule ^wakins.co.uk$ http://www.watkins.co.uk [R=301,L] and I have also tried this RewriteEngineOn RewriteRule ^/wakins.co.uk$ http://www.watkins.co.uk [R=301,L] Thanks in advance D |
The End.