132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for learner guy

hi i have two problems in c++ console application 1. I want a function to execute when a certain key is pressed .kbhit() is for any key but i want to modify it to a specific key ..plz tell me about it also if any other function can do this …

Software Development c++
Member Avatar for Narue
0
1K
Member Avatar for BoBok2002

Two things. First I need to resolve the linker errors I'm getting and I also need to learn how to create a text file in a C++ project file. I'm working on a stacks project with classes and I'm running into linker errors. Specifically it says: [B][Linker error] undefined reference …

Software Development c++ file-system hard-drive oop
Member Avatar for BoBok2002
0
390
Member Avatar for Joey_Brown

Hello; I have a following method that allocates memory for some objects. [CODE] public static int formStyleOfLyle(int a) { ObjectL[] numberL = new ObjectL[a]; if(numberL==null) { return -1; } return 0; } [/CODE] I really dont know what this does; but I need to check the return value of this …

Software Development java
Member Avatar for Joey_Brown
0
127
Member Avatar for priere

C# Linq to Entities - Reference.EntityKey Now that I have built a database and here is the corresponding SQL code: [url]http://www.mediafire.com/?f4a0d74j7qe7a1f[/url] Visual Studio 2008 SP1’s ADO.NET Entity Framework has generated an Entity Model like this: [url]http://postimage.org/image/lulmehljv/[/url] I have created some methods as follows: [code] private void buttonAddPatient_Click(object sender, EventArgs e) …

Software Development c c# c++ visual-studio
Member Avatar for lolafuertes
0
358
Member Avatar for Yutxz

My program receives no errors or run time errors, but for some reason it runs infinitely. I need help pinpointing the problem D: I will post additional information about the exercise I am trying to solve in this thread. [CODE] package captcrunch; /** * * @author Josh */ public class …

Software Development java
Member Avatar for JamesCherrill
0
219
Member Avatar for projecttoday

I'm trying to make a form in VB.Net that takes speech input (not text-to-speech) on my Windows XP Pro computer. I've tried to install Microsoft Speech SDK 5.1 according to [URL="http://support.microsoft.com/kb/306537"]http://support.microsoft.com/kb/306537[/URL]. The problem is my Office 2007 does not have an Alternative User Input feature, as it says in the …

Member Avatar for Micro_2001
0
417
Member Avatar for sravanthi89

[CODE]#!/usr/bin/python import smtplib sender = 'from@fromdomain.com' receivers = ['to@todomain.com'] message = """From: From Person <from@fromdomain.com> To: To Person <to@todomain.com> Subject: SMTP e-mail test This is a test e-mail message. """ try: smtpObj = smtplib.SMTP('smtp.gmail.com') smtpObj.sendmail(sender, receivers, message) print "Successfully sent email" except smtplib.SMTPException: print "Error: unable to send email" [/CODE] …

Software Development peer-to-peer python socket-programming
Member Avatar for TrustyTony
0
912
Member Avatar for Ehtesham Siddiq

Hi, I have my application in VS2008 and coded Vb.net. My query is i want to save record from an excel sheet to my Database Table. But i dont want to insert the Excel sheet as a whole rather i want to insert the record in my database table Row …

Software Development vb.net
Member Avatar for lolafuertes
0
294
Member Avatar for Ruchi224

A new issue !! I have a checkbox column in the datagridview and also a column named "partqty" which displays the quantity of materails available.. I would want that when the user checks on the checkbox, the quantities of checked rows should be added and displayed in the textbox.. I …

Software Development vb.net
Member Avatar for Ruchi224
0
276
Member Avatar for v3ga

Hi everyone just started Daniweb! I have been using devcpp for some time.I am trying to make a switch from DevCpp to Visual Studio but find the latter confusing having so many options. Recently, I did a console application that will accept a word from user and prints its anagrams. …

Software Development c++ data-structure ide ios visual-studio
Member Avatar for v3ga
0
276
Member Avatar for reddit

I am trying to make an 8x8 board with an array. The only problem I run into is making a box or square that will be placed into that array. for instance: @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ …

Software Development c++
Member Avatar for xfbs
0
125
Member Avatar for ashley808

