132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rjbrjb777

helo, my file r.csv is as follows 07 02 2011 09 05 2011 .. .. i don't know what is error. but the function is not being called.. [CODE] #include<stdio.h> #include<stdlib.h> #include<math.h> #include<conio.h> int calday(float,float); int main() {// main start FILE *in, *out; char *rdf,*wdf; char day[10],mon[10],year[10]; float Day,Mon,Year; rdf="A:\\r.csv"; …

Software Development c
Member Avatar for rjbrjb777
0
162
Member Avatar for PinoyDev

Hi Guys! I just need a little help on how to detect if a form is open or loaded.? When it is loaded or open, i want it to show or visible when a button is click.. Something like this... [code=vb] if frmisOpen(frmname)=true then 'show or load the form end …

Software Development visual-basic
Member Avatar for PinoyDev
0
270
Member Avatar for kishorerp

am working on creating a python script to find Installed programs in Uninstall folder in registry, the script works perfectly fine on 32 bit machines but errors out with a wmi error on 64 bit machines. Am not able to get hold of a wmi module for python on 64 …

Software Development microsoft-windows python
0
160
Member Avatar for FanionGolfer

Hey Im just wondering if anyone could help me with this timer project Im working on... The purpose of this project is to keep tract of the time a classroom of students is working, not working and then total time of the class. So far I have only the seconds …

Software Development vb.net visual-basic
Member Avatar for WaltP
0
337
Member Avatar for geoffy0404

so this is my final grade calculator that i turned in, and my teacher came back and said my IF/ELSE structure was Malformed, Is there something i did poorly, or wrong, what can i do to make it better. any suggestions will be taken accounted for [CODE]#include <stdio.h> int main() …

Software Development c c# c++
Member Avatar for abhimanipal
0
220
Member Avatar for rohan_k

Hi... i have A File And I Want to read the file and store all of its data in a single file what should i do... Please help.... A C Code Snippet would be very helpful

Software Development c
Member Avatar for abhimanipal
0
244
Member Avatar for arjen

hello guys, I have a problem wiht my vb studio 2008 .When I reformat my laptop to window 7 64bit the problem is that my program "internet cafe" on first run there is so could vshost.exe not working problem then when i cancel it show another warning about the program …

Software Development vb.net
Member Avatar for arjen
0
210
Member Avatar for mpike

Ok! so im making a simple highscore type thing. the person plays the game and receives a score within the game. At the end of the game i have it currently comparing the score received with the score already in place within the highscore text file. the problem im having …

Software Development c++
Member Avatar for arkoenig
0
153
Member Avatar for sam.udo

i was asked to create a binary tree,populate it with the elements of a given array,sort it and output the items in the tree using post order,i can handle the rest except the populating of the tree with the elements of a given array since i was asked to insert …

Software Development java
Member Avatar for Taywin
0
234
Member Avatar for manutd

This is a function that will find the factors of a given number for you. EDIT: Better algorithm using vectors (thanks all at cprog :) )

Software Development algorithm c++
Member Avatar for lxXTaCoXxl
0
181
Member Avatar for New2Java2010

I am working on a homework assignment where I have to read some annual income numbers from a text file, then determine how much tax is owed assuming the tax bracket is 30%. I am having a couple issues with my code. First: when the message dialog trys to print …

Software Development file-system java java-swing
Member Avatar for New2Java2010
0
207
Member Avatar for programing

hi . plz I need you to explain for me how i can write a function that return the mod of array with n value . i think mod is that sample mode is it ? i am try to solve . but my code print the number taht is …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for bumsfeld

This Python snippet shows you how to take typical beginner's example of prime number function and work on improving its speed. The decorator function for timing is ideal tool to follow your progress you make. The improvements are commented and you are encouraged to make further improvements. Python is fun!

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for tukky

Im working on a project for college. The form im working on allows the user to edit the details of a customer. I have the following code attached to the EDIT button [CODE] EditCustomerTable.Clear() EditCustomerConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=QuickQuotes.mdb" EditCustomerConnection.Open() EditCustomerAdapter = New OleDb.OleDbDataAdapter Dim SQL As String = "UPDATE Customers …

