132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Shinedevil

I need to have a function like this: if (x == 1){ ... } do some amazing things. I need it to check to see if x == 1 through 380 or more. But I really don't want to waste 4 hours doing this: if (x == 1 || x …

Software Development c++
Member Avatar for Clinton Portis
0
141
Member Avatar for npn_

Sorry if this is a really easy question, but I've been going through control flows in the python documentation and something confuses me that it doesn't address. [CODE] a = ['Mary', 'had', 'a', 'little', 'lamb'] for i in range(len(a)): print i, a[i] [/CODE] When I type that in, it prints …

Software Development python
Member Avatar for npn_
0
88
Member Avatar for Instinctlol

So I need to find the highest and lowest for some numbers I am storing into struct [code=c] #include <iostream> #include <string> using namespace std; struct WeatherStation { string StationDesignation; double Temperature; } CA, FL, NY; // EXAMPLE, I WILL ADD A LOOP FOR FL AND NY int main() { …

Software Development c++
Member Avatar for Clinton Portis
0
506
Member Avatar for nccsbim071

I have a php website which i want to run in C# wpf webbrowser control. I have a validated a username and password for the site by connecting to it's database using .net. Now i want the functionality to take username and password and submit the post form to php …

Software Development asp.net php web-browser
Member Avatar for nccsbim071
0
657
Member Avatar for Krstevski

Hello guys, can someone tell me how can I get the values from the columns ? My sql table is: Table name: settbl Table columns: id, first (int), second (int) ...and now, I want to get the values from "first" and "second", but I got the error message "Object reference …

Software Development open-source sqlite
Member Avatar for Krstevski
0
4K
Member Avatar for Aild

From what I've googled, it seems like symbol reference errors are linking errors.. If I am wrong, please let me know. I'm trying to make a very simple program(DataReader.cpp) that takes inputs from a text file and saves them in a form specified in Data.cpp/Data.h. But I keep getting symbol …

Software Development c++
Member Avatar for Aild
0
186
Member Avatar for Jamalygirl

// I keep getting an error when it come time to input the hourly //rate. My code seems correct....anyone see what's wrong?? I can't //compile the rest of the code then either, which if frustrating //because I just put in some loops, and I'm not sure if they are //correct …

Software Development java
Member Avatar for cgeier
0
129
Member Avatar for drake2212

I am having an issue inserting the word into the correct list. Whenever I place a loop that loops while the file isn't at the end I get an infinite loop. Can I get some pointers on how to fix this? Here is the text file I am using: I …

Software Development c++ linked-list
Member Avatar for SriHanuman
0
505
Member Avatar for Phillipsmc

Hello everyone, I'm new to the forum and new to C++, or any programming for that matter. I've been trying to create suite of 4 functions one of which takes a string and converts it into an integer. I'm aware of the atoi function but we are not supposed to …

Software Development c++
Member Avatar for Phillipsmc
0
85
Member Avatar for Jordan Sinclair

I really need help here. This is for a class assignment, yet I'm not getting any help from anyone, anywhere, including my instructor. This is an online class, and he is never available. Since this is for a class, I need to keep things the way they are. Meaning that …

Software Development java storage
Member Avatar for BestJewSinceJC
0
153
Member Avatar for alizee67

Hi guys! I have an assignment for my C++ programming course. The deadline is 2009/11/1 ! (I know it's too late, but plzzzz!!) I would really appreciate it if you could help me. The problem is: Write a program which calculates and prints the area and circumference of a circle …

Software Development c++
Member Avatar for jonsca
0
148
Member Avatar for pdxwebdev

Ok, lets say I have a string [CODE] str = "main,sub,sub_sub" [/CODE] how could I use that to edit the value inside the dict [CODE] dicx = {'main':{'sub':{'sub_sub':'value to change'}}} [/CODE]

Software Development python
Member Avatar for masterofpuppets
0
116
Member Avatar for zyrus001

Having worked with txt files, I'm learning about binary now. My code below works for a while then bombs out, can you point me towards a method or module to read binary data line by line? The crypto module requires a buffer (don't know how to create one of those) …

