43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sota

Hi mates, I am using visual c++ . I need to remove those lines which are full of zeros. Here is the matrice[5,7] : [CODE] 2 2 9 8 7 3 4 [COLOR="Red"]0 0 0 0 0 0 0[/COLOR] 3 4 5 7 8 9 6 [COLOR="Red"] 0 0 0 …

Software Development c++
Member Avatar for sota
0
467
Member Avatar for ram619

The output of this code is "hhe!". Upto "hhe" I can figure out what is happening but, where does this "!" came from? ASCII value of "!" is 33 and here I don't think we are anyhow getting this value. Thanks in advance[CODE=c]#include<stdio.h> #include<conio.h> void main() { static char s[25]="The …

Software Development c
Member Avatar for ram619
0
213
Member Avatar for zekstein

Hello, i have a little big problem. I have an application that needs to 'download' two exe files but i don't want to make internet connections and ... So my application verifies the system time and should 'extract' the .exe for x64 or x86. But i don't know how to …

Software Development c c# c++
Member Avatar for zekstein
0
154
Member Avatar for srikanth2321

Hi all, I'm currently using SAX to parse an xml file. Recenlty I have encountered a problem where, one of the element consist of more than 50,000 characters (a DNA sequence ) and the SAX results nothing as an output. The code which I'm using is [CODE] public void getCommand() …

Software Development java open-source xml
Member Avatar for srikanth2321
0
380
Member Avatar for bloodbender

Hello Daniweb, What would you guys say is the most effective way to manage memory for powers? I'm thinking for smaller powers, like squares or something, it's probably just better to do x * x and Math.pow(x, 2) should only be used for bigger powers. I have a lot of …

Software Development java
Member Avatar for bloodbender
0
107
Member Avatar for kspecks

I was going through old programming tests from school and cam across this one that I got wrong and was wondering if anybody could help me out. We maintain our user list as an encrypted text file with the extension .LBE. We have a customer that is reporting that their …

Software Development c++ linked-list
Member Avatar for kspecks
0
208
Member Avatar for Begginnerdev

Hello my fellow Daniwebbers, I have a modest question for you. I have a panel, which contains child panels. I have code the alows the user to delete the selected panel, but can't figure out how to refresh the parent panel with the deleted panel gone. When I use the …

Software Development vb.net
Member Avatar for Begginnerdev
0
200
Member Avatar for Twistar

I am making a simple blackjack game. I have now made the deck which i can draw cards from. But I don't know how to get the values from each card so that i can add them together. I have a card class named Kort with the enum: [CODE]public enum …

Software Development
Member Avatar for Twistar
0
282
Member Avatar for messr135

/*any suggestions on how to convert a hexadecimal no. into others and vice versa?d code might be long, i'm just 16, dnt be harsh :)*/ #include<iostream.h> #include<conio.h> #include<string.h> #include<math.h> #include<process.h> main() { char a[30],ch; int len,i,j,pos,whole=0,k=0,n=0,r[30],lenr=0,lenq=0,q[30],h=0,base,base1; float frac=0; cout<<"Enter number"; gets(a); cout<<"Enter choice-b,o,h,d"; cin>>ch; len=strlen(a); switch(a[0])//for converting the no. inputted …

Software Development c++
Member Avatar for DeanMSands3
0
108
Member Avatar for M.S.

I tried many times but no luck. I want to parse a text file with a vcard format (from my phone contacts). the text file looks like this: BEGIN:VCARD VERSION:2.1 REV:20110913T095232Z UID:aac119d5fe3bc9dc-00e17913379d6cc8-3 N;X-EPOCCNTMODELLABEL1=First name:;[B]Maj[/B];;; TEL;VOICE:[B]09120000000[/B] X-CLASS:private END:VCARD BEGIN:VCARD VERSION:2.1 REV:20110228T083215Z UID:aac119d5fe3bc9dc-00e17b0693898c98-4 N;X-EPOCCNTMODELLABEL1=First name:;[B]Ali jahan[/B];;; TEL;VOICE:[B]09120000001[/B] X-CLASS:private END:VCARD BEGIN:VCARD VERSION:2.1 REV:20110228T083510Z …

Software Development python
Member Avatar for snippsat
0
2K
Member Avatar for Goldfinch

