132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pezza

Hi All, Apologies if this has been mentioned before, but haven't come across anything from my search... I have a strange issue at the moment where when I debug and step through my code, as soon as the first declaration (DIM statement) is stepped over, the value is being set …

Software Development vb.net
Member Avatar for pezza
0
138
Member Avatar for agrbinoo.albaker

Write a complete C++ program that reads the attached file (values.txt) to find and print the following: a. The average value of the numbers in the file. b. The maximum and minimum value c. The count of negative and positive values (ignore zero) #include <iostream> #include<fstream> using namespace std; int …

Software Development c++ file-stream
Member Avatar for Moschops
0
177
Member Avatar for syasya

what is the notion of event driven architecture in context of GUI ?

Software Development gui java
Member Avatar for JamesCherrill
0
114
Member Avatar for Reem_1

I tried all possible test cases and It outputed the correct answer , I wonder why UVA doesn't accept my answer <#include<iostream> #include <stdio.h> using namespace std; int main() { int i, j; unsigned long long int tempI, tempJ; int maxCaseLen = 1; int count = 1; while (scanf("%d %d", …

Software Development c++
Member Avatar for Reem_1
0
631
Member Avatar for vincecamha

"a menu must be provided that asks the user of the software what task they would like to perform; it then activates the required task. The menu should loop until the user requests to exit"- that is the requirement. And i haven't learn about switch-case. So how can i create …

Software Development java
Member Avatar for vincecamha
0
455
Member Avatar for Satyam_1

I have following code for date and time in vb.net. I am not able to set timer in the textbox 4 and 5. What could be there in timer1 event? Dim theDate As Date theDate = Format(Now(), "short date") TextBox1.Text = theDate Dim mytime As System.DateTime Dim hours As Double …

Software Development vb.net
Member Avatar for Sulaiman_1
0
275
Member Avatar for Danuja

Can any guy tell me what is the differnce between a datareader and a dataadapter? Also what are the other method to search data through SQL queries??

Software Development sql vb.net
Member Avatar for Sulaiman_1
0
368
Member Avatar for syasya

Hi guys , I dont have idea on how to solve this problem . I attach my question but I dont know whether it is true or not. Can you please help me Given an output file named "data.txt" write the code fragment to i ) set up the file …

Software Development file-stream java
Member Avatar for stultuske
0
141
Member Avatar for sashyn01

this is what i want to do but it seems my code doesn't do what i wanted. when i select an item in cbo_Item i want to loop the corresponding Item_Stock into cbo_QTY where all the numbers below Item_Stock is shown in cbo_QTY...here is my code... Private Sub loop_QTY() Dim …

Software Development vb.net
Member Avatar for Sulaiman_1
0
796
Member Avatar for Satyam_1

