199,114 Archived Topics
Remove Filter ![]() | |
Hi I have a web page where i need to use some javascript. If i write all the javascripts and jQuery javascripts in the aspx page it works perfect. But when i write all the javascripts in separate file called scripts.js and include scripts.js in the aspx page it doesn't … | |
I have problems running a compiled program with win32print and win32ui (to print an image) on a different computer. what shall i do? | |
ok I am trying to convert find cost per sq yd. in $$.$$ format. I have all the coding correct except it has more than two decimal places. Here is my code: [CODE]//delcare const const int number = 9; //declare variable double length; double width; double area; double cost; double … | |
Hi Friends .. need a small help can anyone help me in showing how to call a stored procedure which returns a recordset .. yea i need to pass one parameter also for getting that required data .. thanks in advance.. Sameer | |
I need some guidance formulating a Do, For, While output using a Fibonacci sequence. After searching the foums I only saw posts that had just the sequence of numbers outputed like so: 01123453 after a set number was preset. I need the output to display like so: 0 +1 = … | |
Hi.......... I want to clear the image inside the picturebox on button click...... Can anyone tell me how can i do this.............?:) | |
hello sir..... suppose i want to display list of item name at specific portion on webpage(.aspx page) but coding portion is done in aspx.cs file with use of for loop i get Item name into variable from database. now i want to use that varibale to dispaly Item name at … | |
I need help with the errors in my code. Here is my pseudocode along with my program code following: [B][U]This is my pseudocode:[/U][/B] Start Declare Variable int length int width int area Print (“Enter length of room in ft.: “), Input length Print (“Enter width of room in ft.: ”), … | |
hi doing i try to import data from sql server to text file bust i have some probleam like:--- 2/15/2010 12:00:00 AM ===================================================== POSITION GAMENO START ENDDAY AMOUNT TOTALSALE ===================================================== [code=text] #1 223 92 92 $1 $0 #1 121 92 92 $1 $0 #2 222 115 115 $1 $0 #2 … | |
Hi I'm new to c++ programming. This is my first ever program, it calculates the average of numbers that the user input. The user can input up until 10 numbers. I get a segmentation fault for some reason. Any ideas? [CODE]#include<iostream> using namespace std; int main() { int numbers[10]; // … | |
is there anything that can replace a butoon in php which acts like a button? because we all know that buttons in php act independently, meaning once button a is clicked, the functions of button b will be disregarded already right? because i have several buttons in the page and … | |
I'm working on my c++ assignment (bubble sort), but i 'm stuck on my code. Is there anybody know how to print out the array contents after [B][U]each pass [/U][/B]of the sort? Should I use a for loop or a function call to print out?? thanks int first_array[8] = {13, … | |
I do not have a clue here. I am floundering along but not getting anywhere. Any suggestions would be greatly appreciated. Thank you. /*This is a program that processes a loan for a car using appropriately named variables. It will use those variables in the input, calculation, and output of … | |
I have gotten my program to the point that it allows me to enter the data I want to enter. However, I do not know how to get the program to loop back correctly and ask for salesperson number and stop the loop when I enter -1. Help![CODE] #include <stdio.h> … | |
deleting string... example: deleting... enter string: the quick brown fox and the lazy dog. enter string to delete: the([I]the first one[/I]) new string: quick brown fox and the lazy dog. | |
Hi, I am working on a project where i need to store data in App_Data, any one can help me to tell how can i do it. | |
Hello all, I have a program that creates an array of structs. It is consistently exhibiting 1 of 2 problems and I can't figure out exactly what is wrong, but the problems seem related to each other. Problem 1: For some reason the category member of the mediaItem struct fails … | |
Dear Friends, I am new to Visual basic 2005 as I have used VB6 till now. I wish to do a database application using Microsoft Access 2003 and Visual basic 2005. I am very happy, if any one could give the step by step instruction to connect Access, insert, delete, … | |
Hello i am a beginner in java and this is my first project my project is about cinema which have 10 theaters and i need to provide set of films to each theater i try to do this but i am a bit confused and lost [CODE]import java.util.Arrays; import java.util.List; … | |
Hello all! I am making a site for a club on campus and we need to show the presidents quotes on the site. He has some lengthy ones so I want to save space (can't tell him to KISS) so I'm using a little code I learned to do so. … | |
the only problem i have now is that when i enter the symbols to draw the border and fill for the rectangle, this is what is drawn: lets says witdh 10 and length 5, the border is % and the fill is @. %%%%%%%%%% %% %% %% %%%%%%%%%% The filling … | |
As you can see I am new here. I found this site from googling a question about a getChoice() function , and I was able to learn how to implement the function in my project to fit my needs from the post. ([url]http://www.daniweb.com/forums/thread162456.html[/url]). Well anyways, I have more issues that … | |
Hello, I am a new programmer. I am trying to copy the elements of this 20x3 array into a 1x60 or 60x1 array an[60]=A[20][3] one of my attempts is:[code] for (i=0;i<20;i++) { for(j=0;j<3;j++){ at1[i]=A[i][j]; at2[i]=A[i][j]; at3[i]=A[i][j];} } an[60]={at1,at2,at3};[/code] | |
Hi, Im trying 2 write the contents of a input file to an output file in reverse order using file I/O in C. Is there a more efficient way 2 do it? [CODE] int main() { FILE *fp1,*fp2; char ch,arr[100]; int i=0; if( (fp1 = fopen("input.txt","r")) == NULL ) { … | |
my compiler keeps saying that i have an operator error at lines 22 and 50. what did i do wrong??? plz help [CODE]#include <iostream> using namespace std; class Rectangle { public: Rectangle()/*rectangle constructor defaults the values for length, width, area, and perimeter to 1 and initializes five rectangle objects to … | |
Hello, I am looking for a few things... 1. How to put an upload field into a web page to that I can upload files to a directory on server. 2. I want to be able to choose different directories to upload it to (clients) 3. I would like to … | |
Hello, today I got a new issue on the program im developing so.. the issue is that I want to change a file in this path [B]C:\Users\[USERNAME]\AppData\Roaming\[PROGRAM NAME].[/B] But the thing is when a user's computer has a different language then english this path changes to something like this [B]C:\[Users … | |
I just started a C++ class at a local tech school. It is a self taught course, and I have just learned how much "self taught" applies to this course. The instructors have no experience in programming and can not answer the simplist of questions!! The book I was asked … | |
I have this one specific pas file that i try to open, its just plain text in it, i can view it elsewhere (notepad, wordpad etc!) BUT [B]When i open it in d2007, she displays it as hex[/B] [CODE]756E697420494658 5F5574696C733B0D 0A0D0A696E746572 666163650D0A0D0A 7573657320537973 5574696C732C2043 6C61737365732C20 53796E634F626A73[/CODE] WTF!!! Any Ideas ?? | |
I am trying to figure out the best way to configure my search bar. It will be searching my website for posts members have posted. I tried this but this does not work. Here is the PHP file that I use as the form action. Do you know how or … | |
I work out a small project. I need to Get list of folders in each drive. Up to now I can get the drives but I have no Idea on how windows treats Drives. Does it treat them as super Directories (Super folders) that contain many sub-folders? If not How … | |
What are your thought on this? There are many framework there and my thought was CakePHP is rather popular. I'm I wrong? What do you think? | |
Hi im writing a program and one of the things i need it to do is get today's date and display it at various times. creating the date using 'datetime' i can do the problem is passing the created date strings to different classes i currently have 2 classes one … | |
First of all im new here so Hi all.. im also new to c/c++ have been a java php and actionscript developer for some time now and finally have time to learn something new so im gonna go for c++ im just tryna get familiar with everything but i ran … | |
I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to … | |
I need to replicate the encryption shown below: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end [/code] I am trying something like this to no avail: [code] $salt = 'edc93eaf81aa1d64368c35213f192bb4ea81d20d'; $password = $_POST['input']; $password = sha1($salt.$password); echo "password sha1 value: " . $password; [/code] | |
Hello, I am attempting to rewrite a program in c. Here is what I have so far. Thanks in advance for assistance. [CODE]#include <stdio.h> void sales[ salesPerson ][ product ] += value; int main() { const int PEOPLE = 5, PRODUCTS = 6; double sales[ PEOPLE ][ PRODUCTS ] = … | |
Hello , I a creating program in witch objects are stored in the namespace var in var.h. How do I make the var namespace available to more than one file without having redefinition errors ? [CODE] ### var.h ### namespace var { ... } ### main.cpp ### #include "var.h" //multiple … | |
I am unable to print out the error message when there is no input. I've tried different methods for it, but I can't get it to work. What am I missing? print should be: p2 invalid input but I get: p2 segmentation fault when I do this with an int … | |
i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float … | |
Ok well I'm making a console msn client. [CODE]#pragma comment(lib, "wsock32.lib ") #include <windows.h> #include <iostream> #include <stdio.h> #include <string.h> int main(){ char buf[12]; WSAData wsdata; WORD wsver=MAKEWORD(2, 0); int nret=WSAStartup(wsver, &wsdata); if(nret != 0){ std::cout<<"Startup failed, error code: "<<WSAGetLastError(); WSACleanup(); return -1; } std::cout<<"Init success\n"; SOCKET kSock=socket(AF_INET, SOCK_STREAM, 0); … | |
you can see the page under development at [url]http://job1data.com:8098/admin.aspx[/url] at first i had no validationGroup and the validations for add row fields would always fire, so that was no good. so i'm trying to put them in a validation group. you can see from the sample code i put the … | |
I'm trying to write code for a very basic version of the game 24. This code will receive either two, three, or four integers and determine if there is any way that these numbers can add, subtract, multiply or divide to the number 24. Locations of parenthesis can change as … | |
Hello, Lets assume we have the amount 110,11 euro. The used money bills are 500, 200, 100, 50, 20 10, 5, 2 , 1, 0.50, 0.20, 0.10, 0.05, 0.01. So this amount would give on the console screen 1 x 100 1 x 10 1 x 0.10 1 x 0.01 … | |
I have been trying to get the day of the year into an int(0-365). I have tried the time.h library and did int tm_yday but it returned an incorrect number. I am using Linux. G++(gcc) compiler. Thanks for the help. | |
It wont compile! I know something is probably wrong with my if condition but im unsure of what. [CODE]if (weight > 200) shipping_cost = 49.95; else if (weight >= 100 & < 200) shipping_cost = 39.95; else if (weight >= 50 & < 100) shipping_cost = 24.95; else if (weight … | |
Hello. I am building a XML reader class DOM. Does anyone have a link that has some code where the text from a JComboBox.selectedItem()("text") for example or any text is used to find a Node in a the DOM document and then work with that nodes siblings? | |
i have a small problem deleting from the data base that i have created using a form. this is the error that i am getting on the webpage Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right … | |
![]() | Hey all, I'm writing a program in C++ for a contest. The code executes no problem on my computer at school that I'm writing it on. I get all the correct answers. When I upload it however, it keeps on saying "runtime error (SIGSEGV)" Please Help!! here's the link to … |
Hello there, I'm trying to understand this source code to block the packet send to the application I'm using right now. Basicly this source code is for making application that will crash the application that Im using atm. I have no basic C++ knowledge. I hope someone could explain this … |
The End.