132,726 Archived Topics
Remove Filter ![]() | |
i am trying to learn assembly using TASM . How do i make the below program terminate . i.e jump to final: after entering wrong key say 3 times ?? [CODE].model small .data msg1 db "- - - Enter y - - -",0dh,0ah,'$' msg2 db 0dh,0ah, "..Correct...Good luck ..",0dh,0ah,'$' msg3 … Software Development assembly | |
sir i want to show only distinct row should come in list box. any help would be greately appreciated. [code] Dim con As adodb.Connection Dim rs As adodb.Recordset Dim i As Integer Dim strReq As String * 10 Dim strName As String * 20 Dim strJob As String * 10 … Software Development open-source visual-basic | |
pretty basic problem but my C++ is pretty far back here's my problem I have to read a text file and parse all the different field ex: 001 R0S11 182983 2009/02/22 45607 002 R0S12 182983 2009/02/23 45707 003 R0S13 182983 2009/02/16 45807 004 R0S14 182983 2009/02/04 45907 .... once I've … Software Development c++ | |
Hi everybody, I want to have a login form in Java, which comparing the username and password, according to MySQL database data, so I have the following code, just don't know where to add the select statement and how verify the username and password from MySQL with the JTextfield of … Software Development java java-swing mysql | |
Hello Everyone, Few days ago, There was active thread on creating own DBMS in Java. Its not an easy task so i decided to create Object-Relational Mapping Framework and i have done so. I have tested all methods and its working perfectly. Now i have decided to make it available … | |
Hi, I'm currently working on a project in Python 2.6.1 using the Tkinter interface, and being new to both Python and Tkinter I've quickly found a problem that keen internet trawling hasn't seemed to help. I'm sure its not a particularly difficult problem or anything, but instead of spending probably … | |
I want to retrieve the username and password of the current user from a shell script .... how to do this? Software Development shell-scripting | |
i need help regarding determining the longest word of a string..we would enter a sentence and the program would display the longest word/s i have read ideas about the strtok but i cant seem to understand it that much..and we havent discussed that yet so my prof might question it..i … Software Development c | |
Hi. I'm David a newbie. I have just started Classes in C++ and I'm doing a GPA Calculator program. I have most of the program working but the average calculator seems to be giving me trouble. Please help. This is open to constructive criticism. All inputs will be gladly appreciated. … Software Development c++ | |
[code] #include <iostream> using namespace std; struct Mytime { int hours; int mins; }; int timecmp( Mytime t1, Mytime t2 ) // compares two Mytime values { if (t1.hours == t2.hours) { if (t1.mins == t2.mins) { return 0; // returns 0 if times are same } else // mins … Software Development c++ | |
hi can anyone help me about my problem how can i come up w/ this solution for example 1 + 2.00 the answer should 3.00 or like this 1.35+2.00 the answer should 3.35 how can i do this? Software Development visual-basic | |
I wrote this program and I need to know if I didn't make a mistake Let arr be an array of 20 integers. Write a program that first fill the array with up to 20 input values and then finds and displays both the subscript of thee largest item in … Software Development c | |
I have 2 forms. Form2 has no minimum, max, close icons. Form2 have to control by form1. i.e minimize of form1 becomes form2 minimize. normal of form1 becomes form2 normal. closing of form1 becomes form2 close. All these are working. but when form1 is behind the screen, i.e if form1 … Software Development | |
hello,, i need help on how to open files by using variable names.. here's my function: [QUOTE][icode]void stringSearcher(string filename, string search) { ifstream file; file.open(filename); if(!file.is_open()) { cerr<<"File can't be open..."<<endl; exit(1); } string line; while(!file.eof()) { getline(file, line); if(line.find(search)==0) { displayTitle(line); exit(1); } } }[/icode][/QUOTE] my problem is that … Software Development c++ | |
what does everyone else use? Another question i have is if there are any significant advantages of VC over Dev? I was figuring out if i should make the switch or not. Software Development c++ | |
At my lab the professor bought a camera that came with a c library to control it from a computer. Right now he wants me to create a gui in matlab to control it but I'm such a python zealot I'd rather do it in that, and then call it … | |
Greetings folks, I need to load a word document file into a RichTextBox component, It can't be done directly, so, I need first, convert it to a RichText Format File and then load it to the component. Any Ideas? Thanks Omar Software Development visual-basic | |
Hi, I'm pretty new to windows programming, and I'm trying to learn from an example. However, I'm encountering some compiler errors that I think are caused by my strings not being made up of wide characters. (correct me, i could very easily be WAY off) winMain() requires parameters of the … Software Development c++ | |
Hello, I am trying to write a program where i have to read a CSV file(obtained by converting an excel file having only 1 column of integers) into an array and then to display the same array as another CSV file. I am using Turbo C++ 4.5. I've tried, but … Software Development c++ | |
Hello., Im very new to C++ but im trying to resolve a fragment of the following code: [CODE] #include <iostream> using namespace std; const int NO_STEPS = 4; void s(int* a, int i); int main ( ) { int i, a[NO_STEPS] = {2, 4, 1, 3}; for ( i = … Software Development c++ | |
I have a text file containing several lines of IP's and Ports with 3 sets per line. For example: [CODE]IP1=1.2.3.4 PRT1=100 IP2=2.3.4.5 PRT2=200 IP3=3.4.5.6 PRT3=300 IP1=12.34.56 PRT1=1000 IP2=2.3.4.5 PRT2=200 IP3=3.4.5.6 PRT3=300[/CODE] I want to read in each line, see if PRT1 matches a specific port, if so then print out … Software Development c | |
I have an array which collects a name and a mark,I want to use a method to get the total of the array, I assume this can be done I have googled it but it doesn't really give me an answer. heres Main [code] static void Main(string[] args) { Student[] … Software Development | |
I am doing a Java project and in my gui I want to use Buttons. I want to put a class' internal parts code as a button action. Because the class Throws Exception when I copy the contents of the class under the button definition I encounter unreported exception error. … Software Development gui java java-netbeans | |
Hello, Is there a way to read the sort criteria from an Excel file using C#?? as an example, if you sorted a cell range by country, is there a way to read "country" using C#? Thanks. Software Development | |
hi Frends, I am a NetBeans user, I show an error in My project when i click on Design view of JFrame. Error is:-"The File Formate is Not Recognized" this is my project database's JFrame. i can't see the design view but ican write code in it. In code window. … Software Development database-design java | |
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) { … Software Development | |
hello, how to prevent a dotnet application from having two running instances as at the same time Software Development | |
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 … Software Development c++ | |
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 … Software Development c | |
[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[], … Software Development c | |
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 … Software Development c | |
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, … Software Development c++ | |
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 … Software Development c | |
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. … Software Development java | |
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 :) Software Development c++ | |
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 … Software Development data-structure file-system gui printer vb.net | |
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 … Software Development python | |
How do you convert a character type into a string type?? Software Development java | |
[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 … Software Development java | |
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 … | |
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 … | |
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 … Software Development client-server java socket-programming | |
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? … | |
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 … Software Development java | |
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 … Software Development java | |
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 … Software Development c++ | |
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 Software Development c++ | |
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 … Software Development vb.net | |
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 … Software Development c |
The End.