199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TobbeK

This has probably a simple solution, but i cannot find any obvious wrong. This is a simple button event and the supposed output in Label5 should be: One Two Three. Now, I can only get "Three", the last value in the array. [code] protected void Button4_Click(object sender, EventArgs e) { …

Member Avatar for TobbeK
0
136
Member Avatar for s_ghonem

hello, how to prevent a dotnet application from having two running instances as at the same time

Member Avatar for Clawsy
0
77
Member Avatar for manpreet tiwana

I guys i have questions to answer : if anybody knows the answer please reply the questions : 1. What is objector programming? explain why an object oriented program is more rebust than structured programming?\ 2 Write a recoursive program in C++ to compute factorial of a given integer n …

Member Avatar for Rashakil Fol
0
84
Member Avatar for bemo55

I am doing an extra assignment for my CSCI class. The assignment asks to create a program that calculates hours for customers in a parking garage. i wrote my program out and now i am trying to break it down into custom functions. i was doing fine until i got …

Member Avatar for death_oclock
0
98
Member Avatar for thejadoogar

[COLOR=Blue]Hi! i'm a new member here..... want to know if there is any help available regarding SAS software ............ any notes or link that can provide sample questions to prepare for certification ..... take care byezZz[/COLOR]

Member Avatar for Rashakil Fol
0
387
Member Avatar for atman

[CODE] #include<stdio.h> #define COUNT 5 void enter(int *p_arr); void report(int arr[], int count); int main() { int arr[5]; int i; for(i=0; i < COUNT; i++) { enter(&arr[i]); } report(arr, COUNT); } void enter(int *p_arr) { int i; int insert; printf("\nplease enter the number:"); scanf("%d", &insert); p_arr[i]=insert; } void report(int arr[], …

Member Avatar for atman
0
122
Member Avatar for mohan_198505

hi, i m mohan i hv problem related to file handling. i hv two txt files emp.txt and dpt.txt.these are following emp.txt 1111 Tata 1000 12354663 1112 Suresh 1001 -46436433 1113 Hari 1002 46546735 1114 Ramaji 1000 -54651324 where 1111 is a empId,Tata is EmpName,1000 is DeptCode and 12354663 is …

Member Avatar for death_oclock
0
92
Member Avatar for Mighty

I am currently taking a C++ program at my college and it all just seems foreign to me. I am having some trouble with this problem.. The Yukon Widget Company manufactures widgets that weigh 9.2 pounds each. Write a program that calculates how many widgets are stacked on a pallet, …

Member Avatar for Mighty
0
352
Member Avatar for rhoit

I was creating some sort of text editing program. Whose display and file writing are going parallely. How to clear the character in the file when i dont back space. I tried clear character by replacing with Space(32), NULL(0), but it didn't workout fine.. just replacing the character...how do delete …

Member Avatar for Murtan
0
137
Member Avatar for leeba

I have two strings s1 and s2. I have to check what is the largest occurence of letters in s2 that are in s1. For example: s1="xyz" s2="abxyryxzycx" it would then return 4 since "yxzy" is the largest substring with all the letters in s1. It has to be recursive. …

Member Avatar for quuba
0
97
Member Avatar for themailsian

I have make a form in ASP page wich contain a dropdown menue containing record from the database. These records are related with an other table. I want when I select any record from the drop down menue its concerned record should display in next text box with in the …

Member Avatar for enoch365
0
151
Member Avatar for Phil++

Hey what I am trying to do is convert the total amount into Euros, what would the calculation be please? The user enters the current rate of Euro Thank you :)

Member Avatar for Alibeg
0
93
Member Avatar for Swapna Gouri

Hi All I've created a web page where I'm trying to pull data from the database. My requirement is to populate a combo box from the database automatically, i.e. as and when the db updates, the combo box needs to get updated. I have heard that it's possible with Ajax. …

Member Avatar for ~s.o.s~
0
101
Member Avatar for kpillsb39

I have a program for advanced VB in which we are to create a Struct of account records that are in a Text file and close the text file after opening and read the file in to the form window from the Struct and be able to edit the data …

Member Avatar for edgar5
0
157
Member Avatar for Ravigandha

Hello Guys, My problem is when i am attaching files and sending in mail through PHP code everything is working fine and i am getting attached files to email. But if the destination address is of yahoo or hotmail then they the attached file is not displaying. It is displaying …

Member Avatar for lordspace
0
159
Member Avatar for scru

Is there a way to add a directory to the locations that python look at when you call __import__ ? I need to import some scripts from a user folder at runtime, and since __import__ doesn't accept absolute file names, I'd like to try this. Copying the script to the …

Member Avatar for scru
0
143
Member Avatar for barbz
Member Avatar for closetosane

Hello, I am sending a string created in vbScript via CDO. My scripting is working but the whole string is not showing up in the receiving email. My code was on the bulky side with bordercolor and bgcolor in the tables cells, removing what was not needed for html in …

Member Avatar for closetosane
0
924
Member Avatar for barbz

