43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fredzik

G'day, Thanks Mr. Vegaseat, Jeff, Ene, Mawe for all of your great help so far...I'm slowly (very slowly!) getting used to Tkinter. But I'm again puzzled by how Tkinter does things. Some examples of code at the beginning say "from Tkinter import *" and some say "import Tkinter as tk" …

Software Development gui python tkinter
Member Avatar for fredzik
0
305
Member Avatar for smiles

Hi !!! I am doing a first C++ program, the way is getting the best choice between choices by comparison, here is my code [code] #include <iostream.h> #include <conio.h> #include <stdio.h> int main() { int i,n,m,k,j,tem,te; struct ways { char w[20]; } myArray[15],temp; int a[8]={0}; int b[8]={0}; textbackground(1); textcolor(15); cout …

Software Development c++
Member Avatar for smiles
0
96
Member Avatar for zandiago

Product expiration dates are often encoded using numbers and letters which encode the month day and year. A common technique is to use letters instead of numbers in the dates. Assume that ACME Bakers encodes the months using letters "A" through "L", each digit of the expiration date as the …

Software Development c++
Member Avatar for zandiago
0
118
Member Avatar for zandiago

I need to write a C++ program that can be used to calculate the date of any Easter Sunday which can be computed as follows; Let X be the year for which it is desired to compute Easter Sunday. Let A be the remainder of the division of X by …

Software Development c++
Member Avatar for zandiago
0
358
Member Avatar for hray35

I need help so bad. I don't understand enum and I have tried to take the code below and change it from the Switch to using an enum & an array to supposedly make it easier. I don't know how to take the user input that is string and put …

Software Development c++
Member Avatar for ~s.o.s~
0
2K
Member Avatar for Jaav

I have no idea why. The lines it's skipping is the system("PAUSE");. Not the first two but the last two. [code=c] #include <stdlib.h> #include <stdio.h> int main() { char Big, Small; Big='Z'; Small='z'; printf("Z=%d.\nz=%d.\n",Big,Small); system("PAUSE"); int X,Y; X=72; Y=104; printf("74=%c.\n104=%c.\n",X,Y); system("PAUSE"); double DblNum = 123.456; printf("f=%f.\nScientific=%e.\ntestF=%F.\n",DblNum,DblNum,DblNum); system("PAUSE"); char Newline = …

Software Development c
Member Avatar for ~s.o.s~
0
107
Member Avatar for aasi007onfire

consider the structure [code]struct gun { char name[50]; int magazinesize; float calibre; };[/code] i found in the site [url]http://www.cs.cf.ac.uk/Dave/C/node9.html#SECTION00900000000000000000[/url] that the tag (i.e gun) of the structure is optional.... in that case wouldn't there be a problem when we declare a variable of type struct or if we have more …

Software Development c
Member Avatar for Narue
0
100
Member Avatar for amitmistry_petl

Hi all ! what is the difference between Dll and process ??? amit

Software Development c++
Member Avatar for ThomsonGB
0
197
Member Avatar for Kashif

i want to calculate the running time of my program in C++ compilier TC300, please explain each point

Software Development c++
Member Avatar for Kashif
0
81
Member Avatar for aasi007onfire

when an array is received as a parameter by a function then whatever the dimensions of the array the first subscript is specified with empty braces i.e[ ] why is it so..... what is the implication of such a declaration [code] int sort(list[][a]) { /*statements*/ }[/code]

Software Development c
Member Avatar for thekashyap
0
96
Member Avatar for 4zlimit

I can't seem to resolve these errors. I have had people compile these codes on their computers with no problem, but I keep getting errors...can anyone help???? Here are the errors: cannot find symbol method setItemNumber(java.lang.String) cannot find symbol method setProductName(java.lang.String) cannot find symbol method setNumOfUnitsInStock(int) cannot find symbol method …

Software Development java
Member Avatar for thekashyap
0
186
Member Avatar for doel.jangkrik

I am trying to make text based blackjack game. I already made : - Card class which create new card based on integer - Deck class which consists of Deck LinkedList populated by Card. I also made 2 new LinkedLists for gambler and dealer. I already managed to remove elements …