Software Development python
Member Avatar for mn_kthompson
0
556
Member Avatar for tkud

Since i am learning c++ myself and only have access to ebooks(no credit card to buy books), i ask a lot of questions so please bear with me. Take a look at the following code:[CODE] //: C04:Cppcheck.cpp // Configures .h & .cpp files to conform to style // standard. Tests …

Software Development c c# c++ microsoft-access
Member Avatar for tkud
0
130
Member Avatar for TigerGirl

So, I just want to know how would I change a node to an int. In my public class I have a string, boolean, count, and a Map. I have to input a string in the class. So, in the int method I'm working on would I just call the …

Software Development java
Member Avatar for ryno365
0
88
Member Avatar for razo

hello, i need ur help.. define a CLASS PERSON TYPE that does: a. set the first name only. b. set the last name only. c. store and set the middle name. d. check whether a given first name is the same as the first name of this person. e.check whether …

Software Development c++
Member Avatar for VernonDozier
0
113
Member Avatar for knight604

Hi DaniWeb community, I'm trying to use the MultiCylinder class to instantiate and update the Cylinder objects that will print their radius and height. I also want to allow the user to input their own values for radius and height which will then calculate via the getVolume and getSurface area. …

Software Development java
Member Avatar for BestJewSinceJC
0
1K
Member Avatar for efecto

Hello all, i'm new to C++. I'm struggling to run this simple program.. I created a file called source.cpp that the code below. I have no other files in the same project.. Spec: Windows vista, Visual c++ 2008 compiler, 32bits [CODE]#include <iostream.h> #include <time.h> void main() { char sdate[9]; char …

Software Development c++ windows-vista
Member Avatar for jonsca
0
159
Member Avatar for razo

