241 Topics
|
|
I'm not good with math functions at all, but I've searched for a while and couldn't find anyone even touching on this subject. I'd like to have the price of $900 slowly approach $1500 between the dates of April 1st and August 1st. That's about $5 per day, and the … |
|
Hey guys i'm a noob with javascript. I have two scripts that generally do the same thing but each do not properly work with my code. The first script will work with adding rows and allow me to delete them, however it will also delete the top row. This is … |
|
Firstly, I would like to apologize for the massive number of nooby crap questions that come out of my account. I'm an emerging programmer that doesn't always know what he's doing, so I'm sorry. Secondly, the problem. I'm writing this code: class Object(): def __init_(self, vertices, color, name): self.color = … |
|
So here is my WORKING code. My problem lies in the output when I enter "0" or "00" for the hour in 12 midnight. No matter what it still outputs a 0 for midnight. (I want it to convert it to standard time.) I know it is something easy that … |
|
Hi guys, Just wanna ask what the "::" is for? ex. CRM_ContactsCommon::get_my_record() Correct me if I'm wrong, the **CRM_ContactsCommon** is a class and the **get_my_record** is a function inside the class. Now, is the "::" works the same way like in java to access a function of a class? Thank … |
|
*** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two numbers, it has two parameters of type Integer. It has no errors whatsoever until you compile it, and it says … |
|
My program keeps crashing once I try to make my custom class use some of its own functions My custom class looks like this: Entity.h #ifndef _ENTITIES #define _ENTITIES #include "actual.h" #include "Manager.h" struct Position { float x, y, z; }; class Entity { public: Entity(); ~Entity(); bool Init(Actual*, int); … |
|
unable to insert data into table user_detail using jquery i've three files index.php, upload.php, function.php // index.php <?php require_once('function.php'); session_start(); if (!is_user()) { redirect('signin.php'); } $ip = $_SERVER['REMOTE_ADDR']; ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Home</title> <link rel="stylesheet" type="text/css" href="css/pure-min.css"> <link rel="stylesheet" type="text/css" href="css/style.css"> <link href="css/uploadfile.css" rel="stylesheet"> <script src="js/jquery.min.js"></script> … |
|
Hi all, I am developing calculator app using C#.I have successfuly implemented its standard arithmetic functions but a bit trapped in implementing scientific functions such as sin,cos.tan etc. I take an operand1,then operator and finally second opernad to workout arithmetic calculations.In the very first attempt to do scientific calculation i … |
|
I am trying to make a function that rounds number.. I declared the function above the main and voided it Then I recalled the function in the program and listed the variables needed in brackets and then I wrote the function I can't work out what is wrong. [ICODE]#include<stdio.h> #include<math.h> … |
|
Hello, I am working on some code that does a remote call to a licensing server to validate whether the license is valid, invalid, expired and suspended. I have a login code that is using prepared statements: function login($email, $password, $mysqli) { // Using prepared statements means that SQL injection … |
|
I am tring to perform a calculation in my query. I've been working on it for hours, so I need another pair of eyes to see what I am missing. Everything in the query is working except for the g.courseFee part. The course fee is not being added to the … |
|
Good Day Daniwebbers! Wonder if I can have some help. I am trying to build an 'admin panel' of sorts where the user can add content to their website, edit and delete it, all from one spot (Not unlike a CMS system I guess but purely for the purpose of … |
|
Hi there, I am having a problem of passing arrays to functions, here is my code: void zeroMatrix(float **arr); void main() { float e[2][2]; zeroMatrix(e); } void zeroMatrix(float** arr) { int i,j; for (i=0;i<2;i++) { for(j=0;j<2;j++) { *( *(arr +i)+j) =0; } } } The problem is I want to … |
|
I'm totally new to programming and taking an intro class. When i prompt the user for a state code the program just exits, nothing in my book really goes over this and all im given is crappy youtube videos for reference. Any help is greatly appreciated. #include <stdio.h> #include <stdlib.h> … |
|
Am trying to get a function call but i cant get it to print. Please help here. This is the code: def foo(): name = input ('>>').lower().split() for item in name: if name == foo: print ('foo here!') else: bar() def bar(): name = input ('>>').lower().split() for item in name: … |
|
I'm trying to figure out a way to define my function for loaning a book within a class. This is what I have so far: class Library: # the class constructor def __init__(self, books, patrons): self.books=books self.patrons=patrons def __str__(self): s="Patron(" for patron in self.patrons: s+=str(patron) + ', ' if len(self.patron) … |
|
|
|
The title says it all but I am curious if it's acceptable or even efficient for that matter. If others were to read my code or work on a project with me is this generally accepted among others or yourself if you work on an enterprise level? Is this memory … |
|
Hi I need PHP functions for calculating the area and volume of a cylinder? I will be thankfull for your answer. <form action="functions.php" method="POST"> Enter the radius = <input type="text" name="radius"><br> Enter the height = <input type="text" name="height"><br> <input type="submit" name="submit" value="Calculate"><br> </form> <?php //calculates the volume of a cylinder … |
|
Hello all, So here is my problem: I have 2 functions that one uses the other's calculations and result: int functionA(int a, int b) { int x = a+b; return x; } int functionB(int a, int b, int c) { int xx = x(a,b); int f = xx * c; … |
|
write a function named, smallestValue, that accepts five integers and return the smallest integer accepted.( just write a function) |
|
ALTER FUNCTION [dbo].[customers_udfMin2] ( @decission tinyint ) RETURNS int AS BEGIN -- Declare the return variable here DECLARE @min int Declare @default int = 10 -- Add the T-SQL statements to compute the return value here if (@decission = 1) Begin SELECT @min = MIN(customers.cus_id) from customers End else RETURN … |
|
I m trying to convert C code to C++. Facing some difficulties help me out! //This is struct typedef struct index { int id; char word[20]; int count; }indexs; // Function prototype void fileScanner(FILE * ifp,int i); void fileRead(FILE *ofp); int findString(char s[],char u[]); int searchEntry(indexs [],char key[],int n); void … |
|
i am getting result of average in int instead of float, tell me where i have made mistake. this is the code. #include<iostream> using namespace std; void getData (int a[], int s); int numbersSum (int a[], int s); float average (int sum, int size); int main() { int size=0; int … |
|
Hi, I have been trying to create a little jquery plugin for myself so that I can reuse some helpful multiple button submit code. This plugin will allow me to have a class as a selector for every button I want to use on a webpage, a class for everything … |
|
[B][I][U]Introduction [/U][/I][/B] [COLOR="Red"]Hey everybody welcome to a tutorials on classes in PYTHON. The purpose I made this tutorial for is that when I was learning classes in python I dint found any good tutorials on Classes. Maybe I was wrong. But here's my tutorial.[/COLOR] [B][I][U]Layout[/U][/I][/B] In this tutorial i'll be … |
|
|
Hi, This question is related to the below. http://www.daniweb.com/software-development/cpp/threads/352685/error-c3861-menu-identifier-not-found I used that to solve my issue. What I would like to understand is why the function prototype is to be declared before the main function? In my textbook that I am following the function prototype wasn't there. I did as … |
function smile () { document.getElementById("textfield_width").value = width; //set the elements with id "textfield_width" some value the value of the variable width--> document.getElementById("textfield_height").value = height; // set the elements with id "textfield_height" some value the value of the variable height --> } |
|
Hi all am am trying to reduce duplicated elements in a php page. How can I create a function that will pass the different values in the array. Thanks in advance D for ($i=$index-$x+1; $i<=$index; $i++) { echo "<div class='partner_description' id='partner_description_" .$partners_id[$i]. "'>"; echo "<p>".$description_value[$i]. "</p>"; echo "<div class='url'>"; echo … |
The End.