Software Development open-source vb.net
Member Avatar for tukky
0
261
Member Avatar for Michael_Tanner

I've been snooping around trying to figure whether or not this was completely safe. I've noticed that if you were to simply "delete this" you might have occurrences where the deleted pointer is still in use elsewhere in the program. To prevent this, you'd need to dereference it and perform …

Software Development c++
Member Avatar for Michael_Tanner
0
150
Member Avatar for romi_001

Program Description: This program sorts an array of various sizes that has random numbers with duplicates in it. This program uses two sorting methods to sort each of the arrays the merge sort and the shell sort method. This program also calculates the time taken to sort each of the …

Software Development java
Member Avatar for Taywin
0
421
Member Avatar for ticktoc09

My program is just a simple Quiz game (100% running) w/ 50 questions. My question is do i really need to flowchart all 50 Question? All 50 Questions got the same format. Printf, Input Answer, If,else if statement and so on. I hope you can help me and give me …

Software Development c
Member Avatar for WaltP
0
87
Member Avatar for hohoho89

Ok so now be patient and respectful because this is the first time I've used ncurses. But here's my story. I'm making a application using the ncurses. and I just realized one thing. Whenever I used initscr(). I get approx over 70 000 memory leakage. Any suggestion on what I …

Software Development c
Member Avatar for hohoho89
0
2K
Member Avatar for amatech

Hi guys, I am new to java and I need to create a a singly linked circular list in java with the following methods: insert new node, delete node, get next node, get first node and create empty list. Here is what I have so far and I am not …

Software Development java linked-list
Member Avatar for amatech
0
565
Member Avatar for nory22

hi there am wondering about the space between the [COLOR="red"]"[/COLOR] and the [COLOR="red"]%[/COLOR] scanf([COLOR="red"]"[/COLOR] [COLOR="red"]%[/COLOR]c",&choice); what's the different if i leave no space?

Software Development c c++
Member Avatar for Narue
0
137
Member Avatar for LevyDee

I am writing an importer for a custom export script to load mesh information for models. I tested my algo with small files, 20-30 kb of information with success, but when I try something bigger like 400kb(not that big mind you), the file fails to open. This is the significant …

Software Development c++ file-stream ios
Member Avatar for Kanoisa
0
148
Member Avatar for bettybarnes

hi guys, uhm this question of mine is just a simple one hmm how do i concatinate this? i have a textbox with 2 radiobuttons namely: AM and PM when i put time (e.g. 4:15) and check am the text AM should be concatinated in the textbox my code is …

Software Development vb.net
Member Avatar for bettybarnes
0
204
Member Avatar for n3red

So here is my code: The purpose of this code is to take all the plain text in all capital letters in the vitranc.txt file and turn them all in to lowercase characters. Now to my knowledge i can do this with "tolower" function but: when i add tolower in …

Software Development c c# c++
Member Avatar for gerard4143
0
112
Member Avatar for ntrncx

ok lets say that we have the numbers 5,67 and 128 (the numbers are randomly entered) i want in first loop read the last digit means 5,7,8 in the 2nd pass i want the tenths so will be 0,6,2 in the 3rd will be 0,0,1 and so on. what i …

Software Development c++
Member Avatar for ntrncx
0
208
Member Avatar for Rahul Das

Hi, I have an problem with connecting Oracle 10g express edition with java. I am accessing my Oracle 10g with the following URL: localhost:8080/apex I am using the following code: [CODE]try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:8080:xe","hr","hr"); System.out.println("Connected Successfully To Oracle"); con.close(); } catch(Exception ex) { ex.printStackTrace(); }[/CODE] Is the …

Software Development java oracle
Member Avatar for Rahul Das
0
819
Member Avatar for Szeth

Hello, I have this on going project for my C++ class, dealing with a random number generator guessing game. I'm on the last step, finally. I gotta add functionality to output the array of guesses to a file after the answer has been guessed, and I need to include exception …

Software Development c++
Member Avatar for Szeth
0
221
Member Avatar for narlapavan

