132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nemoo

hey all:) is there is a code in assembly language similer to if - else statement in c language??:?: i want to write a program to calculate the factorial of any no. using assembly and i need if - else statement in this program plz help me as fast as …

Software Development assembly
Member Avatar for binu_ji
0
81
Member Avatar for shelly121

hello,i need to make an if statement for a mortgage application in vb.net, basically i have a list box for the DOB called cmbDOB, and a label to show the maximum mortgage. But i dont know how to make the if statement-it has to show the maximum mortage in the …

Software Development vb.net
Member Avatar for cutepinkbunnies
0
234
Member Avatar for guest11

hi all, I want to run vb program through vb.net program is this possible in vb.net and i want to show output in some container. In VB it is possible through Shell command but it runs the program seperately but i want to run program through vb.net and want output …

Software Development vb.net
Member Avatar for guest11
0
209
Member Avatar for VernonDozier

O.K. I wrote my own version of the Addiction Solitaire game using a JFrame and it worked. I want to put it on the web, so I'm converting it to a JApplet. I have 52 PNG files, one for each card, that I need to be able to access for …

Member Avatar for VernonDozier
0
228
Member Avatar for QuantNeeds

Hello, Finally I am down to the last issue with my program: text file writing and reading. My file has a function whose ofstream object does work and produces a text file for printing called "print". This function is the printTextFile(fstream &readFromFile ) function. But initially it is supposed to …

Software Development c++ file-stream file-system ios
Member Avatar for Ancient Dragon
0
321
Member Avatar for Prabakar

I have mentioned this before, I have to use turbo c++ in class. [B]Problem:[/B] I wrote the following code & to my surprise the code passed the compilation without any problem. I was even more surprised with the output. I just don't understand whats happening. This code won't compile in …

Software Development c++
Member Avatar for Prabakar
0
151
Member Avatar for kahaj

I'm trying to access a cgi script when a form is submitted. With that script, I want to display a page that basically says, "Is this info correct?" and show them what they entered. Then, if they hit "Yes", I want to send an email to myself with their info. …

Software Development perl
Member Avatar for kahaj
0
144
Member Avatar for lich

hi well i just started learning java. and up to now we did exceptions and loops and most of the java concepts.. and i used J creator lite version. but in my project i have to make a interface. so do you have any idea how to make it done …

Software Development java
Member Avatar for sciwizeh
0
90
Member Avatar for worldwaffle

I'm only 11, but I know html, CSS, javascript, and C#. I was wondering, [B]if Java is like C#[/B], as it looks pretty similar, I could just start coding :)! -worldwaffle

Software Development c# html-css java javascript
Member Avatar for Alex Edwards
0
151
Member Avatar for cam875

Hello, I am working on a very simple bootloader for my 80386 AMD CPU in assembly, my assembler is NASM and I am wondering why this code is not working properly. When I boot from my floppy disk It says reading DMI pool data and than an error. Is it …

Software Development assembly
Member Avatar for cam875
0
78
Member Avatar for edel

Please, can you help me to solve these problems??? I've compiled codes on linux with make command and.... THANKSSSSSSSSSSSSS trinity@trinity-laptop:~/a-saodv$ make gcc -Wall -pthread -g -DDEBUG -c -o main.o main.c main.c:3:20: error: config.h: Nessun file o directory In file included from main.c:12: /usr/include/linux/wireless.h:660: error: expected specifier-qualifier-list before ‘__s32’ /usr/include/linux/wireless.h:673: error: …

Software Development c++ storage
Member Avatar for CoolGamer48
0
297
Member Avatar for 2ashwinkulkarni

Hello, I am using the RE, Regular Expression Module. The operation I need to perform is a search; The syntax for which goes like this re.search(pattern, string, flags) #flags being optional where 'pattern' is the string I am looking for in 'string'. My problem is I want to look for …

Software Development python
Member Avatar for jlm699
0
109
Member Avatar for joey101