I've never felt like a total moron until I took a Computer Science class. I'm trying to create a program that rolls a pair of standard 6 sided dice 10,000 times and outputs how many times doubles show up, using a "while" loop. I think what I'm trying to do …

Software Development java
Member Avatar for JamesCherrill
0
761
Member Avatar for Vasthor

this code is for bring an output of "Hello, [name]!" with frame on its outside. [CODE]//ask for a person's name, and generated a frame greeting. #include <iostream> #include <string> // say what standard-library names we use using std::cin; using std::endl; using std::cout; using std::string; int main() { // ask for …

Software Development c++
Member Avatar for Vasthor
0
458
Member Avatar for Ruchi224

Hello !! I am stuck with an issue and need some guidance.. I am using visual studio 2008, vb.net Windows app and ms access 2003. I just wanted to know that there is a form in which i select an option from the list of options in combobox.. While the …

Software Development vb.net visual-studio
Member Avatar for Ruchi224
0
136
Member Avatar for Ruchi224

Hi again !! I am making a widows application wherein i have a form containing two datagridviews.. The first one( named dgv1) consists of all the data from the database and a checkbox column.. While the user selects the rows using checkbox, the data are displayed in adjoining datagridview(named dgv3).. …

Software Development assembly dataset microsoft-access vb.net
Member Avatar for Ruchi224
0
2K
Member Avatar for addision

First let me start by saying that I hope I wrapped my code properly. Next, my instructor sent us some code using a class and instructed us to add to it and make it so that we can display a checking account balance from a simple three line text file, …

Software Development c++
Member Avatar for addision
0
138
Member Avatar for anushabit

Write a function which accepts a sentence as input parameter. Each word in that sentence is to b reversed (remember: not the whole sentence to b reversed, each word should b reversed). Space should b there between each word. Return the sentence with reversed words to main function and produce …

Software Development c++
Member Avatar for mrnutty
0
94
Member Avatar for daldrome

Hey guys, I need to print out character symbols for this program. I need to print 2 different shapes of symbols. For the first shape, I have to print out a triangle, represented by the "*" in the nested for loop. I need to print out a square shape using …

Software Development c++
Member Avatar for daldrome
0
198
Member Avatar for hardknock

Hello I have hit a wall with this issue, been at it for a few hours now and it is bewildering to me to say the least With that being said, the below code is giving me some erroneous answer during the execution. The user enters a number from the …

Software Development c++
Member Avatar for hardknock
0
167
Member Avatar for dakerao

How do i constantly keep checking for specific characters in a text file till there are no more specific characters left. this way i can keep displaying text file logos on my application until there are none left in the text file being searched by c++ :) i did have …

Software Development c++ file-stream
Member Avatar for Lerner
0
199
Member Avatar for C++newbie chick

Hello, as you can tell from my username I'm completely new at C++ and have no idea how to write a function that won't chuck up any errors! What I'm trying to do is to compare an inputted student's ID number to ones already stored in my current array and …

Software Development c++ ios
Member Avatar for C++newbie chick
0
325
Member Avatar for peste19

I am trying to write my dictionary to a csv and i am getting errors, was wondering if someone could tell me what i am doing wrong this is my function [CODE] n = open(file.csv,"w") for item in my_dict.items(): f.write(item) f.close() [/CODE] my my_dict is for example {john ['25']} when …

Software Development python
Member Avatar for woooee
0
175
Member Avatar for ryan.khan06

Hi guys, quick question, my objective is to make class somehow hold all values that i'm using in the program. I'd like the class to act as a database, if that's possible. My only problem is that, i'm passing an array from the main form to the class, and that …

Software Development oop
Member Avatar for lolafuertes
0
138
Member Avatar for ali11