first i am creating socket, with that socket descriptor i am sending some no. of bytes through sendto(....) function. At the time of receiving through recvfrom(....) function, my code was hanging if the specified destination address is not available. Suppose if destination is available the it's working correctly... Why this …

Software Development c++ socket-programming
Member Avatar for dkalita
0
225
Member Avatar for UltimateKnight

Hey. As you know I'm a newbie in C++ and I'm learning from some source codes and eBooks. I don't know if the problem is to me but when I try to compile the code an error shows. I don't know if I should copy this code but I read …

Software Development c++ ios open-source
Member Avatar for UltimateKnight
0
330
Member Avatar for az_ez

I've been trying the last few days to get this code to work but it still wont return the exact numbers. Its always atleast like 10 characters off and it probably is a trivial answer but I cant find the solution. I've initialized the charCount to 0 but still it …

Software Development c++
Member Avatar for WaltP
0
135
Member Avatar for magnetpest2k5

Hello all, suppose I have a string which i have retrieved using the regex like the following [CODE] string_feature = '<div class="BVRRLabel BVRRRatingNormalLabel">Customer Rating</div><div class="BVRRLabel BVRRRatingNormalLabel">Value for Price</div> <div class="BVRRLabel BVRRRatingNormalLabel">Picture Quality</div> <div class="BVRRLabel BVRRRatingNormalLabel">Ease of Use</div> <div class="BVRRLabel BVRRRatingNormalLabel">Features</div>' [/CODE] What will be the regular expression to get the …

Software Development python regex
Member Avatar for snippsat
0
116
Member Avatar for alex9292