Software Development java
Member Avatar for Ezzaral
0
172
Member Avatar for aasi007onfire

"We can also have null statements by just including a ; or let the switch statement fall through by omitting any statements (see e.g. below). The default case is optional and catches any other cases." i found these lines about the switch case statement in a site.... i couldn't understand …

Software Development c
Member Avatar for Narue
0
114
Member Avatar for sk8ndestroy14

Anytime I open Visual Basic 6 I need to add the common dialog box control to my tool box. Is there any way I can keep that in my toolbox every time I open visual basic 6 without having to add it every time?

Software Development visual-basic
Member Avatar for sk8ndestroy14
0
127
Member Avatar for Kashif

Any one knows different types of Prim's Algorithm Implementation.

Software Development algorithm java
Member Avatar for Kashif
0
84
Member Avatar for Jishnu

Hi, I am trying out a bank account program using the corejava package. I am getting a run-time eception when I create a new account & am unable to trace where the error is. Plz help. I am giving the code below. import corejava.Console;/******************************************************************cLASS bANKaCCOUNT REPRESENTING THE RUN-TIME MULTI-USER SYSTEM******************************************************************/public …

Software Development java
Member Avatar for Jishnu
0
153
Member Avatar for devesh9392

hi this is devesh, i have a perl cgi script that downloads files from other site. but i got this weired problem that the script stops responding after downloading exactly 100 files (any browser IE or Firefox). i am running this script from windows 2003 server with IIS 6.0 any …

Software Development file-system perl windows-server
Member Avatar for devesh9392
0
147
Member Avatar for kylcrow

Ok I am wanting to [URL="http://www.daniweb.com/forums/thread81491.html#"]download[/URL] the newest version of the gcc compiler and emacs or gedit to run with PowerShell. I was hoping that someone could give me detailed instructions on how to do so. I am using Windows XP. I believe this is the right place to ask …

Software Development c++
Member Avatar for kylcrow
0
151
Member Avatar for kylcrow

My work uses Powershell, I was wondering if someone can explain to me how to write c++ with it, if I even can, also what compiler to get for it, and where I can get it. Thanks -kylcrow

Software Development c++
Member Avatar for kylcrow
0
94
Member Avatar for aasi007onfire

i found that the limits of int and short int are the same........ i just want to know then what is the need of 2 with the same limits....

Software Development c
Member Avatar for ~s.o.s~
0
111
Member Avatar for Thinka

Hello again people, I've got some questions about timing that I hope can be answered by someone. I'm trying to use the functions [I]getrusage[/I] or [I]times[/I], or the [I]time[/I] command to time my programs. Now I've got this piece of code that uses getrusage, and my first question is a …

Software Development c
Member Avatar for Narue
0
1K
Member Avatar for ptaylor965

I have a SQL table with a list of forms (frmForm1, frmForm2) i have a listbox that fills from this table and i would like it to call the form in the 'FormToCall' Column How can i call a form if i only know the form name at runtime?

Software Development vb.net
Member Avatar for ptaylor965
0
132
Member Avatar for erlkz

i'am newbie on using Tkinter, and i need help for my application i make application small calculator, but i can't make it just like standard calculator on MS Windows please Help me i wan't my application calculator like this :

Software Development python tkinter
Member Avatar for vegaseat
0
93
Member Avatar for machine

Hi im using switch to access some member functions through object [U]s1[/U] of that class [code]switch(choice) { case 1: s1.Now(); break; case 2: s1.create(); break; case 3: s1.display(); break; case 4: s1.change(); break;}[/code] Is there a way to change/use only a part of a function? For example for case 2 …

Software Development c++
Member Avatar for machine
0
79
Member Avatar for Teresa_Hall

Hi all - First time posting so please bear with me. I'm in the last week of a C++ class and cannot figure out how to do this assignment. I need to evaluate each character of a string and process using a switch statement. The CASE processing I have no …

Software Development c c# c++
Member Avatar for Narue
0
238
Member Avatar for lotsofsloths