I'm working on making a server control panel in python (like cpanel, plesk, etc) and wanted to know if any one knew of some tutorials on using bash and python together for creating users and stuff on a *nix system. Also if any one knows of a tutorial on using …

Software Development cpanel python
Member Avatar for ovoid
0
763
Member Avatar for piods

how to cast a floating point to display an fraction form?? is there a way??

Software Development c
Member Avatar for ArkM
0
133
Member Avatar for IT_Techno

hi every one i need your help to now if there is a way in c# can write int numbers like this 4 -> 0004 or 3 -> 0003 or 25 -> 0025 or 123 -> 0123 or 1234 -> 1234 (no change) i want to generate ID that ID …

Software Development
Member Avatar for vckicks
0
126
Member Avatar for QuantNeeds

I am having some issues. I was trying to use my setToolName function to copy the string into the array – this would check if the string was too long. But then it does not capture 2 words, say if the string is “lawn mower”. So I started to use …

Software Development c++ ios
Member Avatar for QuantNeeds
0
141
Member Avatar for jhonnyboy

hey guys just joined the forum and so far it looks very promising :D got a quick question for everyone that can help, i am trying to organize a txt file to output the "gpa" from highest to lowest. Now this is what i have so far... [code]#include <iostream> #include …

Software Development c++ file-system
Member Avatar for jhonnyboy
0
129
Member Avatar for darkivader