I have no idea what wrong my cods when I press = button of my calculator nothing happens. [CODE]import java.util.Stack; import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; import java.util.Vector; public class Ahsan extends JFrame{ Stack s = new Stack(); private JFrame f; private JPanel p1,p2; private JTextField …

Software Development gui java java-swing
Member Avatar for JeffGrigg
0
767
Member Avatar for lbgladson

I have to create a form that I enter the price of gas each month over a year. I enter the price in a text box and click the enter button to send the price to a list box immediatley and use an array. I have the following code but …

Software Development vb.net
Member Avatar for lolafuertes
0
148
Member Avatar for markdean.expres

guys, it's been a long while since the last I asked about this and so far, no one yet has ever given me the right and helpful answer. My problem is, I have a program, I have published it, and I have been actually using it in my PC. Whenever …

Software Development vb.net
Member Avatar for lolafuertes
0
155
Member Avatar for compulove

I am using asp.net codebehind (c#) and I wrote code for checking the username and password. I want the other parts of the form to be inactive or "grayed out" so the user can't edit them until they successfully enter in the correct username and password. I would show code …

Software Development
Member Avatar for hericles
0
178
Member Avatar for plumsauce5

Write a program that will ask the user for the name of an item, the part number of the item, the cost of the item and the quantity of the item. The program will then calculate the total cost of the item. The program will also keep track of the …

Software Development c++
Member Avatar for Stazloz
0
117
Member Avatar for as3g

I know how to write to an existing txt file via Py function, but can you create the file itself from the function, or MUST the txt file already exist?

Software Development python
Member Avatar for as3g
0
96
Member Avatar for mark_31

Hi all, I'm not a Python expert (I've only dabbled a little). A user has asked me to help with a short webcrawling script they have written. They are making use of Dale Hunscher's UrlNet library in the script. They basically want to have the script ignore overly repetitive URLS …

Software Development phpbb python
Member Avatar for joehms22
0
313
Member Avatar for Mark198995

hey me and my group are doing a project but we dont know how to use the file pointer (to export the C program to a text file and we dont know how to make it so the random generator makes our words go diagonal top left bottom left top …

Software Development c file-system puzzle
Member Avatar for Mark198995
0
140
Member Avatar for TheHelp

Hi, I'm learning java and I have a problem. The getText() doesn't seem to work. What I am trying to do is to write a simple code, where I assign the text of a button to a string variable and print that string variable on the command line. I get …

Software Development java
Member Avatar for TheHelp
0
95
Member Avatar for bigredaltoid

Hi guys, trying to write a function that reads a text file and counts the periods in it and prints the answer. I keep getting an error saying that UnboundLocalError: local variable 'periods' referenced before assignment. I am not sure how to fix this. We must use a function to …

Software Development python
Member Avatar for bigredaltoid
0
138
Member Avatar for dan1992

[CODE]#include <stdio.h> #include <conio.h> #include <math.h> // +-*/ void readArray(int *a, int n) //fuctie care citeste un tablou { for(int i=0; i<n; i++) { printf("A[%i]=",i); scanf("%i",&a[i]); } } void printArray(int *a, int n) { for(int i=0; i<n; i++) { printf("%i ",a[i]); } } void patratPerfect(int *a,int n) { for(int i=0; …

Software Development c
Member Avatar for Stazloz
0
83
Member Avatar for ramy84

Hello, below is the program written to enter the details of grocery products purchased and find the totalamount. namespace grocery_billing { public class program { public static void Main() { int choice, key; float Price, TotalCost; string ItemDescription; DateTime Date; File.Create(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "grocery billing.txt"); Console.WriteLine("Press 1 to read data from …

Software Development
Member Avatar for ramy84
0
310
Member Avatar for Dmiller071

Hi all, I'm working on a maze project with different types of robots. One of the robots is supposed to be a right-hand-rule robot which follows his right hand. The way I'm coding it so far, is I have an Enum Orientation. If the right hand is facing UP, DOWN, …

Software Development algorithm java
Member Avatar for Dmiller071
0
1K
Member Avatar for sidra 100

hi i have made a program to find average and standard deviation. n it read input from other. rest of things are fine plz guide me my output for Standard deiation sD comes NaN. i have searched alot bt couldnot find solution my code is [CODE]import java.io.*; import java.util.*; public …

Software Development java
Member Avatar for Taywin
0
170
Member Avatar for zack_falcon

Okay, so I have two arrays: [CODE]public int[] start = new int[21] { 0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14 }; public int[] end = new int[21] { 0, 1, 1, 1, 1, 1, 1, 2, …

Software Development
Member Avatar for zack_falcon
0
189
Member Avatar for Destluck

Alright to star off let me say sorry for my english typos. This question is not for a homework and in no way related to school. Im in 3d conception. But looking to get a program for personal use. I have a project i want to work on and need …

Software Development c++
Member Avatar for raptr_dflo
0
153
Member Avatar for spunkywacko

Hey guys. I'm having some trouble with this error. [CODE] class App(): i = 0 def updateCount(self): i = i +1 app = App() app.updateCount() input('Enter') [/CODE] I have tried global i but get an error 'global name i is not defined'. Can someone clue me in? Cheers :D

Software Development python
Member Avatar for Gribouillis
0
206
Member Avatar for mc3330418

I have this project that takes a team name, how many members are on a team and the individual times. I need to output the teamname and times (in seconds) and then the total time of each team. I'm having trouble adding the total team times. [CODE]while(infile.peek() !=EOF) { getline …

Software Development c++
Member Avatar for Narue
0
120
Member Avatar for AT--O

Using VB Express 2010 in windows XP Pro 64. A ListBox shows the project forms names. On ListBox_DoubleClick [CODE] For Each F As Form In xFormCollection If F.Name = ListBox.SelectedItem.ToString Then Try F.Show() Catch ex As Exception MsgBox(ex.Message) End Try End If Next [/CODE] Works fine the first time but …

Software Development vb.net visual-basic
Member Avatar for AT--O
0
1K
Member Avatar for as3g

I'm new to python and I'm trying to count punctuation in a string input by user, and I"ve been able to do it w/ out a loop, but would like to emply a more efficiant method. I've been able to loop through and grabb the characters, but they are'nt being …

Software Development python
Member Avatar for as3g
0
171
Member Avatar for wfws

I'm working on a school C++ program, and its my first that uses classes and objects. Its great fun, and I'm almost done. I have a problem with the search function, which involves several pieces of code- the .h files, the .cpp implementation file, and the main code file. If …

Software Development c++ seo visual-studio
Member Avatar for gusano79
0
100
Member Avatar for yapaarachchi

how can i scan a character from scannner class( just like int-nextInt,Boolean-nextBoolean)

Software Development java
Member Avatar for TheSomalilander
0
226
Member Avatar for ndayala

i get this error every time i try to compile the code below. any suggestions --------------------------------------------------------------------------------------- Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Users\ndayala\Desktop\19266\main_random.c" -o "C:\Users\ndayala\Desktop\19266\main_random.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" C:\Users\ndayala\Desktop\19266\main_random.c:9:22: sys/mman.h: No such file or directory C:\Users\ndayala\Desktop\19266\main_random.c: In function `main': C:\Users\ndayala\Desktop\19266\main_random.c:30: error: `PROT_READ' undeclared (first use in this function) C:\Users\ndayala\Desktop\19266\main_random.c:30: error: (Each …

Software Development c
Member Avatar for gerard4143
0
565
Member Avatar for PixelExchange

I have a program which consists of two windows (hWnd, and picturewind). I would like to write code which takes an action every time a person clicks inside of the second window (picturewind) but not when the person clicks in the first window (hWnd). Can anyone tell me how I …

Software Development c++
Member Avatar for PixelExchange
0
153
Member Avatar for nimka

hi , i am new to programming in java , i developed a program in java , my program is take two input files , first file has one sequence and second file has multiple sequences and then compute the edit distance between these two files . my problem is …

Software Development java
Member Avatar for Taywin
0
140
Member Avatar for gouki2005

I got the Jasypt 1.8 and i have jasypt-1.8 folder but how can i add this new libraries to my project org.jasypt doesnt appear so what i need to do?

Software Development java
Member Avatar for peter_budo
0
247
Member Avatar for smith32

I'm trying to do the third writer/reader problem with semaphore (as mention on wiki). But it's not working properly. First 16-element array seem to work properly. But after first, it got wrong. Even though I think I'm almost there, I can't find the error at all. My code is as …

Software Development c multithreading
0
145

The End.