132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for thedoodler

Hello. I'm still fairly new with C++. I started on a code with a friend, but I'm still very unsure about setting up loops and such. Some help on where to go next with this problem would be much appreciated! This program requires you to input information about vehicles in …

Software Development c++
Member Avatar for Kanoisa
0
1K
Member Avatar for manzati93

Hi All! I'm creating a program using Python and compiling it with py2exe. I've the same problem of this topic, but I can't solve it because GUI2exe is not supported by Python26. [url]http://www.daniweb.com/forums/thread224403.html[/url] How could I solve this problem?

Software Development python
Member Avatar for manzati93
0
146
Member Avatar for danielair

Okay, I'm creating a webcam capture program that will take pictures and record video. The picture part works perfectly but I can't get the video part to work. No matter what I try it won't save the AVI file Heres my code [CODE] OOption Explicit On Imports System.Runtime.InteropServices Public Class …

Software Development vb.net video webcam
Member Avatar for Oxiegen
0
761
Member Avatar for tong1

The following project is considered appropriate for a graduation dissertation in Computer Science Graduation project if the supervising professor is good in Java An English Word Statistics in Java The function may include: 1. To ask client to select a text file to open (FileDialog would be good to start …

Software Development gui java linked-list
Member Avatar for peter_budo
0
589
Member Avatar for Anyzen

i have a code that reads lowest and the highest number with inputs that are all Integer but, once i have an input (ex. apple 200)...it wont read anymore, need help in what to input code that ignores letters [CODE]//reads numbers only ex. 100 200 300 int main() { ifstream …

Software Development apple c++
Member Avatar for Kanoisa
0
149
Member Avatar for pythonbegin

Hi All I have two tab-delimited files. I want to compare first column of testfile1 to first column of testfile2 to find if items in file2 are in file1 and write it to the new file. I have a following code but not working!! :(. [CODE]f1 = open('testfile1.txt') #f2 = …

Software Development python
Member Avatar for TrustyTony
0
775
Member Avatar for bunty_kkp

1. Define a structure called cricket that will describe the following information Player name Team name Batting average Using cricket, declare an array player with 10 elements and write a program to read the information about all the 10 players and print a team wise list containing names of players …

Software Development c encryption
Member Avatar for Nick Evan
0
243
Member Avatar for acrocephalus

Hello! I am trying to write a function that looks for a desired string pattern within a table (Countries). Look at the code. [CODE]def selectCountry(): print 'Enter country:' country = raw_input('> ') sql = '''select idCountries,CountryEn from Countries where CountryEn REGEXP '%s'''' cursor.execute(sql,(country)) result = cursor.fetchall() rowHead = 'Country ID','Country …

Software Development mysql python
Member Avatar for acrocephalus
0
362
Member Avatar for acrocephalus

Hello! I have this simple funcion [CODE]def newUser(): print 'Choose a username?' Username = raw_input('> ')[/CODE] The variable 'Username' has to be used by other functions. How can I do it? Cheers! Dani

Software Development python
Member Avatar for acrocephalus
0
10K
Member Avatar for daudiam

b=c/d++; In this, first d is incremented (because ++ has a higher priority than / or =), but c is divided by the unincremented value of d. Thus, the order of evaluation in this case is well-defined. But if we had written the above as: b=(c)/(d++) then which operand ( …

Software Development c
Member Avatar for daudiam
0
242
Member Avatar for NH1

Im looking to Delete a row of information in my datagrid, but also from my database. im not even really sure where to start. I want to use a button to do this. so that when i highlight a row, then click the button it brings up a message box …

Software Development gui vb.net
Member Avatar for ious
0
383
Member Avatar for markthien

Hello, I have created a datagridview with first column is checkbox like below: [CODE] dgv.Columns[0].Visible = false; dgv.Columns[1].HeaderText = "Name"; if (dgv.Name.Equals("dataGridView1")) dgv.Columns[1].Width = 100; if (dgv.Name.Equals("dataGridView2")) dgv.Columns[1].Width = 145; dgv.Columns[2].HeaderText = "Mobile Number"; dgv.Columns[2].Width = 115; dgv.Columns[3].HeaderText = "Date Added"; dgv.Columns[3].Width = 95; dgv.Columns[4].Visible = false; dgv.Columns[5].HeaderText = "Group"; …

Software Development
Member Avatar for Geekitygeek
0
1K
Member Avatar for virusisfound

Hello, I want to set the background image of form as per user selection. for that i have take openFileDialog but it only show the wallpapers when i click on open button it not applied to form. it show an error message that [B]"path not found"[/B] [B]this code is on …

Software Development
Member Avatar for hirenpatel53
0
119
Member Avatar for markthien

Hello, I have created a query as follow in ms access: [CODE]SELECT cont.id, cont.name, cont.mobile_num, cont.date_created, memb.group_id, grp.name FROM (contact AS cont LEFT JOIN contact_group_member AS memb ON memb.contact_id=cont.id) LEFT JOIN contact_group AS grp ON grp.id=memb.group_id WHERE cont.removed=False ORDER BY cont.id DESC;[/CODE] and I created a 2nd query to query …

Software Development dataset
Member Avatar for Geekitygeek
0
141
Member Avatar for soum_cbs@yahoo.

i have made a Session which has as the EmailId as the session name....now i want to retrieve data in the user profile page ....which means the particular logged user will get to know their personal information....how do i do it???plz help n.b:the database has 1 table only where EmailId …

Software Development session
Member Avatar for hirenpatel53
0
84
Member Avatar for litlemaster

Hello buddies, I have two datagrid views on my form. The first datagridview is bound to a table named contacts. And the second one is bound to a different tables say Group_members. Now My problem is that I want to add the selected row in DataGridView1 to datagridview2. And later …

Software Development
Member Avatar for Geekitygeek
0
267
Member Avatar for mono_jit23

How can I use 'like' keyword with wildcard characters(*) in RecordSelectionFormula of crystal report? [CODE] rptdoc = new ReportDocument(); rptdoc.RecordSelectionFormula = " {View1.RefNo}= '" + textbox1.Text + "'"; [/CODE] I need to use 'like' instead of '=' .....

Software Development
Member Avatar for finito
0
99
Member Avatar for acrocephalus

Hello! I have written a program where you have to give the path to directories and files as input. Is it possible to enable any kind of auto-completion when running the program? Cheers! Dani

Software Development python
Member Avatar for cronos4d
0
92
Member Avatar for Kingcoder210

I am trying to run my program to test it. Actually I am trying to run second form to see it that its working properly or not. But it shows me error. First time I got this error message "Exception of type 'System.OutOfMemoryException' was thrown" & second time I got …

Software Development vb.net
Member Avatar for fourty
0
152
Member Avatar for tong1

Palindrome is a popular title for programming training. You may compare a pair of chars in a string, or a pair of words in a String array. Many homeworks are made in this way. Further more, in Java we may play with all the speaking languages in the world, such …

Software Development java java-swing
Member Avatar for tong1
0
158
Member Avatar for c++learner

Hello, I've copied a multiarray into another multiarray and can't figure out how to convert an int of 1 into an asterik which is ascii 42 I believe. I need help to replace all 1's to an asterik. I've tried static cast which my instructor suggested but I must be …

Software Development c++
Member Avatar for jonsca
0
188
Member Avatar for erozero

Hi, my assignment asked me to make a 3 row, 7 column array that asked the user to input amount of food for 3 monkeys. 7 represents the number of days. It should tell the user the average, highest and lowest amount for this.. Here is what I've got so …

Software Development c++
Member Avatar for erozero
0
188
Member Avatar for Vshayan

Hi guys, I'm looking for any help in converting image files to video files by reading a full image folder using C# .Net 2.0 onwards. thanks, Vishnu Shayan

Software Development image video
Member Avatar for Teme64
0
221
Member Avatar for mhs.praveen

Hi I am having a requirement in my project where User press '.' in his num pad and he wants the character ',' to be displayed (dats bcoz he is French User). I tried changing the e.KeyCode but it is a readonly property. Is there any other way to change …

Software Development vb.net
Member Avatar for mhs.praveen
0
95
Member Avatar for googles_go~

[code] if (infile != null) { infile.Close(); } if (reader != null) { reader.Close(); } //Creating a File Stream object to Open a file called FILENAME for writing outfile = new FileStream(FILENAME, FileMode.Append, FileAccess.Write); //Creating a Stream Writer with the outFile File Stream object writer = new StreamWriter(outfile); writer.Write("Income : …

Software Development file-stream
Member Avatar for jonsca
0
138
Member Avatar for westony

Can you help me to start with them I cant find any information about them the exactly thing i need its Array of pointers where the pointers are pointing a menu like this idea below. Pls just help me with the syntax ...

Software Development c
Member Avatar for kings_mitra
0
88
Member Avatar for therobot

I've got a program that has three different classes, all of which have their own pointer to an class called ObsFileName, who's main functionality is to store the name of an output file individual to the class, and return it with a function value(). All throughout the program, when a …

Software Development app-store c++ ios
Member Avatar for therobot
0
140
Member Avatar for RAHUL JOSHI

Hi All, I am Working in C#.Net Technology (Window Based Application).My Problem is that ,I Want to display a Image in DataGridView cell.Iam able to display different Images In different cell of particular Column,But my problem is that Iam getting the image of a Exact Size.What I wan is to …

Software Development image
Member Avatar for Padma Prajapati
0
283
Member Avatar for ueoptimum

[CODE]import java.io.*; public class inout{ public static void main (String[] args){ int a; BufferedReader num= new BufferedReader(new InputStreamReader(System.in)); try {System.out.println("Enter a number: "); a = integer.parseInt(num.readLine()); System.out.println("THE NUMBER IS" + a); } catch(IOException e) {System.out.println("ERROR"); {}}[/CODE] [CODE]import javax.swing.*; public class jopt{ public static void main(String[]args){ int x; x = Integer.parseInt(JOptionPane.showInputDialog("enter …

Software Development java java-swing
Member Avatar for ueoptimum
0
792
Member Avatar for jemz

hello can you help me what method to be use in searching integers in string for example if the user will input this string having integers. "jemz 123" how can i add the existing integers and what method to be use...please help me...hoping for your positive responds...

Software Development java
Member Avatar for jemz
0
1K
Member Avatar for tehb

As I know that .c is the extension format for c coding while cpp is the extension for c++. But I noticed that there are some c++ project use .c extension instead of cpp, is it both extension is supported in c++ compiler?

Software Development c++
Member Avatar for tehb
0
277
Member Avatar for Ray007

How to do this structures, any Idea? Given a program segment as follows: #include <stdio.h> struct book { char title[80]; int bar_code; float price; } ; struct book BOOK; void INPUT (struct book *B); float DISCOUNT (struct book *B); You are required to write a complete program that includes the …

Software Development c
Member Avatar for farahlyna
0
109
Member Avatar for progcomputeach

I just wondered if anyone had tried the new software yet or if anyone was planning to try the new certifications? Visual Studio 2010 is available and some of the exams are now available for programmers who wish to keep their certifications up to date. It is likely that other …

Software Development visual-studio
Member Avatar for Suzie999
0
87
Member Avatar for IDC_Sharp

how can i make vScrollBar that will scroll panel?? cus i made a program and its realy important there ScrollBar without ScrollBar its won't be the same thanks

Software Development
Member Avatar for Suzie999
0
70
Member Avatar for bettersaid

i need help in controlling mouse click in python. Example would be 'clicking File menu --> Save Us--> Save' on its own. I have this code for launching an app, for example a textfile. but i dont know how to control its mouse click. Advice please. [CODE]import os class LaunchApp: …

Software Development operating-system python ui-ux
Member Avatar for bettersaid
0
111
Member Avatar for dush0805

Hi, I am trying to find this string "QuickSearchResultsCOnfig" in a text file. The text file will contain this in several places. I need the following var QuickSearchResultsConfig = ['a','b','v','d','e 'f','f']; I need to replace the above with var QuickSearchResultsConfig = [['a',{hidden:true}],['b', {hidden:true}],'v','d','e 'f','g ']; My original approach: Store a,b,c,d,e,f,g …

Software Development python seo
Member Avatar for griswolf
0
136
Member Avatar for arsenal_fan

Hi, I was recently asked in an interview the number of processes that are created when I enter in a command that contains a pipe. For eg. If I enter the command: $who | tee /dev/tty | wc -l Could anyone tell me how many(which) processes are created and in …

Software Development shell-scripting
Member Avatar for griswolf
0
119
Member Avatar for jenzilla

Hello! I'm fairly new to Python. Hopefully you can understand what I'm trying to accomplish here. I'm making a GUI that prints Parking Garage Tickets. I want to be able to post an expiration date on the ticket. I found out about timedelta, and it works if I put in, …

Software Development gui python
Member Avatar for jenzilla
0
3K
Member Avatar for hg_fs2002

I'm creating a linked list,adding the data I've read from file in each node but as I'm trying to print what I hold in nodes my output is some symbols.And even when I cout what I hold in my nodes in ADD function it's ok but as it goes to …

Software Development c++ linked-list
Member Avatar for mike_2000_17
0
100
Member Avatar for spac_e

Hey- First time posting here so hopefully I explain everything correctly. [CODE] class sendbackcurricula(app.page): def GET(self): query = models.Curricula.query.all() map = dict() for x in query: x = x.to_dict() map[x['owner_id']] = x['title'] return json.dumps(map); [/CODE] The above code will return the last element held in the database at 'owner_id' and …

Software Development json python
Member Avatar for TrustyTony
0
80
Member Avatar for 0xCMD

[CODE=java] public int decrypt(int num) { int number = num; // Encrypted: 4523 Original: 5678 int d0,d1,d2,d3; d0 = number%10; // 3 d1 = number%100/10; // 2 d2 = number%1000/100; // 5 d3 = number%10000/1000; // 4 d0 = (d0 < 3) ? d0 % 10 - 7 : d0 …

Software Development java
Member Avatar for 0xCMD
0
2K
Member Avatar for george61

Pretty interesting problem about linked list. This program is about autobuses. Each autobus is given by brand, registration number, number of seats, kilometres and year when the bus was made. The program is organised as menu and when you hit number it calls some function. Problematic function: it should NOT …

Software Development c linked-list
Member Avatar for george61
0
107
Member Avatar for Spakes

Hi , How do I write a code that will print the first 10 even numbers in PERL Thank you

Software Development perl
Member Avatar for jon.kiparsky
0
2K
Member Avatar for Leesha

i'm a student of BSc IT. i have to submit my final year project but i've got no idea what i'm going to do. any idea on what i can do it?

Software Development visual-basic
Member Avatar for zebnoon
0
179
Member Avatar for Musing888

The basic idea for this program is to for me to enter a code to a corresponding website (which is already in a dictionary in the body of the program) and search that webpage for a specific phrase and return a value. This is so that I can check number …

Software Development python web-browser
Member Avatar for Musing888
0
235
Member Avatar for sadhawan

Hi Guys, what i am trying to acieve is, I have an xml file which has bunch of reference to html pages, pic and videos.Now this file and all other files are in the same folder or different subfolder under a main folder.What i want to do is to read …

Software Development html-css xml
Member Avatar for sadhawan
0
82
Member Avatar for heena sharma

how to reverse a string in character array without using string functions...

Software Development c++
Member Avatar for Fbody
0
132
Member Avatar for NH1

I have an issue i need to get resolved fast. I cant seem to get my Dialog box to run properly. This is the code i have for it. The Problems i have are where the black arrows are. First arrow: "No matching prototype available Second and third arrow: "Invalid …

Software Development c
Member Avatar for Riebens
0
181
Member Avatar for 060609

#include <iostream> #include <cstring> using namespace std; int main() { int i,n,len; char x[3]; char status[15]; cout<<"This is an airplane passengers seats program"<<endl<<endl; for(n=1;n<=7;n++){ cout<<n<<" \tA\tB\tC\tD"<<endl<<endl; } cout<<"Please enter your seat accordingly : "; cin.getline(x,3); cout<<endl; len=strlen(x); // for (i=0;i<=len;i++) // x[i]=toupper(x[i]); for(int j=1;j<=7;j++){ cout<<j<<" \tA\tB\tC\tD"<<endl<<endl; } cout<<"Thank you for …

Software Development c++
Member Avatar for sfuo
0
214
Member Avatar for avataralien

I am checking on ways to update my text file existing record. For example I wanted to update the "Address" & "SSN" for Mary Rose to other information using the following code fragment. How can I make use of scanner to complete my code? Code Fragment [CODE] case 1: System.out.print("Address: …

Software Development java
Member Avatar for NormR1
0
103

The End.