199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Thirusha

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 …

Member Avatar for Thirusha
0
103
Member Avatar for digital_ice7

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: "; …

Member Avatar for Nick Evan
0
107
Member Avatar for Spaiz

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 …

Member Avatar for jephthah
0
58
Member Avatar for TheSmokey777

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 …

Member Avatar for jephthah
0
105
Member Avatar for Suraine

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 …

Member Avatar for vmanes
0
84
Member Avatar for fredmac

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 …

Member Avatar for jephthah
0
349
Member Avatar for shadow_shooter

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 …

Member Avatar for shadow_shooter
0
119
Member Avatar for Yogesh Sharma

[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"] …

Member Avatar for Yogesh Sharma
0
144
Member Avatar for Nithu25

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 …

Member Avatar for Nithu25
0
69
Member Avatar for veronicak5678

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 …

Member Avatar for veronicak5678
0
185
Member Avatar for gelcode

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 …

Member Avatar for vegaseat
0
90
Member Avatar for eranga262154

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 = …

Member Avatar for eranga262154
0
162
Member Avatar for Yellowdog428

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 …

Member Avatar for Yellowdog428
0
98
Member Avatar for inamabilis

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 …

Member Avatar for inamabilis
0
79
Member Avatar for WonderWomen204

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() { …

Member Avatar for Ancient Dragon
0
122
Member Avatar for infernojmd

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> …

Member Avatar for Ancient Dragon
0
123
Member Avatar for fongoos

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 …

Member Avatar for linux
0
823
Member Avatar for Dio1080

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 = …

Member Avatar for Dio1080
0
170
Member Avatar for fatima_almahdi

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 …

Member Avatar for sarehu
0
89
Member Avatar for cquestion

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.

Member Avatar for Ancient Dragon
0
93
Member Avatar for starkman

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 …

Member Avatar for starkman
0
103
Member Avatar for karlee

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 …

Member Avatar for Ezzaral
0
172
Member Avatar for Taffd

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

Member Avatar for Taffd
0
69
Member Avatar for Dr Windows (XP)

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 { …

Member Avatar for Ezzaral
0
92
Member Avatar for preetisiyer

[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 = …

Member Avatar for phper
0
158
Member Avatar for DJ-KhaosTheory

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 …

Member Avatar for DJ-KhaosTheory
0
4K
Member Avatar for it2051229

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?

Member Avatar for majestic0110
0
95
Member Avatar for mostafa mahmoud

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. …

Member Avatar for Narue
0
103
Member Avatar for jasonlys

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. …

Member Avatar for Narue
0
87
Member Avatar for anshumm

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

Member Avatar for anshumm
0
81
Member Avatar for statmatics

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 …

Member Avatar for HenryGR
0
160
Member Avatar for Taker

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 …

Member Avatar for Taker
0
186
Member Avatar for Time Indicator

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 …

Member Avatar for Time Indicator
0
112
Member Avatar for lydia21

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.

Member Avatar for phper
0
77
Member Avatar for Gia

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> …

Member Avatar for ShawnCplus
0
149
Member Avatar for knewc

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... …

Member Avatar for ivailosp
0
249
Member Avatar for debee

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(); …

Member Avatar for debee
0
292
Member Avatar for knewc

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 …

Member Avatar for ivailosp
0
94
Member Avatar for edek

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?

Member Avatar for Salem
0
86
Member Avatar for mukulbudania

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 …

Member Avatar for Black Magic
0
114
Member Avatar for CE Student

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: …

Member Avatar for ivailosp
0
219
Member Avatar for maydhyam

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 …

Member Avatar for ~s.o.s~
0
115
Member Avatar for nireekshan

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 …

Member Avatar for mr4top
0
92
Member Avatar for Elmo_loves_you

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 …

Member Avatar for Ramy Mahrous
0
396
Member Avatar for it2051229

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 …

Member Avatar for Ezzaral
0
302
Member Avatar for jonathan.byrne

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 …

Member Avatar for Ramy Mahrous
0
105
Member Avatar for sivaslieko++

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...

Member Avatar for jwenting
0
139
Member Avatar for El Duke

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 …

Member Avatar for El Duke
0
99
Member Avatar for Sirjames_da1st
Member Avatar for Sirjames_da1st
0
262
Member Avatar for ferrier18

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 …

Member Avatar for Jx_Man
0
131

The End.