132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ni5958

i have a little program that searches for[URL="http://en.wikipedia.org/wiki/List_of_perfect_numbers"] perfect numbers[/URL]. now it took it 36 minutes to get to the 5th number(and last one for longint) which is 33550336. as it worked i noticed in the task manager that it only used 25% of cpu the whole time and the …

Software Development pascal
Member Avatar for ni5958
0
244
Member Avatar for jagaur

hello everyone i am trying to make a list that contains name with following option add till name write out names in the list remove name from the list sort the list look efter a name from the list save the list to a file please i will appreciate if …

Software Development c++
Member Avatar for WaltP
0
196
Member Avatar for linova

Hi, I have a text file with characters. I must able to read the length of characters in the file by every line and count the frequency of each characters for each line. I have tried on writing this program but this does not work. Can anyone help me on …

Software Development c++ ios
Member Avatar for WaltP
0
252
Member Avatar for bensewards

Hey guys, This is my first official post on DaniWeb :) I am new at programming in C++ using visual studios, and right now I am fooling around with storing user input into Arrays. I am having a problem with my code, using an array size of 3 to store …

Software Development c++
Member Avatar for jonsca
0
210
Member Avatar for aplh_ucsc

It,s me having the same problem.. I want to pass some parameters from the main method to some other method. u cannot declare any variable names or pointers. I'm having an array of int with size 12500. if u want any variable or a pointer, use array blocks for it. …

Software Development c
Member Avatar for aplh_ucsc
0
202
Member Avatar for varma1993

write a program to get a 2 d character array and arrange them in alphabetical order. i've tried it,but its not getting compiled. im jus a beginner.so, someone plz help me. given below is my program.... #include<stdio.h> #include<conio.h> #include<string.h> struct st{ char a[5][10]; }ppl; int main() { int i,j; char …

Software Development c
Member Avatar for Adak
0
116
Member Avatar for daudiam

I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at …

Software Development java
Member Avatar for daudiam
0
171
Member Avatar for steven8579

I have a combobox called combobox1 and I dont know how to save the selection. For example if i selected Sub Compounds, how would i save this so when i loaded it again from the hd Sub Compounds would be selected.

Software Development
Member Avatar for steven8579
0
1K
Member Avatar for plasticfood

when it asks for the output file, what is it?

Software Development java
Member Avatar for plasticfood
0
70
Member Avatar for jhai_salvador

Okay, this is just a simple trick to determine whether CAPS is pressed because some people here use API to determine whether the CAPS Lock is pressed. [QUOTE] KeyDown and KeyUp don't detect exactly the same information as KeyPress. KeyPress detects a character in its KeyAscii parameter, but KeyDown and …

Software Development api visual-basic
Member Avatar for jhai_salvador
0
879
Member Avatar for jlovesfishiee

Does anyone know why the SessionBean in the netbeans keep disappearing? I did nothing but some hard coding. But when I go back to the design page, I realised that my SessionBean is no longer there. In fact it has happened several times and even resetting netbeans doesn't help. Is …

Software Development java
Member Avatar for jlovesfishiee
0
91
Member Avatar for solfinker

I need to add to my project several two columns tables of data (from MS-Excel) I have saved in txt form, and I suppose I want to manage them in the form of lists or arrays. Which is the easiest way to incorporate those files into the project?

Software Development vb.net visual-basic
Member Avatar for kvprajapati
0
99
Member Avatar for yorro

How do you set the FileSystemWatcher.Filter to check only two files. Here's my code that doesn't even work. [CODE=vb]watcher.Filter = "*.txt|*.ini"[/CODE] Thanks Alot

Software Development vb.net
Member Avatar for yorro
0
2K
Member Avatar for poobert

I'm trying to write a script that downloads and image off the net with wget. The script should save the file named as the date it was downloaded preferably with a suffix. Any ideas on how to accomplish this using wget?

Software Development shell-scripting
Member Avatar for poobert
0
203
Member Avatar for jon.kiparsky

Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it …

Software Development java
Member Avatar for jon.kiparsky
0
337
Member Avatar for sampaw20