hello..i have homework and wish that i can find help here.. i needed on sunday to be solved.. plz help as much as u can. consider the definition of the following class: class CC { public : CC (); //line 1 CC (int); //line 2 CC(int, int); //line 3 CC(double, …

Software Development c++
Member Avatar for razo
0
138
Member Avatar for infinisource

Hello, I am new to C++ programming but not to programming in general. I have coded in VB, Java for a number of years. But C++ is a bit trickier than I expected. I have searched and looked over several threads on here pertaining to tokenizing and char to int, …

Software Development c++
Member Avatar for niXman
0
169
Member Avatar for Stefano Mtangoo

Hi all, can anyone point me to an offline MINGW installer? I want to fiddle with Eclipse CDT to see how it is doing compared to CodeBlocks. Also offline question: Does Aptana support C++ programming? It is based on eclipse and is found here [url]www.aptana.com[/url] Ahsante sana [Thanks a lot]

Software Development c++
Member Avatar for Stefano Mtangoo
0
4K
Member Avatar for Blondeamon

Greetings i have created the above class to create rooms and exits of the rooms. That way every room is linked to another room and i can move between them. Now what i want to do is to add an image to every room that is stored inside the class. …

Software Development image java java-swing
Member Avatar for quuba
0
133
Member Avatar for sneekula

I am still rather new to the Linux OS and need some detailed advice on the installation of Python3.1 on my Ubuntu machine. Python3.1 is not in the Ubuntu package repository yet.

Software Development python ubuntu
Member Avatar for pdxwebdev
0
1K
Member Avatar for Burnout

Hey, I'm studying c++ programming at university at the moment. We've recently moved onto arrays - which I understand mostly. I have no problem displaying information from an already set array, e.g. [CODE]int storage[5] = {1,2,3,4,5};[/CODE] However, I'm having problems when adding my own data to an array within the …

Software Development c++ storage
Member Avatar for restrictment
0
122
Member Avatar for mshravs

i have a problem here. I need to change the year automatically...ie i have given year 2009 in the text box, but it should change along with the change of the year................do anyone know the code for this......if so please help me thnks

Software Development vb.net
Member Avatar for mshravs
0
92
Member Avatar for godsgift2dagame

Hello Daniweb, This is my first official "help" thread. I'm currently attempting to read a file that has the following code: [CODE]8 split 1 9 1 spare 7 2 10 strike 8 2 spare 6 split 2 7 3 spare 10 strike 10 strike 10 turkey 8 1[/CODE] and have …

Software Development c++
Member Avatar for godsgift2dagame
0
186
Member Avatar for turbeauxpete

Hello all; I'm new to this list & C++. I am looking for a windows XP compatible editor (free is best). I tried to download Borlands C++ 5.5 but unable to get the email that is supposed to come (I see others have had the same problems). I'm just trying …

Software Development c++
Member Avatar for Dave Sinkula
0
95
Member Avatar for eddy_boy

Hi, Any advice please. I have various forms (e.g. frmCustomers, frmProducts), each having bindingSources and tableAdapters. The forms have the required Fill methods triggered from their constructors. It appears that the DataTable filled only exists in the App for as long as the form does. What I want is a …

Software Development dataset
Member Avatar for sknake
0
1K
Member Avatar for pdxwebdev

[CODE] def doKey(e): print(e.widget.get("1.0","end")) root= Tk() root.title('yada') txta = Text(root, width=40, height=10) txta.bind("<Key>", doKey) txta.pack(side=LEFT) root.mainloop() [/CODE] Pressing a key in this text area will always output the string prior to your pressing the key. Am I missing something?

Software Development python
Member Avatar for pdxwebdev
0
144
Member Avatar for svkers

Hey *.*, is it possible to get the current "Program Counter" of another running program? If it is, how can it be done? Thanks for any hint! svkers

Software Development c
Member Avatar for gerard4143
0
148
Member Avatar for BattlingMaxo

I am a complete newbie to python but know some c++ Was wondering where i can get my hands on a 3D script for schooling(like fish) BattlingMaxo

Software Development python
Member Avatar for vegaseat
0
95
Member Avatar for Wtyy

I am writing a guessing game, player could only enter number ten times, after that, a "End" message should print. the random name =ran1 your enter number = a count the enter times = b I wrote : if ( ran1 != a) { b++; } printf("the count number: %d", …

Software Development c
Member Avatar for Dave Sinkula
0
168
Member Avatar for cole davidson

Hi guys. I am trying to write a program that asks the user how many test scores they have, then reads the test scores, averages them, then displays the average and a pass/fail grade (50+ is a pass), using a seperate function to average the input values. I have been …

Software Development c++
Member Avatar for cole davidson
0
614
Member Avatar for Sandar Khin

Hi all, I have two programs.One is for scrolling text.Code is here [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; class MarqueeTest { public static void main(String[] args) { MyFrame frame = new MyFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } class MyFrame extends JFrame implements ActionListener { private ActionListener listener; private Timer t1; …

Software Development java java-swing
Member Avatar for quuba
0
134
Member Avatar for Java-newb

I am getting errors in my action listener brackets that I do not get, can someone help me please?? My buttons are not working, not sure what's happening. plus when I try to write [code] newGUI();[/code] I get another errors saying it cannot find the symbol, but my method is …

Software Development hard-drive java java-swing
Member Avatar for javaAddict
0
138
Member Avatar for yorro

How do I Load an excel file to the PrintPreviewDialog? [CODE=vb] Imports Excel = Microsoft.Office.Interop.Excel Private Sub btnPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintPreview.Click Dim xlApp As Excel.Application Dim xlWorkBook As Excel.Workbook xlApp = New Excel.ApplicationClass xlWorkBook = xlApp.Workbooks.Open(Application.StartupPath & "report_summary.xlsx") MyPrintPreviewDialog.Document = xlWorkBook If MyPrintPreviewDialog.ShowDialog() = …

Software Development microsoft-office vb.net
Member Avatar for yorro
0
217
Member Avatar for masterofpuppets

hi all, I am designing a text editor program in Python using Tkinter and I was wondering if there's any way to get the current line number when the mouse is clicked somewhere on the text field, i.e the mouse position should determine the current line, like in the python …

Software Development python tkinter
Member Avatar for masterofpuppets
0
962
Member Avatar for procomp65

Hi I have written a program that gets data from hardware over the serial port. The data varies from 15 seconds to 5 hours worth. I work out how many milliseconds the thread.sleep needs to be with a while loop and update a progress bar. The problem is that on …

Software Development
Member Avatar for procomp65
0
307
Member Avatar for William Hemsworth

Here's a function that manually converts an integer to any base between 2 and 36, the parameter list is: [CODE]void toBase( int value, // Integer value to convert char *target, // Pointer to a large enough buffer int base, // Base (from 2 to 36) int fixedDigitCount // The minimum …

Software Development c++
Member Avatar for William Hemsworth
0
213
Member Avatar for BenJammin89

simple little program from a book. One of the exercises is to modify it to use displayMessage to output the "Welcome" message and the name of the Professor. Problem is everytime I do it the name of the Course and the professor are the same. What am I doing wrong? …

Software Development c++
Member Avatar for BenJammin89
0
81
Member Avatar for M.Jama

I'm too new in java and I always appreciated when you share with me your knowledge. Here I'm trying following self-test exercise; Give two declaration for two variables called feet and inches.Both variables are of type int and both are to be initialised to zero in declaration. I try this …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for mcmillan0520

Hi, In my app I have a group of checkboxes which represent different settings. I want to be able to load and save these settings into the program, and that works just fine. However I'm having trouble updating the checkboxes to show the settings. If I load the settings, only …

Software Development
Member Avatar for DdoubleD
0
176
Member Avatar for gotherthanthou

I am using C# in Visual Studio to modify an ASP web application. The application is currently using SQL Server as it's database. SQL Server is way overkill for this application. We're talking 1 table, maybe 40 - 50 records, with maybe 2 add/modify/delete transactions a week. I'd like to …

Member Avatar for sknake
0
116
Member Avatar for Israelsimba

i have created a database for subscriptions in MS Access 2007. I want to link it with my forms using the code below but its saying unrecognised database format. [B]Dim conn As Connection Set conn = New Connection conn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\subscriptions2.mdb".......[/B] Now i have converted it to Access 2000 format …

Member Avatar for AndreRet
0
165
Member Avatar for VINOD_2553

Hi i am working on a sotre inventry project. I just want to fill grid from my ms accsess data base but i can not understand what i can do please help me in deeply it is very urgent

Software Development visual-basic
Member Avatar for AndreRet
0
165
Member Avatar for nandini vishuu

how to write a c programme to print the numbers in following way 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 please help me

Software Development c
Member Avatar for karthik viswam
0
191
Member Avatar for icedece

Hi guys i'm working on some code whereby the user inputs a distance and time they took spent running for days 1 to 6 and it works fine however I can't get it to display a message box if the user inputs letters instead of numbers. I've had a go …

Software Development visual-basic
Member Avatar for AndreRet
0
126
Member Avatar for Golam Kausher

The program will give the following output 55 45 36 28 21 15 10 6 3 1 0 Now, I have managed to print only the followings: 55 45 36 28 21 // This line with some kind of error though it ran. Now what should be the addtional codes …

Software Development java
Member Avatar for javaAddict
0
118
Member Avatar for Salman Attari

I have one combo box “cboitemname” and one text box “itemcode” in vb6 form,I have a table “stock” in sql server 2000 database where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should …

Software Development visual-basic
Member Avatar for AndreRet
0
91
Member Avatar for chuppy

hi..can anyone explain to me?? i am very confused abt this two.. for example; iint m [] = { 3, 2, 5, 2 }; int k = 0; System.out.println("(a)" + m[ k++ ]; System.out.println("(a)" + m[ ++k ]; *i compiled..but i dun understand why is the result 3 and 5 …

Software Development first-post java
Member Avatar for javaAddict
0
89

The End.