199,114 Archived Topics
Remove Filter ![]() | |
I am very new to json and havent used much ojects in javascript. I have created a json object, and after i move through a couple of forms in my app i want to access that same object, is there a way to do it? Any help will be greatly … | |
why cant it work properly??? [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ ofstream out;//create output stream int acc_num[10]; for(int x=0;x<10;x++) acc_num[x] = rand()%10; //generate account number char acc_file[600]; for(int x=0;x<10;x++) acc_file[x] = acc_num[x] + '0'; out.open(acc_file, ios::out);//create & open output file out << "PACKAGE ID: "; … | |
I wasn't sure where to put this topic, web or software development... The questions is this: is there a way to build a website with C? (not PHP calling C application) I read the web for a couple of days now, but I can't really find any explanation how to … | |
Greetings, I need help with a Simple C program. I have to take input data such as this : Write a C program that will process a series of "words" entered by the user. A word (for the purpose of this assignment) is defined as a sequence of non-white-space characters … | |
i figure out that srand() and rand() are not quite good in creating a random number. for: [code]while(true){ int x = 0; srand((unsigned)x); int r = random(); cout<<r<<endl; }[/code] It gives back the same number. Am I doing something wrong? If not, is there anywhere that we can create our … | |
parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10. Assume that no car parks for longer … | |
Hello everyone, I'm working on a project which I should read from a text file. Text file contains two lines of sequational numbers, something like this: [TEX] 4 5 2 1 10 8 3 4 6 1 [/TEX] In the program, I need to find out where exactly a new … | |
[B]FIRST EXAMPLE--[/B]CREATE FUNCTION dbo.myFunction() RETURNS INT AS BEGIN DECLARE @myInt INT SET @myInt = 1 RETURN @myInt END select dbo.myFunction() as 'Simple Number' This Function is not returning any value,Error is coming [B]Cannot find either column "dbo" or the user-defined function or aggregate "dbo.myFunction", or the name is ambiguous.[/B] [B][COLOR="Red"] … | |
Hi, I have a problem in catching window close event in safar. If the user close the browser window without logging out, i have to invalidate the session. The problem is that , how to catch the window close event in safari? Unload cannot be used, since unload will be … | |
I am trying to write a "censor" program. here are the instructions: Write a program that reads a file of text and replaces each `target' word with its first letter followed by a string of asterisks that indicate its length. Have it read the list of target words from a … | |
EDIT: Apologies... user error strikes. Tis the way of the newb. Nothing to see here, move along. I have a dict with the following pairs: [code]object = {'v1': 1, 'e5': 6}[/code] If I set a variable using this data and print it: [code] var = object['v1'] print var [/code] I … | |
Hi all, I use the swing timer to move a dialog from one position to another. Here is the code I have use. [CODE="java"] // Set the main window display location public void setWindowLocation() { int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height; int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width; int frameHeight = this.getHeight(); int frameWidth = … | |
Wow, I am having huge problems passing values between functions and wrapping my head around pointers. For some reason when I tried to return values from functions they would not pass and when I tried putting pointers in the place, passing them kept giving me compiler errors. Now I have … | |
Hi, First off apologies if this is in the wrong forum - moderators feel free to move it if it is, or ask me to repost somewhere else. Now, my actual question is as follows. If I understand correctly by initiating a hook using SetWindowsHookEx then my hook will be … | |
I have to do an assignment for class. Here is what the assignment is: Start with the following program code. Write the function called "increment" which takes one integer parameter and returns that value plus one. [code] #include #include using namespace std; // YOUR FUNCTION GOES HERE! int main() { … | |
my out put file comes out like 0105000011500970099001120011600108001 and so on for a while. any one help me figure out wat is wrong with my code. oh yea and what is in the input file is it-is a-CaPital Mistake tO-theorize Before-one has DatA123. [CODE=cplusplus] #include <iostream> #include <iomanip> #include <fstream> … | |
I am new to programming and after a month or so of googling, I have decided to learn Python. Is this a good time to learn the language or people will soon jump ship since JAVA is now open source? By open source software, I understand that the code developed … | |
I can't figure out why it is saying (Vehicle.java:174: cannot find symbol) but there is a symbol, what is going on? [code]import java.util.Scanner; public class Vehicle{ protected int hp; protected int mileage; protected int year; public String make; public String model; Vehicle(){ hp = 0; mileage = 0; year = … | |
hello everybody i hope you r all good & fine... b4 2 weeks i had a simple quiz...but i didnt do will....tomorow i will have my medterm ...but i still can not understand the o notation very clear..... can i have help with those two quistions which i had them … | |
Hello: I'm almost killing myself to figure out the problem with the attached code. It seems that passing a text array to a function is impossible. Anyone is so kind to help me, please. | |
Hey All! I am trying to implement a clutch like system in a little project I'm creating, Basically i am extracting information from a .csv file of the location of a users gaze whilst studying a standard desktop... I have the methods, MoveClickGaze, and MoveMouse, however i want to implement … | |
Everything works, except my WritetoDisk, it gives me a NullPointerException PLEASE HELP! /* * database.java * * Created on March 28, 2008 by Karlee * * This program allows the user to add/remove students' first & last name, social security number, debt, and GPA * The user can change te … | |
Hi, I have a table with 10,000 names. I'd like to group them into groups of 3 and also display the remaining 1. Can anybody help with a suitable query please. Taffd | |
Hi guyz, I''ve done a bank's savings account program in java but can't compile, I keep on gettin the errors. 1. overrides `java.lang.Object.toString` 2. This methode must return a result of type String. both of the errors are on the method public `String toString () {...` public class SavingsAccount { … | |
[code] <%@ include file="header_style.jsp" %> <html> <head> </head> <script type="text/javascript"> MakeHoverable = function(navigationDiv){ var liEls = document.getElementById(navigationDiv).getElementsByTagName("LI"); for (var i=0; i<liEls.length; i++) { liEls[i].onmouseover = function() { this.className += " sfhover"; } liEls[i].onmouseout = function() { this.className = this.className.replace(new RegExp(" sfhover\\b"), ""); } } } function exit(){ var url = … | |
Hello all, I have been working with the playsound() function in Visual Studio 2005, and find myself coming up short in getting it to work. I have recieved many compile errors, and never successfully have gotten it to function. I am using VC++ console application, WITHOUT a precompiled header. My … | |
How do i disable the editing of row in a table? i saw this property "editing row" which by default is "-1".. i changed it to 0 and still doesn't work, I really dont know what "-1" means... how do i disable editing of row? and enabling the sorting too? | |
Hi, I am a computer engineering Student having knowledge of basics in C++. I have to make a C++ project (pharmacy and its inventory). Please guide me how to make such an online project in C++. What all tools i need to use and how much time they will take. … | |
Hi I'm new to C++ and would really appreciate if someone could help me. How do you exactly put the friend function into this program? Not that I haven't tried. I really have no idea where to put and what to change. My program is grouped into three different parts. … | |
Hi I want to automate the lrpd test which essentially involves inserting a few lines of code after every read and write inside a loop in a c program. Whats the easiest way to do it. Regards | |
I am sure this is old hat to many of you, but it is new to me. The idea is to display a floating menu when the mouse is over a non-positioned DIV item. First, I get the position of the DIV item, which works fine. Then I use style.left … | |
I have wrote this program to do i of 6 thing to 1) Initialise: Read static data from a file and a) store in appropriate data structures at run time b) sort into alphabetic order for subsequent display in the grid. 2) Menu: A menu to support the following: Have … | |
Hi, I need help with importing database into form. The problem that I am having is, when a user inputs their firstname into textbox1, it should search for their name in the database (MS Access) , if found, it should populate the information into each textbox such as lastname, address … | |
when i'm passing value through $_SESSION in frames first time i'm not getting value.when i execute second time i'm getting value.why the values are not passing first time. | |
Hello. I am new to JavaScript and need to make sure that all of the fields in this form are populated before the submission will go through, otherwise a message needs to popup saying which fields are missing information. Can someone please help. My code so far is: [code=html] <html> … | |
Hello mates! I'm having quite a bit of trouble reversing a set of integers using recursion. The user enters a positive integer. The program then takes that integer, and lists 0,1,2...Number originally entered. The function SumTo lists zero to N, however I now need to reverse that list. Like this... … | |
Hi there, I have been trying to figure out how I am getting this error: Exception in thread "main" java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:368) at java.math.BigDecimal.<init>(BigDecimal.java:647) at newtonsMethod1.sigmoidActivationFunction(newtonsMethod1.java:118) at newtonsMethod1.feedForward(newtonsMethod1.java:136) The following code : [code] for(int j =0; j< a; j++) { System.out.println("Enter into input neuron "+ j); String r = in.readLine(); … | |
My Prof gave me this to work with.... the following function accepts an integer greater than 0, as an argument and it returns the sum of the squares of the numbers 1 through N. For example: squares(3) must compute the value 1^2 + 2^2 + 3^2, that is, 14. I … | |
What I would like to do is to redirect stdout of some application, let say A to another application, let say B. All this from another external application (written in C). Any ideas? | |
I am able to make a mouse... the show function and hide functions are working.. but i am not able to implement the left_button down properly... not even the right button down function.... is it like the left button down n click r equivalent.... can neone help me out with … | |
This program I have to solve it before next week;so plezzzzz plezzzz help me And I will be very happy if I solve it :) :) ITCS102 Assignment #4(chapter 12) Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members: … | |
Hi All, I am just curious to find out...is there anyone out there who've encountered the same problem or similar...please help me... I got a working .js file, and I tried to edit the code, when I tested my edit, it doesn't work, since the system is already up and … | |
hai i am nireekshan i am using mySql database in this i am create employe table Now i am davalep One .HTML Page in this i am write the employe table fieldes-----------And write Jsp page inThis i write MYSQL CONNection code And Insert Prapared Staments Now i am run TOMCat … | |
Hi, I would really appreciate some help. I have a FileUpload control on my Asp.Net web page and want to store the file to a database as a varbinary(max) BLOB with other data via an sproc. However I am getting an error at the line [code] FileStream fs = new … | |
Ok I have two frames.. one frame calls the other frame so it's like a dialog box... the second frame pops out, and yeah i want to close this second frame with a button.. how do i do it?? I was also wondering let's just say that I have two … | |
Hey! I am trying to implement a log viewer in c#. It has to read from a static text file and make it a bit more readable. Because I am new to windows forms and c#, the listview looked like the easiest way of implementing the functionality I needed (background … | |
Hi, I am developing web page by JSP. I have JAVA classes and I need to implement functions to connect DB2 in JAVA classes. But, I could not connect to DB2.. When I searched I could not find any specific information about "JAVA DB2 connection string". Appreciates any help... | |
Hello Everyone, I am not that expert in coding, just coding on a level that helps me to implement some wireless modules /packets/ links/ etc.... I was wondering if we could implement AI search algorithms using C code, as an example, in this image: [IMG]http://planning.cs.uiuc.edu/img338.gif[/IMG] It is the Bidirectional search … | |
I have to perform an insertion sort in a linked list. Having problems. any help? | |
Hey guys, This is what im trying to achieve: Add the code that • Calculates the total amount (Price * Qty) • Then apply the following discounts: • Total is < 20 0% discount • Total in the range 20-49.99 10% discount • Total is >50 20% discount • Subtract … |
The End.