199,124 Archived Topics
Remove Filter ![]() | |
Hello, I'm stuck with this code and I can't figure out how to make it work. I need to get the Sum of Odd numbers from an array. For some reason it returns 0. I'm new to programming, so any help would be appreciated, thanks. Here it is: [CODE]#include <iostream> … | |
HI, I am quite new in this field.I am developing one C# web application .can you help me with following stuff. I want to Display images from a folder which contains nearly 1000 images. That image files in folder(means image itself) has names like 15_1,15_2,15_5,15_40,18_1,18_3... where first field is id … | |
hi! I am quite puzzled here. I have a program inwhich when the user clicks on the command button, a random line should appear but only once. I am storing each line with different variables. Right now i have the random line coming up but it is repeating itself. For … | |
This is the code i have for my stack program: public class MyStack { private int top; private int[] store; Stack(int capacity) { if (capacity <= 0) throw new IllegalArgumentException("Stack's capacity must be positive"); store = new int[capacity]; top = -1; } void push(int value) { if (top == store.length) … | |
How would i be able to reference to a file in my resources.. lets say i got a default template.dotx (word 07 template) in my resource folder... how would i be able to point to it when i publish my app? thanx Phoenix911 | |
Hi everyone, i'm new in c#. Is it possible to express the UI form as a 2D matrix? how can i do it? i have some object which must make moves from commands that user gives. For ex.: commands "d5; r4; u1;" mean: 5 steps down, 4 steps right and … | |
dear all, i need help about asp.net. i'm making application with login form from visual studio and using loginname in every pages, my questions is: how to get username online into database when user insert/update? because i wont to know 'who create this data' best regards, martin | |
Dear friends I have some picture stored to SQL Table as Image Field. but I Don't know what is the format of this pictures they may be JPG or BMP format. for retrieving this images I mast know what is the format of each stored Picture. is any method to … | |
i need to convert this java code to java applet code here in my java code: import java.io.*; import java.util.*; public class fyp { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); static ArrayList<String> seeding = new ArrayList<String>(); static … | |
If I run my program. a GUI shows. clicking the combox. calls a series of classes that produce what text needs to be in the textfields so one of the classes calls fillSetters which is in a class that extends the GUI so "this" should be an instance of the … | |
i am using oracle 8i.i want write a query to display who is the person & his tuple remitted or maximum amount used.how can i display it | |
Hello, I was trying to implement data structures using file operations. I am using a data structure of two integers, one being the index number and other being the value. My actual aim is to recreate the file containing the data using a log. But, the program isn't running as … | |
[CODE]#include <iostream> #include <iomanip> #include <string> using namespace std; int main() { double V,I,pf,Ib; unsigned short int choice; int In = 0; cout<<"Please choose power supply type\n"; cin>>choice; switch(choice) { case 1:cout<<"You have chosen a single phase power supply\n"; break; case 2:cout<<"You have chosen a three phase power supply\n"; break; … | |
I am new to python and I am trying to write a simple program that would cd from my home directory to another directory, run an ls command and then return to my home directory. The OS is Redhead linux 5.4. I am using python 2.4.3. I tried this first: … | |
In my code I want to upload a file to my project(named Musiker), under the folder music. Here is what I did so far, it's not working. 'to get the path where to upload it, I did the following Dim strpath As String = Application.StartupPath Dim num As Integer = … | |
hi! Please help me in mailing the form data using tables. below is my code $message = " $todayis [EST] \n Subject: $attn \n Message: $notes \n From: $visitor \n Designation : $designation \n Employee ID: $empid \n Department : $department \n Head Quarters: $hd \n Tour Location: $tl \n … | |
I have an animated sprite animal character that runs across the screen using the arrow keys. It is a series of 7 individual frames. The first frame is its "sitting" position, which is as of now only called when the program starts. I want the animal to return to it's … | |
I want code to copy word text content into texbox using c# code in web application right now i have code for windows application. [code] using Microsoft.Office.Interop.Word; private void readFileContent(string path) { Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass(); object file = path; object nullobj = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open( ref … | |
I am creating an application that has a thread which constantly moves the contents of one folder to another (Using Visual Studio, Compact Framework) I start the thread like this [CODE]public static class Program { /// <summary> /// The main entry point for the application. /// </summary> /// [MTAThread] public … | |
How do i compare two linkedLists so that the onutcome is a sorted linked list from least to greates. Heres my code so far. list1.txt 1 2 3 7 9 10 13 list2.txt 4 5 6 8 11 12 14 how do i compare the two and make it into … | |
How can i retrieve the information from Ms Access and put it into a VB.net 2D Array? Urgently need help in this | |
Hello again. I'm looking for a way of displaying the results of a search facility on a site im creating. The site is based on an animal sanctury and the database holds two key tables for searching 'blog' and 'animals' respectivly. Now, how would i go about displaying the results … | |
Hi, I am very new to perl pgming. I have a weblog which has a standard format as the below example IP | remoteUser | authUser | Date/Time | Request | Status | Bytes For example, 74.6.72.229 - - [27/Jan/2007:00:00:36 -0500] "GET /~jking/ralph.html HTTP/1.0" 404 215 the fields are seperated … | |
I am trying to find the yield of a bond given the bond price, coupon, and semiannual three yr bond using newtons method. The value for B in the output should about equal 101. I have checked everywhere for errors but cant find any. Any ideas? And yes I am … | |
I need to sort the students in array in ascending order of first name. I tried to do arraylist but it didn't work. Can someone please help me with this? Student.java [code] public class Student { private String firstName; private String lastName; private String studentNumber; Student(String fName,String lName,String sNumber) { … | |
hi need codes for displaying a negative value eg ($-1000) in the balance txt when a person pays more cash here are my codes Private Sub CmdCalc_Click() 'to declare variables Dim Nam As String Dim Unit As String Dim Amt As Currency Dim Bal As Currency Dim Tot As Currency … | |
I'm just learning C# and I'm using MS Visual Studio for that and a website with tutorial stuff. I've written my first little app which just does a simple calculation on some figures input by the user and outputs the result. It is a console app at present. Now I … | |
Hi, i know its probably the easiest thing ever, but im a noobie in c, and in need of some help with fmax function, i just dont really get it. im trying to compare 3 floats heres what im trying float fmaxf (float int1, float int2, float int3) im not … | |
Hello All, I am presently working on a developed website and want to add some functionality to it. I have a file called AssetPreview.ascx and the code behind the file as AssetPreview.ascx.cs Now, i added something to the ascx file like, [code] <a id="test" onclick = "temp()" runat="server" >Click here … | |
Provided freeware physics engines like Havok and a few others made by professionals in the field should some one take the headache of making one's own amateur physics engine. Aside from this if some one can manage to give me a reference of a book or a website which can … | |
Hi all, how can I disable internet in windows/Linux machine. I want to disable completely and enable it at will using C++ Thanks | |
I have been working on a project in Intel assembly until I hit a bump and I can't seem to get myself out of a hole. I realize that this is homework, and I don't expect anyone to do my work for me. However, a little help would definitely be … | |
Hello, i am very interested in the c++ language, i decided to make my own small program and test how arrays work with classes with private variables and private operations and then calling them any way i'd like from the main function. a very big reason about this is probably … | |
Ok what im tryin to do is open a file by the name a user request after that i ask the user and id number to look for in the file if its found i want to display it along with the name after it but i cant figure out … | |
I have downloaded a library from this site that deals with Matrix and Complex........Does it do this correctly??? [URL="http://www.zenautics.com/matrixdoc/index.html"]http://www.zenautics.com/matrixdoc/index.html[/URL] if so I want to use this library to get the inverse matrix of of a matrix consists of a complex elements how can I do this??? If it is a … | |
I have a web page that contains a bunch of advertisements. What I need to do it randomly shuffle these images each time the page is refreshed. I cannot have any repeating ads. Here is the code I have now.... it repeats images. [code] <html> <head> <script type="text/javascript"> function random() … | |
Hello, I got an car inventory program that stores the names of cars etc. I thin a class arraylist would work better. Like an array that can "grow" and "shrink". But I do not know how to convert the code from array to arraylist. It should still keep the member … | |
I am trying to count the characters in a linked list. I am receiving a compiler error when this function is tested... **invalid types `char[int]' for array subscript ** [CODE]int slist::count_c(char c) const { slistelem* temp = h; int count = 0; for (int i = 0; i != '\0'; … | |
hi i m working on Student Database Management system, I have used button s for insertion, deletion, and update. Insert and delete button is working but update's click gives syntax error: Pls help as soon as possible: [code] Try Dim com As New OleDbCommand com.Connection = con com.CommandText = "update … | |
Hi everyone, I'm creating a database installer where I have some code to create database, tables, stored procedures, etc. I don't have problems when creating the database, tables and inserting required data. My problem is when my code gets to the stored procedures section. Here is what I do: I … | |
Hello everybody... I did a project in c++ about factorials. Now i will do it on VB6. But my problem is somehow my output is always 1. So i think my funktion i made take no action at all. Would be greate if someone can spott my error...Thank you [code] … | |
I am working on an assignment which is a container class that uses an array to hold strings. We must use dynamic memory, and can only use cstring class functions, no objects can be strings. So we must use char arrays. Anyways my problem is that whenever i run my … | |
I accidentally added the following line to my SQL database twice: [CODE]INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_birthdays_ahead', '7');[/CODE] How do I remove one of them? ![]() | |
So, I'm still a beginner at python and OOP in general. But I had a question about the order of operations. Basically what I have is a module that contains a class that will reset all self variables for the object and give the object a card. The script I'm … | |
i need the help of a [B]turbo C master[/B]!!!!...one of my final exam problem in my subject has this problem: [B]The Department of mathematics has asked you to develop a program to help elementary students check their addition and subtraction computations. The program to be developed will ask the user … | |
Greetings. I am using this code for a photo gallery. <script language="JavaScript"> function LoadGallery(pictureName,imageFile,titleCaption,captionText) { if (document.all) { document.getElementById(pictureName).style.filter="blendTrans(duration=1)"; document.getElementById(pictureName).filters.blendTrans.Apply(); } document.getElementById(pictureName).src = imageFile; if (document.all) { document.getElementById(pictureName).filters.blendTrans.Play(); } document.getElementById(titleCaption).innerHTML=captionText; } </script> With an onclick statement like this: <a href="#_self" onclick="LoadGallery('Gallery', 'image.jpg', 'Caption', 'captiontext')">Link</a> It totally works but I would … | |
Is there a way to setup a jFormatted Field and retrieve a int value using getValue()... I am abit lost. [CODE] private jFormattedField CsNumber = new JFormattedField(); [/CODE] Also is there a way of restricting the value being input to only being a number and not negative? | |
so im working on a mid-term exam average program of a class of 10 students. would my code start as follows?[CODE]void getnames(char stuname[10][20]) { int ctr; for(ctr1=0;ctr1<10;ctr1++) { printf("Enter Name %d ", ctr); scanf("%s",stuname[ctr]); } void printnames(char stuname[10][20]) { int ctr2; for(ctr2=0;ctr2<10;ctr2++) { printf("%s\n", stuname[ctr2]); } [/CODE] and have getNAME … | |
I am attempting to create a windows application that listens to port 80. I started with a socket, then tried a TCP, and eventually an HTTP, Listener - nothing works. I keep getting an access denied error. As it turns out, the geniuses at Microsoft flow all port 80 traffic … | |
My page is not displaying correctly in Internet Explorer. Its displays properly in all other browsers. The issue: Internet Explorer When the page is loaded-- Internet Explorer places DIV tags between the the <LI> elements on my page and in other areas of the controls which have been dynamically added … |
The End.