Hi im getting a "An object reference is required for the non-static field, method, or property 'RealEstateSalesPerson.rate" error when i compile and i cant figure out how to fix it any help appreciated thx. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; public interface ISell { string SalesSpeech(); double MakeSale(); …

Software Development
Member Avatar for Momerath
0
419
Member Avatar for liran

Hye Does the GC clear memory of running threads with no reference to them ? Consider the following code: [CODE] Thread t = new Thread()... t.start(); t = null; . . . [/CODE] Suppose 't' runs forever, and the rest of the program runs forever - will the GC clean …

Software Development java oracle
Member Avatar for liran
0
170
Member Avatar for Igor Vinícius

Hello World, I'm a c++ beginner and i've diced to study. So this is my first code: [CODE] #include <iostream> using namespace std; double d = 2.2; int i = 7; void some_function() { d = d + i; i = d * i; printf("%d\n", d); printf("%d\n", i); } int …

Software Development c++
Member Avatar for Igor Vinícius
0
156
Member Avatar for taumang

i want to know the sequence of values tobe printed out by this algorithm count = 0 while(count<2) print the value of x x=x+2 else print the value of x my answers are as follows 0;2 i need clarity

Software Development algorithm c++
Member Avatar for taumang
0
108
Member Avatar for nickliutw

I'm writing a method for integer power which is something like this 2^4 read in program like 2*2*2*2 without using the math class method. I tried to use several different ways to write, but I think can't figure out where I did wrong. I know I'm close to what it …

Software Development java
Member Avatar for nickliutw
0
121
Member Avatar for DaniwebOS

Regardless of what I do, the program won't run without crashing... any luck on how to fix it? [CODE]#include <iostream> #include <string> using namespace std; class DayOfTheWeek { public: void setDay(string); void printDay(); string getDay(string&); string plusOneDay(int); string minusOneDay(int); string addDays(int); private: int day; int toNumber(string); string toName(int); }; int …

Software Development c++
Member Avatar for jonsca
0
108
Member Avatar for moroccanplaya

hi i am just wondering how would you send a website through a socket as i am trying to make my own web server. do you just open up the file, read the file and write out to the socket ? [CODE] openfile = open(home/username/www/index.html, "r"); n = read(openfile,buffer,256); n …

Software Development c html-css web-server
Member Avatar for moroccanplaya
0
83
Member Avatar for Lelly

Hello, I started my homework and I couldn't complete it. Can anyone help me with it?? the question is: Implement the depth-first search algorithm so that it accepts input from text file in the following format: List all distinct vertex symbols (use just a single symbol: A-Z and 0-9) one …

Software Development algorithm c++ ios seo
Member Avatar for mike_2000_17
0
185
Member Avatar for NewOrder

i have 2 classes. one is a partial class belonging to winform, and the other is a code class of chess. problem , is that my enums arent being triggered , or they reset themselves.. okay, so in the code class i have got this: [CODE] class PiecePromotion { PromotionPieces …

Software Development
Member Avatar for NewOrder
0
142
Member Avatar for NV43

In my set.h file - template(class T): [CODE]template<class T> class set { public: void add(const T& item); private: } #include "set.template"[/CODE] In my set.template file: [CODE]template<class T> void set<T>::add(const T& item)[/CODE] In my main.cc file (where cset1 and cset2 are both set<char>): [CODE]cset1.unian(cset2);[/CODE] The error: [CODE]error: no matching function for …

Software Development c++
Member Avatar for mike_2000_17
0
171
Member Avatar for Tinee

I have made a program which the user will input the total inputted numbers and record it as an array, sort the biggest and smallest number, post the original inputted number, reverse the original's order, and lowest to high order. I have done the recording, sorting, however, when the program …

Software Development c++
Member Avatar for Arbus
0
177
Member Avatar for daviddoria

I am working on some code (not written by be, and too big to fundamentally change the structure of) where a pure virtual Image class is implemented. The user is expected to implement a function of their derived Image class with signature: [code] virtual Rgb* GetRgb(); [/code] Where the Rgb …

Software Development c++ data-structure
Member Avatar for mike_2000_17
0
278
Member Avatar for nory22

Hi there i have wrote a program ,The user can only Choose the letter S for square or R for rectangle.. i have done every thing as you can see ... the only problem that am having is if the user puts 's' small letter also 'r' small letter .. …

Software Development c c++
Member Avatar for Arbus
0
186
Member Avatar for Tarkenfire

I'm doing a rather convoluted project for a class regarding looping structures and have run into a novice-ish logic error that I can't figure out. The error being that the following loop never ends: [code=java]//get transaction values and perform actions. try { sentinalValue = Double.parseDouble(JOptionPane.showInputDialog ("Enter transaction now. Enter \"-1\" …

Software Development java
Member Avatar for Tarkenfire
0
187
Member Avatar for tempvbacct

I need to figure out a piece of code to use to complete my project. I have attached a screenshot of the form and I labeled the important components to what I'm trying to accomplish. The form allows to user to add/remove books to a shopping cart which is the …

Software Development vb.net
0
63
Member Avatar for danholding

continued from this thread! [url]http://www.daniweb.com/software-development/python/threads/353210[/url] i have a file which i am currently working on which will remove all pipes and replace them with a comma. that all works fine it the second bit i am currently stuck on.. i need to remove the first two CAPITAL letters from the …

Software Development python
Member Avatar for danholding
0
146
Member Avatar for highflyer8

Any method (within a C++ class) that prints to a file or to a screen has a return type of void. What role does the keyword [I]void[/I] perform?

Software Development c++
Member Avatar for Fbody
0
313
Member Avatar for Japus

Hello I'm trying to create a cross platform application to control a robot. Everything went relatively easy but I got stuck when trying to set a few properties that are Mac specific. They use the 'com.apple.eawt' package which obviously isn't available on Linux or Windows. I need to set the …

Software Development apple java operating-system ruby
Member Avatar for mKorbel
0
260
Member Avatar for arezz09

first.. i hve create combobox & text box and add database source to my project... i know how to binding data or load data to combobox using SELECT query.. but can i change SELECT to INSERT query cz i wont when i type data into textbox,data will be in database... …

Software Development vb.net
Member Avatar for Jx_Man
0
108
Member Avatar for neosonic

Sorry, maybe I post this in the wrong section. But, I hope it is simple enough to be answered :) I have .dot ms word template with mailto hyperlink. something like: [U]neosonic@neosonic.com[/U], link to mailto: [email]neosonic@neosonic.com[/email] I have tried to edit it manually in the .dot file, and that mailto …

Software Development perl visual-basic
Member Avatar for AndreRet
0
354

The End.