Hello, im new to working with windows controls and im trying to create a simple listbox inside a main window. It compiles fine, but when i run it, the listbox is all screwed up and im fairly sure that my error message is trying to pop up (but for some …

Software Development c++
Member Avatar for mitrmkar
0
168
Member Avatar for tuse

I'm doing a program on the addition of 2 Sparse Matrices. This is what I have coded- [code=java] import java.io.*; class Sparse { int r,c,m[][],s[][],count,rt; static int res[][]; public Sparse() { count=0; rt=1; } //Take the matrix public void read() throws Throwable { BufferedReader buff=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the number …

Software Development java
Member Avatar for tyagi
0
256
Member Avatar for newtechie

i was trying to write a code for counting the number of ocurence of a particular word from a sentence.it gives me a wrong output it starts checking for the same alphabets in the sentence rather than the word. [CODE]import java.lang.String; public class StringCount2 { public static void main(String args[]) …

Software Development java
Member Avatar for tyagi
0
157
Member Avatar for mayoub

Dear DaniWebbers, If you would all be so kind to help me, I have a problem here and I am trying to know why this happens... In a large application I am working on, I need to have a struct of some sort with a sub struct-array and the sub …

Software Development c++
Member Avatar for mayoub
0
145
Member Avatar for Dr Windows (XP)

Hello all. I would like to calculate, assign and do a lot with my program (java). Here are my codes. import java.util.*; public class Test { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String[] s = new String[9]; int a; for(a=0;a<9;a++) { s[a]=scan.next(); } } } …

Software Development java
Member Avatar for sciwizeh
0
109
Member Avatar for just asif

i want to develop a software plz give me a idea

Software Development java
Member Avatar for Ezzaral
0
96
Member Avatar for new_2_java

Hi all, I am getting the content of an object which is returned as [B]ByteArrayInputStream[/B], and then I am assigning to another object, which accepts input as [B]ByteArrayOutputStream[/B]. Can someone please suggest as how can I convert ByteArrayInputStream to ByteArrayOutputStream... Here's my code: [code=java] ByteArrayInputStream b_input = source_object.getContent(); // how …

Software Development java
Member Avatar for new_2_java
0
1K
Member Avatar for integer*09

In my development com there's no issue of handling 4MB of text file data but it took about 1-2mins for my program to finish. I got a few questions here: Q1-> how much can this string "line" store? Q2-> should i use sstrm.clear() and line.clear() inside the while loop or …

Software Development c++
Member Avatar for vmanes
0
124
Member Avatar for skalra63

currently, i have got code that will let someone search a table in a database and return any possible recordsets into a listbox. however, i would like to be able to click on any of those items added to the list box, so that it will return other data from …

Software Development visual-basic
Member Avatar for suchisuchi07
0
229
Member Avatar for Neerajjaggi

[code] <%@ page import="java.sql.*"%> <%String fname=request.getParameter("name"); String lname=request.getParameter("last"); String id= request.getParameter("id"); String pass=request.getParameter("password"); String pass1=request.getParameter("passcon"); String month=request.getParameter("Months"); String date=request.getParameter("date"); String year=request.getParameter("year"); String gender=request.getParameter("gender"); String country=request.getParameter("country"); %> <%=try { Connection c=null; Statement st= null; DriverManager dm=null; String pass=""; String user=""; PreparedStatement pt=null; String url="Jdbc:Odbc:jaggi"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); c=dm.getConnection(user,pass,url); if(pass.equals(pass1)) { pt=c.prepareStatement(insert into Registration …

Software Development java java-jsp
Member Avatar for peter_budo
0
95
Member Avatar for cellus205

Hows it going everyone. Right now I am working on a project with VS2008 that parses directory and subdirectories and lists all filenames/paths/size/etc. This is working correctly, but I also need to parse the contents of zip files without actually unzipping them. What would be the easiest method to return …

Software Development vb.net
Member Avatar for cellus205
0
205
Member Avatar for skymuss

Hi daniweb users My name is luc. I'm from Germany. Before I have started with Python I used PHP. There you have the funktion [B]urldecode[/B] to decode a url string or [B]urlencode[/B] to encode a url string. I don't really know I a function like that in python. can you …

Software Development php python
Member Avatar for Gribouillis
0
323
Member Avatar for makubexiii

I'm almost finished with this but got stuck in trapping it when 1)there is a winner 2) a player attempts to enter a position that has been previously filled [CODE]#include<stdio.h> #include<conio.h> display(); game(int turn, int board[3][3]); output(int board[3][3]); main() {int turn=1, board[3][3]={0}; clrscr(); display(); while(turn <= 9) {game(turn, board); turn++; …

Software Development c
Member Avatar for makubexiii
0
114
Member Avatar for deftones

Hi, I've just finished working on my little project and I've already compiled it. But when I run it and input necessary data, I get "out of memory" error. The program suppose to deal with a lot of information. How can I fix that problem?

Software Development visual-basic
Member Avatar for deftones
0
42
Member Avatar for preethi_ga

Hi, i have a form in VB. iam using SQL Server as Back-end. And connection string and all works properly. the only one thing is i want to retrieve data from database into a combobox. i'am using this code.... [ dim i ] [ for i = 0 to Combo1.ListCount …

Software Development sql visual-basic
Member Avatar for tchawurura
0
201
Member Avatar for FaridMasood

Please some one help to build my concept that what are com components.

Software Development
Member Avatar for Ramy Mahrous
0
89
Member Avatar for hapax

I want to learn Java web development. What should I study first? JSP, servlets, and JDBC? Or should I jump right into learning to use environments like Struts, JSF, Spring, Hibernate? Which of these would you recommend, if so? (I'm from an ASP.NET/C# background, but I want to start learning …

Software Development asp.net java java-jsp
Member Avatar for stultuske
0
102
Member Avatar for Tony Barber

Hi, I am connecting a scanner to a USB port. The scanner works as a com port connection. Before I can talk to the scanner I need to know which com port the scanner is using. When I know which com port it is on I can wake it up …

Software Development vb.net
Member Avatar for Tony Barber
0
934
Member Avatar for gp04lch

hi guys, i have a databound listbox. the problem is i can't save the last record i entered without clicking some other record first. the datatable just does not treat it as an added or modified record. why is this so? regards, Han

Software Development
Member Avatar for gp04lch
0
179
Member Avatar for 2fac323

My program reads the data from the infile. But outputs the wrong results accept for lowest temperature -21 which is correct. I have played with the while loop where I believe the problem lies but have been unsuccessful in getting the right results. Can somebody steer me in the right …

Software Development c++
Member Avatar for ArkM
0
523
Member Avatar for zyaday

I paint a lot of images on my screen before the JFrame is displayed...It takes along time..what can i do to make the image load faster..

Software Development image java
Member Avatar for sciwizeh
0
94
Member Avatar for sepiso

Hi , Kindly assist me with resolving this defect from the testers team. am new to python. the defect is as follows: "A small code change must be added to checkif the password that has been received from the API call compares to "clear|......". If this is the case then …

Software Development api python
Member Avatar for Gribouillis
0
91
Member Avatar for sciwizeh

Hypothetically, say i want to know how may times anyone has clicked a button in an applet. NOTE: this is not what i actually want to do but it is a good example. more specifically i have a text file in a jar, along with classes, called clicks.txt. every time …

Software Development java
Member Avatar for sciwizeh
0
113
Member Avatar for PaulNickel

Hello everybody, I have been working on this code segment for about three days and cannot figure out what is causing this error. I am trying to get a specific value out of an arraylist of sorted objects. Here is the code: [code=java] public RateEstimator getMinRate() { // return null …

Software Development java
Member Avatar for PaulNickel
0
116
Member Avatar for sameer123

i want to create a file exactly like pickled file using C program in Qt without using python. this file will be read by python (unpickled ) to initialize some properties. Or Is there any way one can know the exact syntax of pickled file n then write it using …

Software Development python qt
Member Avatar for sameer123
0
299
Member Avatar for clutchkiller

I am just currently getting into programming, and was curious. I know you wouldnt call C an outdated language, but for someone like me, would it be best to learn c++ instead of starting on C? If im correct, C++ is object oriented and C is Structured correct? So if …

Software Development c++
Member Avatar for Ancient Dragon
0
113
Member Avatar for kneel

how can the searching code be created? i've made a program named address book. now i wanna make a function that can search an existing contact details from the file through 2 ways 1) search by name 2) search by phone No. kindly define me the code in C++ thx

Software Development c++
Member Avatar for Ancient Dragon
0
261
Member Avatar for acchao

Hey, This a bit of a lengthy problem to explain, please bear with me. My goal: Read in a data file (written in ASCII) and convert it to a smaller format (such as binary) The Problem: I start off with a proprietary format called Heim RawData. I currently don't have …

Software Development c file-system
Member Avatar for Adak
0
241
Member Avatar for SonxQ7

Well i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ …

Software Development c++ java
Member Avatar for Alex Edwards
0
165
Member Avatar for sidatra79

Does anybody have any idea why the following code causes a memory error? Thanks everybody in advance :D [code=CPP]#include <stddef.h> // some older implementations lack <cstddef> #include <time.h> #include <math.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <list> #include <deque> #include <set> #include <iostream> #include <iomanip> typedef double element_t; using …

Software Development algorithm c++
Member Avatar for ivailosp
0
90
Member Avatar for breakbone

Hi, I'm writing a simple echo/chat GUI server using wxPython. I made a separate thread for the server. The only problem I have is that when I try to close the server it hangs in socket.recv() thus hanging the whole thread. How can stop the socket from receiving from the …

Software Development client-server gui python
Member Avatar for breakbone
0
163
Member Avatar for FreezeBlink

I know, this is a stupid question, but is it possible for a class to have two variables, one of which has a value, and the other of which will [i]always[/i] hold the same value, unless the user changes it? In essence, making the second variable a duplicate of the …

Software Development python
Member Avatar for Gribouillis
0
116
Member Avatar for monjuri

hello everyone. i m monjuri. i want to find out the execution time of a C program. it works fine. but i want the time in milisecond or microsecond. Can anybody help me??? here is my code: /*insertion code*/ #include <stdio.h> #include <time.h> #define maxsize 10 int A[maxsize]; int value,j,i; …

Software Development c
Member Avatar for ArkM
0
152

The End.