[CODE] import java.io.*; import java.util.*; public class Palindrome { public static void main(String[] args) throws IOException { char letter; String reversed,NEW; Stack S = new Stack(); BufferedReader stndin=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a word: "); String word=stndin.readLine(); for(int i=0; i<word.length(); i++){ letter = word.charAt(i); //this line should cut the 1st letter …

Member Avatar for barbz
0
177
Member Avatar for revenge2

Hey guys, well here are some more of my questions (sorry!! i know, im a pain..) Ive finished "most" of everything in this [URL="http://www.swaroopch.com/notes/Python_en:Table_of_Contents"]tutorial[/URL]. I missed some out because they were too much for me to understand at the time. will go back to them and come back with more …

Member Avatar for Ene Uran
0
125
Member Avatar for MDGM

Hi, Im having a wierd problem with my mysql query: I have entries in my database with a rating (out of 10) and a timestamp, and I want to pull out the highest rated entry from the past 30 days. These are the entries I have: [CODE]Primary key ----------------- Rating …

Member Avatar for MDGM
0
111
Member Avatar for EAnder

I know the codes not the best well written but the only problem I'm having(besides the interpreting of the macro commands, the one here is just a base for me to work on) is how the UpdateLabels.start() method returns: [code]Traceback (most recent call last): File "C:\Users\Erik\Desktop\Stuff from last Night\MouseMacro.py", line …

Member Avatar for Ene Uran
0
118
Member Avatar for tuse

Hi! I am trying to initiate a client-server talk but for some reason it is not working. The server starts running, but when I start the client nothing happens. Please point out the mistake in my code- Server- [code="java"] import java.io.*; import java.net.*; public class MyServer { public static void …

Member Avatar for tuse
0
115
Member Avatar for revenge2

hello again, Ive got the basics under my belt and ready to start making things happen:D. I want to experiment with different things so could you show me to some good tutorials on some of the following things. 1. sending and receive messages through the internet-what library/Mod should i use? …

Member Avatar for Ene Uran
0
106
Member Avatar for blackrobe

I have a Set that contains different random lines from a text file, now I'm new to Java so I don't know much about the methods available but I have tried using the java.util.Set.toArray() method but it returns an Object[] than can not be sorted. Is there anyway to do …

Member Avatar for quuba
0
151
Member Avatar for 3pid

hey! I`m a beginner in Java and I want to write a program that use try and catch method to send a msg if the average it calculate is not in [0-20] I have already write this code but it always print 0! what is wrong with my code?!!! [ICODE]using …

Member Avatar for 3pid
0
100
Member Avatar for littleson

Hi, i am new to programming.. i have a code like [CODE]#include<iostream.h> using namespace std; int main() { int x,y; int *p1,*p2; p1=&x; p2=&y; *p1=10; *p2=*p1; p1=p2; *p1=20; cout<< x << y; return 0; } [/CODE] I do not understand it.. output is x =10 and y=20.. But both x …

Member Avatar for Narue
0
92
Member Avatar for clutchkiller

I want to make an if statment that checks for the size of a text file. What is the syntax to declare that? if( txtfile.txt = 5kb || txtfile.txt = 10kb ) { blah blah } ????? thanks

Member Avatar for William Hemsworth
0
91
Member Avatar for serdas

this is code diplays everything in one page how can i make this show more then one page? thak you [code]// Addon Specific Function function viewallusers_display_addon_link() { // Show the link for the menu $display = '<a href="index.php?action=addon_viewallusers_showpage1">View All Agents</a>'; return $display; } function viewallusers_display_addon_page() { // display all the …

Member Avatar for serdas
0
86
Member Avatar for dron

Hello, What SQL query should I use, in order to copy records from one table to another, both of the same schemas, in such way that only records that don’t already exist in the destination table will be copied? For example: Table A – Destination table ****** Col1 Col2 Col3 …

Member Avatar for johnny.g
0
300
Member Avatar for eiluj

were using a VB in grading system project we have'nt a problem in searching , adding and also in save! we link it on Excel for data base the three problem stated above is our problem cause we can't solve it! i know it simple for some one but for …

Member Avatar for ithelp
0
81
Member Avatar for venomxxl

Hello, I had no idea which title I should have chosen. Anyway, I'll try to explain my problem. What I'm trying to do is to prevent some code using functions in a header. This problem causes invulnerabilities in my application. I made a test program to show what exactly I'm …

Member Avatar for venomxxl
0
141
Member Avatar for FBIRyan

[CODE]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include <iostream> using namespace std; int Factorial(int iNum); int main() { int aNum; cout<<"Enter a number: "; cin>>aNum; cout<<Factorial(aNum)<<endl; system("PAUSE"); return 0; } int Factorial(int iNum) { cout<<"We are at number: "<<iNum<<endl; if (iNum <= 1) { cout<<"We are at number: "; return 0; } else { return Factorial(iNum …

Member Avatar for FBIRyan
0
123
Member Avatar for ramyking

hey i guys iam trying to make a postfix calculator it works very well with the number but when u tried to add parantheses the code doesnt seem to work well [code] /*Programmer : Ramy Selim * E-mail:themurder2005@hotmail.com * postfix calculator */ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; …

Member Avatar for ddanbe
0
1K
Member Avatar for neoangin

Hey! Worked on one problem couple days ago and then found code on internet that did almost the same: [CODE] map<string,int> stringCounts; string str; while( cin >> str ) stringCounts[str]++; map<string,int>::iterator iter; for( iter = stringCounts.begin(); iter != stringCounts.end(); iter++ ) { cout << "word: " << iter->first << ", …

Member Avatar for neoangin
0
153
Member Avatar for serdas

hi, i have a program that i am using from an open source, it does not have a privete messaging system like this web site has, is there any way i can find some kind of a code to cretae one for the site, is something like that possible, i …

Member Avatar for lordspace
0
176
Member Avatar for MLA

I'm a noob and am struggling with what should be some fairly straightforward php and mysql coding. I have a page that I am building and am able to get the following code to work: [code=php]<?php include 'includes/config.php'; include 'includes/opendb.php'; ?> <div align="center"><h1> <?php $id=$_GET['player_id']; ?> <? $query= "SELECT p.player_id …

Member Avatar for MLA
0
80
Member Avatar for mohan_198505

hi i m mohan sahu.i m using turbo c( borland compiler) and working with windows xp. i have one header file say myheader.h having only declarations of all functions and one myfunc.c file having only definitions of all function without main and i m including header file with #include "myheader.h" …

Member Avatar for ajay.krish123
0
164
Member Avatar for Alishaikh

I made this applet for my APCOMPSCIA class, it due tomorrow but I cant get it working. I need to show the animation of a sort, but it just does sort once that it, please help. I will be very great full. [CODE]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.util.Random; …

Member Avatar for stephen84s
0
90
Member Avatar for mahdiahmadirad

Hi, Guys I am a beginner please help me. I wrote something like this: [CODE=cplusplus] #include <iostream.h> #include <string.h> #define number 1 #define length 35 char student[number][length]; int i,j,k; char *BlankImprover(char *); void InsertInfos(void); void main(){ InsertInfos(); for(i=0;i<number;i++) for(j=0;j<15;j++) cout<<student[i][j]; } void InsertInfos(){ char name[15]; for(i=0;i<number;i++){ cout<<"Enter Student Number <"<<i+1<<"> …

Member Avatar for mahdiahmadirad
0
97
Member Avatar for britto

can anyone tell me the code how to create a textpane with scrollbars inside a tabbed pane.....and i should save the text in a file on button click....

Member Avatar for britto
0
590
Member Avatar for faisaly
Member Avatar for ciarz3r

[code=java] import java.util.Scanner; import java.util.regex.*; import java.io.*; import javax.swing.*; /** * A program that parses a user-supplied URL */ public class URLParser { public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(new FileWriter("D:\\cs2200\\lab8\\URLs.txt")); String input=""; // Everything works the way I …

Member Avatar for stephen84s
0
111
Member Avatar for Jacky1

am trying to append to file but its not going correctly every time it fail to connect to file [code] #include<iostream> #include<fstream> using namespace std; int main() { fstream file; char word[256]; file.open("StudentInfo.txt",ios::app); //file.open("StudentInfo.txt",fstream::app); // wont work too if(file.fail()) { cout << " Error opening the file " << endl; …

Member Avatar for WaltP
0
125
Member Avatar for ruchi18

Hi, i have an application inaction script & java script .I m calling a javascript function by actionscript Fscommand but it gives error as "Object Required" can anyone solve this error.... i have paste code below of javascript.... [code] <html> <head> <title>save</title> <script language="javascript">AC_FL_RunContent = 0;</script> <script src="AC_RunActiveContent.js" language="javascript"></script> <script …

0
140
Member Avatar for orwell84

Is there any way that I can get PERL to give me the elapsed time that it took to calculate something? I'm trying to make my algorithm for finding prime numbers more efficient, and obviously I can't tell the differences in the time it took to generate the list, so …

Member Avatar for orwell84
0
159
Member Avatar for harrykokil

hello guys im stuck for quite a while with this problem and i badly need ur help. in fact i wanna make the red rectangle slow down when it comes close to the blue one. it would be nice if they both move at the same speed. ive tried several …

Member Avatar for harrykokil
0
78
Member Avatar for sciwizeh

Hello, I'm not sure that this shouldn't be in the Computer Science Board because it is mostly a theory question, but it is also implemented in C, so here it goes. I've been looking at some ways to make a modifiable array to hold geometric data for a simplistic 3D …

0
178
Member Avatar for spiderling

I have set up an admin area for users to sort thumbnail photos, which is within an accordion widget and works well. However, I would like to add the ability for them to drag any photo they want to delete to a trash bin image. This would delete the photo …

0
104
Member Avatar for AllenB

Hello, I am creating a client/server application that verifies math equations for addition, subtraction, and division. I think I just need someone else’s eyes to possibly see where I am going wrong with this. Everything seems to be working fine except for one variable. This is the String serverAnswer variable …

Member Avatar for AllenB
0
138

The End.