I am using vb.net with OleDb database. Following is my code, although i am to search database but not able to save after making changes. It displays following error at Command.ExecuteNonQuery level as OleDbException was unhandled, Data type mismatch in criteria expression. Imports.Sysytem.Data.OleDb Private Sub Form1_Load(ByVal sender As System.Object, ByVal …

Software Development open-source seo vb.net
Member Avatar for Sulaiman_1
0
276
Member Avatar for vergil1983

Hi and good day to all, Just a curious question, when I am comparing a String object with blank space(" "), I type x.equals(" ") in my Netbeans IDE(x is a String type variable), but Netbeans automatically shows it's an error and change it to " ".equals(x) instead. Anyone here …

Software Development ide java
Member Avatar for vergil1983
0
171
Member Avatar for mmm123

Hi was wondering if anyone could take a look at my code and see whats going wrong here because I have changed the code about 20 times trying to fix the error and still no luck. I have created a web page that the user must fill out, I then …

Software Development open-source visual-studio
Member Avatar for Sulaiman_1
0
3K
Member Avatar for Gerock7

import javax.swing.JOptionPane; public class StudentReport { String name; //name of the student String schoolName; //name of the school String schoolGrade; //grade in school int numOfGrades; //number of grades or number of classes double grades; //grades received double average; //average of the grades double total=0; //initialize total String trash; //to convert …

Software Development java java-swing
Member Avatar for stultuske
0
277
Member Avatar for ishaan3731

i have this code which tries to enter data into an array of string(char ptr) called token.To do this i have used a while loop to obtain a string as user input and put that string into the token array one by one. But when i try to print the …

Software Development c
Member Avatar for ishaan3731
0
202
Member Avatar for daniel1977

I am getting an error in the header file: class linkedStackType: public stackADT<Type> Can you see anything wrong with what I have, and why the compiler is complaining about "stackADT"? I would love it if you could give me some insight into this matter. Right now I'm only concerned about …

Software Development c++
Member Avatar for mike_2000_17
0
215
Member Avatar for Ballistixz

hello, i am in need of some help with a bit of code i been working on. i am getting "illegal start of expression" and "reached end of file while parsing" errors and its been bugging me for awhile as i am not sure why. can anyone help me to …

Software Development java
Member Avatar for vergil1983
0
244
Member Avatar for phony

// This program uses the a queue template to create a queue of strings. #include <iomanip> #include <iostream> #include <cstdlib> using namespace std; // // TO CREATE A "template" class named "T" template <class T> // // TO CREATE A CLASS NAMED "Dynque" class Dynque { private: struct QueueNode { …

Software Development c++ queue
Member Avatar for phony
0
302
Member Avatar for dudicus14

{file has 1000 lines that look like these 114680858 19670607 Matilda Vincent MI 114930037 19471024 Desdemona Hanover ID 115550206 19790110 Xanadu Perlman ND 116520629 19630921 Alexander Hall SD 117050976 19301016 David Lamprey GA 119610646 19650202 Thomas Porlock IL 120330928 19621126 Cary Cartman NC struct employees { int ss_number;//social security int …

Software Development c++
Member Avatar for vmanes
0
148
Member Avatar for Labdabeta

Hello, I have a bug in my program somewhere and I cannot understand why. The program merely prints data from a binary file. Here is the code: #include <iostream> #include <fstream> #include <vector> #include <cstdint> using namespace std; int main(int argc, char *argv[]) { if (argc!=2) { cout<<"Invalid argument count, …

Software Development c++ file-system ide
Member Avatar for Labdabeta
0
414
Member Avatar for Danuja

Who can tell me the difference between MessageBox.Show and MsgBox in VB.NET?

Software Development vb.net
Member Avatar for Ancient Dragon
0
342
Member Avatar for lithium112

Hello, I am delving into OOP now and am having issues with creating properties. Below is my code. Basically what I did is created a custom class and am creating a property within that class. But what happens is it will put a red squiggly under 'Multiply' saying 'not all …

Software Development mathematics oop
Member Avatar for lithium112
0
247
Member Avatar for inspire_all

i am trying to overload +operator to concat 2 strings i tried to write a code but it is giving 2 errors and i am also not sure whether logic is correct..MY CODE is [CODE]#include<iostream.h> #include<conio.h> #include<string.h> class string { char *str; public: string() { cout<<"enter string"; cin>>str; } void …

Software Development c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for ssbb

I have a homework to make a calculator(infix-to postfix) and I need to do it asap. I get always an error when I run this code(Enter a postfix expression (or nothing to quit): +54 Traceback (most recent call last): File "C:\Python32\infix to postfix", line 69, in <module> main() File "C:\Python32\infix …

Software Development python
Member Avatar for iamthwee
0
2K
Member Avatar for Rabee_1

Hello , I have to write a code that read a file in python and convert each chaaravter to 1, or 0 and send these digets to a a selonoid to make a strike or not to make ( brille printing ) is that possible ???? please need your help …

Software Development python
Member Avatar for iamthwee
0
481
Member Avatar for Pyler

I'm implementing a generi method that's supposed to traverse a binary tree in PostOrder but when I attempt to use it, the Iterator doesn't work as It should when I attempt to use ot on a Binary Tree, can anyone spot my mistake in the code? Thanks. The method makes …

Software Development java programming-construct
Member Avatar for iamthwee
0
219
Member Avatar for Bchandaria

i want a full code for finding different ways to climb the n-stair case problem that is each step is either 1 or 2 stairs. Eg- a 3-stairs staircase can be climbed in 3 ways :1-1,1-2,2-1. Using subset method can any one can help me out for this problem?

Software Development c
Member Avatar for iamthwee
0
192
Member Avatar for maisara

I hve sme doubt in pseudo code I hve created da flow chart and c++ code but I need to create pseudo code I dnt no hw to create it Becz da flow chart hve 2 inputs such as cot=0, ans='y' And 5 option such as add inquiry , view …

Software Development c++
Member Avatar for vmanes
0
283
Member Avatar for Auroch

Hello, I have the following problem: Entering coordinates of points on a plain with keyboard (as rows x,y). Analysing this coordinates. Replacing coordinates in vector (point - structure data type). Then calculating distance from the first point to all another points. I've written the code of this problem using arrays …

Software Development c++ data-structure
Member Avatar for Auroch
0
2K
Member Avatar for catastrophe2

hi so why isnt queue printing anything where it should? #include<iostream> #include<string> using namespace std; template<class ItemType> struct NodeType { ItemType info; NodeType* next; }; template<class ItemType> class Queue { private: int size; NodeType<ItemType>* front; // It points to the front of a singly-linked list NodeType<ItemType>* rear; // It points …

Software Development c++ linked-list queue
Member Avatar for catastrophe2
0
206
Member Avatar for Labdabeta

Hello, I have learnt a few assembly languages (MIPS/x86/ARM/MIX) and I have a question about the call stack. Each of those languages uses a different method for subroutine linkage, and the way I learnt them was not conducive to recursion. Granted, if I continue reading my copy of The Art …

Software Development assembly
0
177
Member Avatar for Fighter01

Hi, i have just started programming with python and i have beken given a task where i must create a python calculator. So far i have created the code (seen below) however i need help explaining it-e.g. saying what each part of the code does: from tkinter import * root …

Software Development python tkinter
Member Avatar for Fighter01
0
965
Member Avatar for Kristian_2

I have solved it... Shame... -------------------------------- I have problem with this code: cin >> str; smatch m; regex e("([[:w:]]+)@([[:w:]]+)\.com"); //<- Here was the error (it was regex e("([[:w:]+)@([[:w:]]+)\.com");) silly me :(( bool found = regex_search(str, m, e); cout << "m.size() " << m.size() << endl; for (int n = 0; …

Software Development c++ regex
0
149
Member Avatar for Aman_5

import javax.media.*; import java.io.*; public class MP3Player { public static void main(String[] args) throws Exception { File file = new File("xyz.mp3"); MediaLocator mrl = new MediaLocator(file.toURL()); Player player = Manager.createPlayer(mrl); player.start(); } } }`` when i execute above program, it shows error : Failed to configure: com.sun.media.PlaybackEngine@ce124a7 Bad header in …

Software Development file-stream java
Member Avatar for JamesCherrill
0
358
Member Avatar for romdan94

How would I write this program: Wrte a program that will read a line of text that ends witha period, which serves as a sentinal value. Display all the letters that occur in the text, one per line and in alphabetical order, along with the number of times each letter …

Software Development java
Member Avatar for JamesCherrill
0
277
Member Avatar for ibpet11

Dear all, I need help on programming Mifare cards. I want to be able to read and write to a 1k mifare card. I bought a ACR1281U dual reader and also have some documentation but have not understand how to read data and write data to Mifare cards. I did …

Software Development vb.net
Member Avatar for ctrah
0
3K
Member Avatar for Gurjot_1

Hi, So I am working on a drink machine simulation. I have a text file that holds the prices, names and inventory. My problem is It won't let me set my prices at 1.00 or higher. Ex: I set the price to 1.50 in the text file then when the …

Software Development apple c++
Member Avatar for nullptr
0
256
Member Avatar for tony75

HI I need to copy .dll files in C:\Windows\system32\ which is found or match in my my_file.txt file to C:\tools folder. my code not work and need also to found words that can match my_file.txt. so for example I have RICHED20.dll in my my_file.txt if the same file name"RICHED20.dll" exist …

Software Development python
Member Avatar for snippsat
0
1K
Member Avatar for sunny@123

Using the sample BUBBLESORT program with CHARACTERS given in class do the following: Enter 10 words (does not have to be a phrase or sentence..you may use some digits, caps, and special characters like punctuation. Have each of these words including punctuation entered into a character array. Print out the …

Software Development c++
Member Avatar for Ancient Dragon
0
286
Member Avatar for Jake_4

Hello, I am trying to create a tone, then another tone using this code. It currently only plays one of them. Is there something missing or am i going about this wrong? for(int n = 0; n < num_samples; n++) //where n is the step |start of for loop { …

Software Development c++
Member Avatar for pritaeas
0
187
Member Avatar for rstringer

Hello All, I am working on an Access 2010 application. I would like to click on a command button and open a Adobe PDF document. The code for the On-Click event is: Set shell = CreateObject("WScript.Shell") shell.Run """C:\Program Files (x86)\Adobe\Reader 11.0\Reader\acrord32.exe"" SourceFile" When the Shell.Run line executes, Acrobat returns an …

Software Development gui microsoft-access pdf visual-basic
Member Avatar for Ancient Dragon
0
362
Member Avatar for Jake_4

Hello everyone, i am going to create a small tune though i have no idea how to go about it. I currently have a sine wave that plays for one second using a loop similar to this // loop to generate audio samples for(int n = 0; n < num_samples; …

Software Development audio c++
Member Avatar for phorce
0
321
Member Avatar for syasya

Please help me I cant answers these questions at all . Question b Suppose a class named FootballClub is to be definêd. i. Suggest THREE (3) data members for the class' ii. suggest TWO methods other than accessors and mutators for the class' iii. code the class in Java based …

Software Development java
Member Avatar for syasya
0
137
Member Avatar for trantran

I am reading the (otherwise excellent) The C++ Programming Language (4th edition - Hardcover) (Stroustrup) and I cannot understand about 4 pages of it despite a lot of attention to it. It's section 27.4.1 Composing Data Structures starting page 767. After reviewing obviously unsatisfactory alternatives on page 767 for a …

Software Development c++ data-structure
Member Avatar for trantran
0
823
Member Avatar for Begginnerdev

If you are browsing this forum, it is a safe assumption to believe you know of the [Fibonacci Series](http://en.wikipedia.org/wiki/Fibonacci_number). After having a couple of minutes, and some random thoughts, I put together a little piece of code that will print this series out to a file. Private Sub FibWrite(ByVal iMax …

Software Development vb.net
Member Avatar for Reverend Jim
0
282
Member Avatar for Labdabeta

Hello, I recently took a course on assembler/compiler construction. In it we covered parsing algorithms such as LL(n), LR(n), LALR(n), and SLR(n). I understand how these parsing algorithms can be used to determine **if** an input string follows a context free grammar (CFG). At some point I also understood how …

Software Development
Member Avatar for Labdabeta
0
303
Member Avatar for Ancient Dragon

I'm using VS 2013. I want to use the system.numerics.biginteger structure but VS says there is no such namespace as system.numerics! According to MSDN there should be. What am I missing? Imports System.IO Imports System.Numerics '<<<< error Module Module1 Sub Main() Dim OneLightYearInches As BigInteger = 372469703661417000 End Sub End …

Software Development vb.net
Member Avatar for Ancient Dragon
0
2K
Member Avatar for maxpaine69

I all as anybody tried, passing a pdf tha is in memory stream and so it directly on a div, without the creatio od a file?? Best Regards

Software Development asp asp.net pdf sql
Member Avatar for LaxLoafer
0
2K
Member Avatar for henryz_box

I am wanting to create a card game that will have 1 to 7 players plus the dealer. Currently I have 1 player and the dealer. Each player will have a listbox that contains an index for each card in the player's hand. As the cards are dealt each player …

Software Development vb.net
Member Avatar for henryz_box
0
331
Member Avatar for RohanSpi

Can any one help me to convert wildcard pattern into regular expression pattern using c#.Net...?

Software Development regex
Member Avatar for RohanSpi
0
183
Member Avatar for catastrophe2

hi so i have to make a copy of a linked list i made last week and this time i just have to update it with a deep copy concept thus making a copy of that list i made. here is my code: #include <iostream> #include <string> using namespace std; …

Software Development c++ linked-list
Member Avatar for catastrophe2
0
302

The End.