Ok, say im using the cmd prompt version of MSVC++(or the windows app type), how do i post a project on daniweb, HTML, or any other website(or like a quick luanch desktop icon)?

Software Development c++ first-post
Member Avatar for ~s.o.s~
0
325
Member Avatar for sadaka

Hello you guys. I'm very excited since I'm so close to finishing my project. However before I'm totally done I am kind of stuck on this error message when compiling. It says "[COLOR=red]cannot find -lobjc[/COLOR]." Have anyone seen this before? [U]What does it mean?[/U] I've added my entire code if …

Software Development c++
Member Avatar for Ancient Dragon
0
143
Member Avatar for Prozeen

Hi all, I have 3 labels, with 3 captions (i.e. integers)... Label 1 = 1 Label 2 = 3 Label 3 = 2 What I want to do is search all these labels and find out what the highest number is (in this situation it's 3) so that I can …

Software Development visual-basic
Member Avatar for Prozeen
0
442
Member Avatar for bops

Basically I'm writing a function to change all the '|' characters in a string passed as a parameter to '\n' characters. Seems simple enough to do, but I get one of those "Application has encountered a problem and needs to close. We are sorry for the inconvenience." messages. [code=c] char …

Software Development c++
Member Avatar for Narue
0
118
Member Avatar for dotcom123
Member Avatar for dotcom123
0
80
Member Avatar for sk8ndestroy14

This is just a simple question. There are four command buttons in a control array. I want to write code for one of them that changes the same property in the same way for all of them. When I tried doing this with just a specific button (I entered the …

Software Development visual-basic
Member Avatar for DenisOxon
0
162
Member Avatar for hbweb500

So Im trying to write some code that takes a chunk of text, splits it up into words, then puts these words into an array. What I have is: [code] string buf; stringstream ss(database); // database is my chunk of text while (ss >> buf) // Tokenize when whitespace met …

Software Development c++
Member Avatar for hbweb500
0
254
Member Avatar for hinduengg

Could you please give some info regarding - What are basically linked lists . I know that they can be used as arrays and stacks and queues. But confused a bit about FIFO and LIFO CONCEPTS. I cant understand how do we always access the stack from top.It is just …

Software Development c++
Member Avatar for hinduengg
0
114
Member Avatar for fernando22

ok i have a problem, like you can see in the code i already create a bidimesional array step by step..... ok i want to eliminate that, and instead of that i want to load the array from a .txt like this> 0-0-6-0-0-0-6-0-0-0 0-0-8-4-0-0-0-0-0-0 6-8-0-0-0-0-0-0-0-0 0-4-0-0-2-0-0-0-0-0 0-0-0-2-0-4-0-0-0-0 0-0-0-0-4-0-0-1-0-0 6-0-0-0-0-0-0-0-0-5 0-0-0-0-0-1-0-0-7-0 …

Software Development algorithm c++
Member Avatar for fernando22
0
189
Member Avatar for olufunkky

Please I need help with this program. I tried different approach, but doesn't seem to be getting no where. [B]QUESTION:[/B] [B]You've been going to work on a database project at work for sometime now. Your boss encourages you to program the database in Python. You disagree, arguing that Python is …

Software Development gui open-source python
Member Avatar for olufunkky
0
152
Member Avatar for JRM

Here is a snippet from an example on C++.com. They use what looks like a do loop. I tried putting it into their search, but nothing came back for "do". As far as I can tell it forces the loop intially, otherwise the while statement would cause it drop through …

Software Development c++
Member Avatar for JRM
0
116
Member Avatar for doraemon

What is the difference between "\n" and '\n'.? Also what is the difference between " " and ' '??

Software Development c++
Member Avatar for doraemon
0
86
Member Avatar for Lardmeister

I would like to reverse a sentence. I have this: [code=python]sentence = "a doctor kills your ills with pills and you with bills" print sentence[::-1] # sllib htiw uoy dna sllip htiw slli ruoy sllik rotcod a [/code]However, I would like the sentence reversed like this: bills with you and …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for hinduengg

HELLO THIS IS MY FIRST POST. I WISHED IF ANY ONE COULD HELP IN EXTRACTING WORDS FROM A CHAR ARRAY -STRING LIKE IF THE SENTENCE INPUTTED BY USER - [B]JACK WENT UP [/B] THEN I NEED TO PRINT THESE WORDS SEPARATELY ON FRESH LINES OUTPUT- JACK WENT UP [B] I …

Software Development c++
Member Avatar for Narue
0
3K
Member Avatar for phalaris_trip

Why does this not work, and are there other alternatives? This will eventually be used in a loop of sorts.. the different fileName's will be determined by the program in real time.. [code=cplusplus] #include <fstream> #include <iostream> int main (int argc, char** argv) { std::string fileName; fileName = "testFile.txt"; // …

Software Development c++
Member Avatar for ~s.o.s~
0
197
Member Avatar for Covinus

ive been trying to connect my c program and a postgre database using VC++. but i cant compile it because it cant find "postgres_fe.h". and also i cant find any tutorials about this one too. When i searched google, most are for linux. if anyone here knows some links to …

Software Development c c# c++
Member Avatar for ~s.o.s~
0
144
Member Avatar for tformed

I am to create a program in which the user puts in a word and the program displays the definition. The words are 20 words I select. I have a comon idea on how to achieve this, but I never scaned for text before. I know char is for a …

Software Development c++
Member Avatar for tformed
0
135
Member Avatar for wwillow

This is my first visual basic 5 project and it's for work not a school assignment. Any help is appreciated. I'm displaying lines from a file in a listbox and I'm highlighting each line according to a timer. I don't want any user clicking in the listbox, but when I …

Software Development visual-basic
Member Avatar for wwillow
0
113
Member Avatar for Matt Tacular

Can someone look at this and tell me if it actually is doing what it's supposed to. [php]from __future__ import division counter = 1 while True: li = [] for i in range(1,(counter+1)): if (counter/i) % 1 == 0: li.append(i) if len(li) <= 2: print counter,"is a prime." counter = …

Software Development python
Member Avatar for vegaseat
0
288
Member Avatar for anud18

hi.......can anyone tell me how do i call a subroutine created inside my dll from another project example:- i hv created a dll having a sub-routine named "initialize" in it .....when i call this sub-routine from my project after having made all the necessary declarations its giving me an error …

Software Development visual-basic
Member Avatar for QVeen72
0
152
Member Avatar for meiyantao

Hi,sir.I encounterred a person who said that C++ is an unsafe language.I try the follow code ,but when I input an non-int type,the program will fall in a bad loop.(gcc4.1 in Linux) [CODE] #include <iostream> #include <string> using namespace std; class bot { private: int password; public: bot():password(567){} virtual ~bot(){}; …

Software Development c++
Member Avatar for Narue
0
251
Member Avatar for alembic21

Hello, I have generated a group of random numbers but I can not figure out how to display the numbers in groups of 4. Any suggestions? [CODE]srand ((unsigned int) time(NULL)); int i, high, low, number; high = 47; low = 19; for (i=0; i<20; i++) { number = rand() % …

Software Development c++
Member Avatar for alembic21
0
126
Member Avatar for Zorbie

I read somewhere about somebody importing the sys.py module. I can't find the bugger on my system! I have python 2.5.1 installed on this Waxows XP machine. I did a search for sys.py in the c:\python25 folder and sys.py isn't there! Isn't it supposed to be installed by default? If …

Software Development python
Member Avatar for StrikerX11
0
159
Member Avatar for nalinibh

Hi everybody, Can anyone among you let me know.how can i find execution time of an algorithm in my c coding!! thanks Nalini

Software Development algorithm c c# c++
Member Avatar for Ancient Dragon
0
111
Member Avatar for sadaka

I have been stuck on this one problem for sometime now and I have tried looking this up in all my references but was not able to come up with a solution to this error. Can someone help me with it please. My gratitude to you in a thousand years …

Software Development c++
Member Avatar for sadaka
0
167

The End.