Hi, I'm trying to understand a java concept, I'm trying to get a piece of code to work without changing the main method. [CODE=java] public class TestProg2{ public static void main(String args[]){ String filler1="Rank"; String filler2="Suit"; Card card = new Card(); System.out.println(card); } } class Card{ public String Card(){ String …

Software Development java
Member Avatar for DavidKroukamp
0
134
Member Avatar for hust921

Hey i know this is a stupid question, but i have no idia how to google it. I have copied this code directly from a book: Btw, my main() method is empty. [CODE] package benytterning; public class Terning { public int værdi; public Terning() { kast(); } public void kast() …

Software Development apple java java-netbeans
Member Avatar for zeroliken
0
136
Member Avatar for Cameronsmith63

So i have a datagrid and I have a databindingsource control for my text file. Works like a bomb, but then i added a toolstripmenu so that i can right click on the datagrid, a menu pops up and i can delete the row of data from the text file …

Software Development
Member Avatar for Cameronsmith63
0
2K
Member Avatar for ahoysailor

Hey, I'm trying to search a List for a substring, but even if it does exist the result is coming out as negative (not present) using the BinarySearch. The idea is that once the file has been loaded into the list I search to see if substrings exist (i.e. IDS_STRING1 …

Software Development c++ programming-construct
Member Avatar for ahoysailor
0
211
Member Avatar for AquaNut

Hi Coders, Once again I feel I need your help/assistance. I have been trawling the net and forums for a simple way of automatically updating a newer version of my application from a network share. Everything I have read pertains to an update from a web site. This is possibly …

Software Development vb.net visual-basic
Member Avatar for AquaNut
0
694
Member Avatar for poojavb

Hello All, Actually I am facing issue in creating an ASP.net application. I have created a project in VB.net but now my seniors are saying that the code should be in ASP.net and it is taking hell lot of time for code conversion, designing and all other stuff. Actually I …

Software Development vb.net
Member Avatar for poojavb
0
368
Member Avatar for Alex_2011

Hi, I am totally lost and I went through a lot of sites about searching within an array, but I could not find any clues. I created the following array : Private LetterArray() As String = {"A", "B", "C"} and I don't know how to get the target letter from …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
365
Member Avatar for Mxous

I need to write a code that takes a percentage and converts it into a letter grade. The problem is that I'm not allowed to use if statements. 85-100 -> A 75-84 -> B 65-74 -> C 55-64 -> D 0-54 -> F One attempt I made was changing the …

Software Development c
Member Avatar for Mxous
0
138
Member Avatar for MBPB

Hi all. I am learning Java, and having a problem with a sentinel loop to fill an array. I want the loop to terminate when -1 is added, OR when the array is filled. [CODE] int i = 0; int counter = 0; int[] array = new int[40]; System.out.print("Enter values …

Software Development java
Member Avatar for DavidKroukamp
0
3K
Member Avatar for scheppy

Ok, so I have my code for the timer [CODE] computer = new Timer (4000, this); computer.start (); [/CODE] The timer starts at the end of a method, and is supposed to start another method via actionlistener after 4 seconds, the problem is, after 4 seconds, the timer gives a …

Software Development java java-swing
Member Avatar for DavidKroukamp
0
192
Member Avatar for runge_kutta

Hello, I would consider myself a decent python programmer (this may or may not be true). In the past, I have had a few small python contracts and have been screwing around with the language for a few years (I also have experience with c++, java/html/css/javascript/etc). What I would really …

Software Development html-css open-source python
Member Avatar for joehms22
0
203
Member Avatar for scheppy

ok so I have a JButton that has an image on it, and then after 4 seconds i want to put a differant image on it but the problem is the first image wont load I'm using [CODE] button1.setIcon (icon); try { Thread.sleep (4000); //sleeping for 4 seconds } catch …

Software Development image java
Member Avatar for scheppy
0
176
Member Avatar for Alex_2011

Hi, I am trying to add (Push) whatever the user enters in (MyStack) into 5 different labels that should show the (UserResponse). The problem is I don't know how to display each element in a different label. For example: - The first element that the user enters (UserResponse) should be …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
179
Member Avatar for brandon66

This is what i am suppossed to do: Create an application that will ask the user for a number between 1 and 10 and then output the factorial of that number. Use a for loop to calculate the factorial. What is a factorial? A factorial is the product of all …

Software Development java
Member Avatar for brandon66
0
156
Member Avatar for auwi987

guys hello i have database with table name tblAgent with a column agent_id and a vb6.0 form add-agent i want to generate id everytime i open form and everytime i added new data it refreshes the ado recordsource and fetch the max(agent_id) and +1 to increment the agent_id now i …

Software Development ide open-source visual-basic
Member Avatar for ChrisPadgham
0
159
Member Avatar for zachattack05

So, the question is, if I have a table on a SQL server with 20 columns, and I need to retrieve just 4 columns for a form, and I am using stored procedures to do most of my queries, should I create a stored procedure to retrieve just the 4 …

Software Development sql
Member Avatar for zachattack05
0
155
Member Avatar for biojet

Hi all, I am trying to make the script to sort the data at the max to min at the decided position. [CODE] in put : 10 0 20 0 24 0 26 0 34 0 39 0 49 0 55 0 56 0 65 0 65 0[/CODE] [CODE]I hope …

Software Development perl
Member Avatar for d5e5
0
270
Member Avatar for jasbun

Hi all, Please help me solving following query: -how to create a set of pictureboxes to indicate the shapes that the program will draw? for example: circle, triangle... Thanks and regards, Jasmine

Software Development
Member Avatar for lxXTaCoXxl
-1
99
Member Avatar for doomhades666

How can i get selected text in web page and put it on textbox? This is the text that i want to copy. [URL="http://i1059.photobucket.com/albums/t432/doomhades666/1-1.png"]http://i1059.photobucket.com/albums/t432/doomhades666/1-1.png[/URL] This the page source of the web page [CODE]<div class="output"> <h1 class="titlebar">Calculator Output</h1> <div style="padding: 1.2ex;"> <pre>Simplifying -2x + 3y = 8 Solving -2x + 3y …

Software Development html-css vb.net web-browser
Member Avatar for codeorder
0
1K
Member Avatar for jkembo

I am stuck, I know how binary tree works, but I don't have any clue how to add data recursively in a binary tree. The user needs to enter a formula with logical operators. If the user presses to a button e.g NOT(unary operator), then it should display at follow …

Software Development java programming-construct
Member Avatar for jkembo
0
290
Member Avatar for iamthesgt

In building an application, I can make the project on one computer, but I can't on my other one. The thing that is holding me up is: [ICODE]#include <cppconn/resultset.h>[/ICODE]. I've searched but I can't find the package I need to install to get this library on my computer. I'm running …

Software Development c++ ubuntu
Member Avatar for iamthesgt
0
133
Member Avatar for renzlo

Hi all, Please see attached for my query. Hope someone can help me. Thanks in advance. -renzlo

Software Development vb.net
Member Avatar for renzlo
0
315
Member Avatar for jackbauer24

What is the difference between "[CODE]return[/CODE]" and "[CODE]messageBox.Show("whatever")[/CODE]"? Also explain(efforts will be appreciated): What does [CODE]retern[/CODE] do?

Software Development c#
Member Avatar for EBS.VivekGupta
0
196
Member Avatar for jackbauer24

I've got to explain this to my ten year old son, so please explain this in an easy way. (If you can, each and every thing about [ICODE]this()[/ICODE].) Thanks in advance.

Software Development java
Member Avatar for jackbauer24
0
174
Member Avatar for mehnihma

Can you help me with this problem I have a class and I need to create separate class justo fro reste button, but I am not sure how to do this? Here is what I have done [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MyEventC extends JFrame implements …

Software Development java java-swing
Member Avatar for peter_budo
0
1K
Member Avatar for charlybones

Greetings. In my Console Application, I have a process that connects to a Access Database File. After closing the connection I copy the file to another folder, and delete the original. Lately this is failing a lot. For some reason the File is still being used, even if the connection …

Software Development
Member Avatar for charlybones
0
252
Member Avatar for harinath_2007

Hi , I developed an application which checks mail(gmail) all the time and alerts me whenever new mail has come. In short its a email notifier or email alerter. The application uses IMAP protocol .The application opens the connection once and it continously checks whether a new mail has come. …

Software Development java
Member Avatar for harinath_2007
0
129
Member Avatar for Fixxxer

Hi there I have written the following code to read some data from a file and bin the data into bins of equal size so I can plot this data easily. [CODE]#include <stdio.h> #define N_HITS 1800 #define N_TIME_BINS 78 int main() { int i, time_bins[N_TIME_BINS],j; double event; double hit[N_HITS],value; FILE …

Software Development c
Member Avatar for Gaiety
0
243
Member Avatar for groff

I have two combobox in a form: Cb1 and Cb2 When I load the form, Cb1 and Cb2 are connected to a bindingsource. When I change Cb1, the code (below) changes Cb2 to show only the items according to Cb1 This is working fine. The problem is when I change …

Software Development dataset vb.net
Member Avatar for groff
0
174
Member Avatar for Gaiety

[CODE] #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main( void ) { int fd,nob; char str[1024]; fd = open("test.txt",O_RDWR|O_CREAT,S_IRWXU); if (fd < 0) { perror("open:"); exit(0); } nob = write(fd,"hello first",1024); close(fd); printf(" %d nob written",nob); fd = open("test.txt",O_RDWR); nob = read(fd,str,1024); close(fd); printf(" %d nob …

Software Development c
Member Avatar for Gaiety
0
124
Member Avatar for jackbauer24

Please explain all these four pages- Open the images in paint. Only then will you be able to view it. Thanks in advance.

Software Development java
Member Avatar for JamesCherrill
0
173
Member Avatar for PF2G

Can someone tell me what's wrong here: [CODE] Dim sql As String = "SELECT * FROM courses" Dim con As New MySqlConnection Dim dt As New DataTable(sql) Dim cmd As New MySqlCommand(sql, con) con.Open() ComboBox1.Items.Add(dt)[/CODE] It doesn't show the courses.

Software Development vb.net
Member Avatar for jbutardo
0
116
Member Avatar for arathy nair

I want to delete the strings file1 and file2 after its merged to a single pdf merge12. Please suggest your valuable ideas.. Thanks in advance package com; import java.io.FileOutputStream; import java.util.ArrayList; import com.itextpdf.text.Document; import com.itextpdf.text.pdf.PdfCopy; import com.itextpdf.text.pdf.PdfImportedPage; import com.itextpdf.text.pdf.PdfReader; /* * author * @282532 */ public class PdfMerger { public …

Software Development java pdf
Member Avatar for arathy nair
0
445
Member Avatar for LearnVBnet

I Have Listview with All transaction with column InvoiceNo Date Customer Total Now I want to filter only month transation only month with combobox selection and one textbox year Me.cboMonth.Items.Add("1") Me.cboMonth.Items.Add("2") Me.cboMonth.Items.Add("3") ........... Me.cboDate.Items.Add("12") Me.cboDate.SelectedText = 1 my column date display mm/dd/yyyy How can I selection cboMonth to filter only …

Software Development listview vb.net
Member Avatar for LearnVBnet
0
682
Member Avatar for Neji

Hi All, Here i want to disable right click on textbox. Please help me to do this. Best Regards Neji

Software Development visual-basic
Member Avatar for Neji
0
1K
Member Avatar for jbutardo

Hi, I have a program that needs to create a downloadable excel template with the following headers on the first row named, name, age, gender. And I also want the template to only have 1 sheet on it. how can I create a sample template using vb.net code? Thanks

Software Development microsoft-office vb.net
Member Avatar for jbutardo
0
1K
Member Avatar for jbutardo

Hi, I have this program that would upload files from the client to the server, Now I want to validate the filesize before uploading it into the server.. How can I create this kind of validation? Thanks.

Software Development client-server vb.net
Member Avatar for jbutardo
0
568
Member Avatar for weeraa

I want to stretch an image in picturebox. Is there any property to do it? In VB.NET there is is a property called "size mode". we can change that property to "stretch image". still i couldn't find VB6 property to do it. Please tell me the property or if there …

Software Development image visual-basic
Member Avatar for weeraa
0
720
Member Avatar for daydie

Here is my HTTP cookie request which auto loads browser after doing the cookie stuff. But it does not login and i dont know why =/ [CODE] Dim logincookie As CookieContainer Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim postData As String = "referer=http%3A%2F%2Fforum.ea.com%2Fuk%2Fcategories%2Flist.page&selectprofile=true&remoteurl=http%3A%2F%2Fforum.ea.com%2Fuk%2FgusUser%2Flogin.page&action=Login&registrationSource=&authenticationSource=EA-JForums&HIDE_GUS=&username=" & …

Software Development vb.net
0
92
Member Avatar for markdean.expres

Guys, I can't still figure out how to show to a user the file info of a file programamtically. Can I just use the Properties window that Windows use to show all the detals of a file (e.g. name, type, size, path, date created ect.) I am using the IO …

Software Development vb.net
Member Avatar for markdean.expres
0
372

The End.