[code] Imports System.Data Public Class Section Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim dv As New DataView Dim inc As Integer Dim maxrows As Integer Dim cmd As OleDb.OleDbCommand Dim constr As String Private Sub Section_Load(ByVal sender As System.Object, ByVal e …

Software Development dataset open-source vb.net
Member Avatar for ShahanDev
0
181
Member Avatar for discovery-power

Hi All, I have a combo box in a form, I want to fill it with names I have stored in a database. I know I have to use the fill command, but I am not sure what code I need to use. I imagine I need to place this …

Software Development vb.net
Member Avatar for discovery-power
0
117
Member Avatar for Mr_PoP

Hi there i wanna make a query like this [CODE]SELECT * FROM accounts[/CODE] accounts table has 3 columns ID Name Password so i wanna get every column value in variable like char name= column[name]; so i can cout << name ; is there away to do it?

Software Development c c# c++
Member Avatar for Mr_PoP
0
75
Member Avatar for shredder2794

Hello All, I was wondering how to click a button on the internet or another program via a program in visual basic 2010. An example would be: Have a program being able to click the "Search" button in google or the "I'm feeling lucky" button??? Does anyone know how to …

Software Development vb.net visual-basic
Member Avatar for Unhnd_Exception
0
2K
Member Avatar for alexchen

I cannot copy 2d array. There are no errors in my error list. What is wrong with my code? The problem might be located in create(). Thanks in advance. Here is my code. [CODE]int **map void randomize(int numberToSelect,int range, int *list){ int* remainingNumbers = new int[range]; int* chosenNumbers = new …

Software Development c++
Member Avatar for alexchen
0
109
Member Avatar for Juginx

hey. How to load and save to XML. xml like: [CODE][track1] name= url= starttime= [/track1] [track2].... [/CODE] and how to load only name to listbox without all link.

Software Development c++ xml
Member Avatar for jonsca
0
88
Member Avatar for seanbp

What are some hints or tips on writing efficient functions? I read about converting the code to assembly, and I've also read about the stack and functions. However, I fail to understand how data stored higher can be accessed before the end on a FIFO stack, as any local variable …

Software Development assembly c++
Member Avatar for vijayan121
0
107
Member Avatar for prem2

Dear team, I have done some java programs .Still i am confused what is the difference between j2se vs j2ee vs j2me . Can any one explain what is the diffrence . I want to do sun certificate in java.Can any one have idea about the sun certificate. Thank you, …

Software Development java
Member Avatar for ~s.o.s~
0
1K
Member Avatar for felix001

Im pretty new to Python, so i apologise in advance. My main goal is to parse a csv file (as per below) and to create a list named based on column 5 which includes values from column 7 as the elements. 01/11/2010,DEB,12345,12345,CREDIT CARD,,44 01/11/2010,DEB,12345,12345,TAKE AWAY,,20 01/11/2010,DEB,12345,12345,TAKE AWAY,,22 01/11/2010,DEB,12345,12345,TAKE AWAY,,24 The …

Software Development python
Member Avatar for TrustyTony
0
115
Member Avatar for Juginx

Hey again ...:P Now i have problem with save & load from/to text file. [CODE]private: System::Void zaÅ‚adujPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { OpenFileDialog^ dig = gcnew OpenFileDialog(); dig->Filter = "PlayList(*.PLS)|*.PLS"; if(dig->ShowDialog() == System::Windows::Forms::DialogResult::OK) { listBox1->Items->Add(IO::File::ReadAllText(dig->FileName)); } } private: System::Void zapiszPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { SaveFileDialog^ dig = gcnew SaveFileDialog(); dig->Filter = …

Software Development c++
Member Avatar for jonsca
0
637
Member Avatar for usiyalla

hai i want to embed browser in my java program i google and find JDIC.I dont know how to use it. So i really wanna ask can i use Jdic to emmbed browser in my java program. Is there any good tutorial. .

Software Development java
Member Avatar for usiyalla
0
127
Member Avatar for miturian

So, this is probably a bit abstract, and I apologize if the title was imprecise: I have a simulation class, which contains a vector of objects of class A, the member functions of which depend on parameters a,b,c: [CODE] class SIMULATION { vector<A> array; }; class A { A(a,b,c); } …

Software Development c++
Member Avatar for mike_2000_17
0
187
Member Avatar for winkler

Hi I consider myself fairly new to VB.NET, so maybe you could help me here. I have a bindingSource which is bound to a dataset. I have a filter on the bindingsource. My problem is that when I add a new row, with BindingSource.AddNew, even if it does not match …

Software Development dataset vb.net
Member Avatar for winkler
0
809
Member Avatar for millanskie

Hi, DO somebody know how to remove the rectangle graphics, I'm able to draw a rectangle graphics using this code: [CODE]Dim g As System.Drawing.Graphics Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red, 2) Dim myRect As New Rectangle(x1, y1, x2, y2) g = Me.CreateGraphics() g.DrawRectangle(myPen, myRect) g.Dispose()[/CODE] Is it possible to remove this …

Software Development vb.net
Member Avatar for CandorZ
0
2K
Member Avatar for narlapavan

2D vector data types should be different or same only .. for ex:: for one sub script with int data type and with another subscript with class name is it possible to declare with diff. data types

Software Development c++
Member Avatar for Ancient Dragon
0
147
Member Avatar for harry.jhone

Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question form expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations …

Software Development vb.net
Member Avatar for kvprajapati
0
276
Member Avatar for zahrahLand

Hi everybody I wanted to retrieve data from sql server and save them in arrayList I use the following format [CODE] sql="select bookid,bookname from BookTable"; Sqlcommand cmd=new (sql,conn) // I define reader here while(reader.Read()) { list.Add(new book(reader[reder.GetName(0)],reader[reader.GetName(1)])); } [/CODE] in book class I build a constructor [CODE] public book(int id,String …

Software Development c#
Member Avatar for Mitja Bonca
0
184
Member Avatar for faintfascinatio

I'm trying to use lucene in my project to search for people. I created the index using records from a db table of people (firstname, lastname, social, phone, address, etc). However, in the db, some of these fields are missing (ie, no address supplied). In my project, users can search …

Software Development
Member Avatar for Mitja Bonca
0
156
Member Avatar for judithSampathwa

hi there, i have a text box in a form to enter a float value.say that the user types in 1234567789.09 it should be formatted and display as 1,234,567,789.09 how can i do this. i am using a text box. please can someone help me in this or give me …

Software Development asp.net c#
Member Avatar for Mitja Bonca
0
175
Member Avatar for twohot

I have spent 4hrs+ trying to figure out why I can't catch an IOError. Most of the solutions I find, seem to be python-2 specific. I'm using python-3. Take a look at this: [code]def getfile(cfg): try: with open(cfg, 'r', encoding='utf-8') as tmp_file: tmp = tmp_file.read().strip().split('') except IOError as err: print …

Software Development python
Member Avatar for twohot
0
133
Member Avatar for RenanLazarotto

Hey guys! Me again. I want to change some text inside a textbox when a checkbox is checked. I tried many things, but none seems to work. I need that, when checkbox gets checked, the textbox value gets deleted from backwars until a dot. Then, place another predefined text immediately …

Software Development vb.net
Member Avatar for RenanLazarotto
0
172
Member Avatar for Shayaan_Mustafa

Hi! my dear all. [CODE]#include<iostream.h> #include<stdlib.h> #include<fstream.h> #include<conio.h> #include<stdio.h> class payroll { private: char address[50]; float basic,allowence,deduction; public: void add(void); }; void payroll::add(void) { clrscr(); int e_no,choice; char name[50],ch; payroll e; cout<<"Enter Employe Number: ";cin>>e_no; cout<<"Enter Employe Name: ";gets(name); cout<<"Enter Employe's Address: ";gets(e.address); cout<<"Enter Employe's Basic Salary: ";cin>>e.basic; cout<<"Enter Employe's …

Software Development c c# c++
Member Avatar for Jason Giggs
0
865
Member Avatar for logicslab

Hi pals, I try a code in my Dev -C++ Environment v 4.9.9.2 in Windows XP. I save file as "satwant_mysql.cpp" in E:/C++/ Directory.... [CODE] #include <mysql/mysql.h> #include <stdio.h> int main(){ MYSQL mysql; MYSQL_ROW row; MYSQL_RES *result; unsigned int num_fields; unsigned int i; mysql_init(&mysql); if (!mysql_real_connect(&mysql,"localhost","root","","MyDatabase",0,NULL,0)) { fprintf(stderr, "Failed to …

Software Development c++ mysql
Member Avatar for mitrmkar
0
1K
Member Avatar for arshi9464

why do we need data structures, if it is a way of storing data in computer in an efficient way, then the computer itself has the ability to store the data in an efficient way, why do we create linked lists n other stuffs. why do we use stacks,trees n …

Software Development c
Member Avatar for Jason Giggs
0
189
Member Avatar for mixmagz

HERES THE CODE: [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int a,b,c,d; cout << "Enter Four Digit positive number: "; a = getch(); cout << char(a); b = getch(); cout << char(b); c = getch(); cout << char(c); d = getch(); cout << char(d); cout << "\nOutput:\n"; …

Software Development c
Member Avatar for mixmagz
0
154
Member Avatar for SecLoRum

Can someone help please. I have search all the forums about my problem and i cant find answer to it. -Decided to post a thread. Its about making a lotto program in C using only loop control structures and decision control structes( if..etc.). and most importantly random function. ' :-/Don't …

Software Development c
Member Avatar for Jason Giggs
0
118
Member Avatar for DJSAN10

If the main() takes 3 arguments i.e. int argc,char * argv[],char *env[] and SINCE C DOES NOT SUPPORT FUNCTION OVERLOADING ,y does the c compiler does not give error for simply void main() //that is no arguments at all OR void main(int argc,char *argv[]) //2 arguments

Software Development c
Member Avatar for DJSAN10
0
195
Member Avatar for ktsangop

Hi everyone. I'm facing a tricky problem with keyboard hooks in visual c++ (MFC). I have two global keyboard hooks set in my application and everything works smoothly when windows explorer is running. But my application needs to run without windows explorer (in kiosk mode), so i replace explorer.exe with …

Software Development c++ microsoft-windows
Member Avatar for ktsangop
0
256
Member Avatar for mrteey2k
Member Avatar for AndreRet
0
83
Member Avatar for lelejau

Hello. How can I protect my application against Memory Editors? Like, Cheat Engine, Debuggers, etc.

Software Development c++
Member Avatar for JSPMA1988
0
138
Member Avatar for sravi.pearl

Can any one please tell me how to display the result in notepad For Example My code : import urllib a = urllib.urlopen("https://www.google.com") Source = a.read() a.close() print Source raw_input("*************Press Enter to Exit****************"); i have to display the result of it in a note pad.

Software Development python
Member Avatar for richieking
0
2K
Member Avatar for J0shu

Hello everyone. I've been trying to implement a linked list in C++. I found this implementation on the web, where they created a struct for the list's nodes. When trying to add a new node to the list, I get this error: [B]List.C: In member function `bool Linked::addNode(Point)': List.C:23: error: …

Software Development c++ linked-list oop
Member Avatar for jonsca
0
562
Member Avatar for bingkoy21

Hi everyone! :) Can somebody pls help me out here. Im still a noob at programming. Im creating this program in vb.net which is supposed to be used on a lan, say we have PC 1, PC 2 and PC 3. The thing is, after the user selects which pc …

Software Development vb.net
Member Avatar for bingkoy21
0
104
Member Avatar for mbouster

Dear all, I need your help on tis programming assignment I have. I need to save all the atrributes information to a signle file. I need to have 2 options : Save to a default name backup.bak and to a users filename choice. I have found this code in an …

Software Development c++ file-system ios
Member Avatar for Tellalca
0
210
Member Avatar for tom_289

Code given below, suppose to give hourly pay * number of hours + if hours greator then 37 then calculate rest with given rate (overtime) and display final result but its just multiplying pay rate hourly with pay rate for overtime hourly and i made it in VS 2010 windows …

Software Development
Member Avatar for jaffar_ramnad
0
143

The End.