43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Srinivas0

can some please explain what are command line parameters ? i read many books, read online didn't understand anything on what they are and when or how to use them. :(

Software Development c++
Member Avatar for Srinivas0
0
189
Member Avatar for lxXTaCoXxl

I'm trying to create a struct for an 8 bit signed integer, seeing as how I'm creating a calculator it would be useful. Windows' calc.exe has this set up as precision for Qword, Dword, Word, and Bytes. I have 64, 32, and 16 because they're already programmed into Visual C#. …

Software Development
Member Avatar for gusano79
0
132
Member Avatar for VIPER5646

Hi all In the following Sub I'm sending an Attachment when the email has been sent I would like to delete the attachment but I get an system.IO.IOException Error. the file I'm trying to delete is being used by another process. How can I detect if the process has finished. …

Software Development pdf vb.net
Member Avatar for VIPER5646
0
655
Member Avatar for auwi987

hey guys need some help in string manipulation, example i have a string LFname = "Hello, world" and textbo1,textbo2. now i want to display "Hello" in textbox1 and display "world" in textbox2. by the way guys thanks for your patience :)

Software Development
Member Avatar for auwi987
0
101
Member Avatar for ocw91

Seriously need help here how can i wrte a program that read character only? i mean alphabert like people key in "i +am+ 12567 a",;. boy," and the program only read iamaboy is there another way other than lowercase the string and then compare a-z?

Software Development java
Member Avatar for JamesCherrill
0
162
Member Avatar for ocw91

I successfully compile the code through cmd, however when i run it, when i enter my password with anything(which fulfill the first condition (6-20))it will show error. The question is to write a program that let user to create a password which is valid (more than 6 letters, must have …

Software Development java
Member Avatar for stultuske
0
193
Member Avatar for ocw91

I have a serious problem here! i understand that the switch is wrong(the Str class should be fine). I wonder what datatype should it be? and if "char" how i am going to key in int value and how to use scanner on it ? The display menu is fix. …

Software Development java
Member Avatar for ocw91
0
181
Member Avatar for adarshcu

Hi All, I have a JAR file that contains a .dll file. But during an ant build a ZIP Error is thrown [CODE]error reading D:\COE\Libraries\client\WSQUtil-1.0.jar; error in opening zip file[/CODE] Is there a way to overcome this ? The jar looks fine(opens in winzip) and eclipse build path also references …

Software Development file-system java
Member Avatar for adarshcu
0
227
Member Avatar for Majestics

I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions???

Software Development java
Member Avatar for Majestics
0
98
Member Avatar for puppycrazy

my codes occur some problem inside.whn i answered 'N' to the last question(DO YOU WISH TO CONTINUE?(Y/N)), the program will repeat run again, but i cnt enter student name!anyone can help me solve the problem>? [CODE] import java.util.Scanner; public class homewok{ public static void main(String args[]){ Scanner xx = new …

Software Development java
Member Avatar for puppycrazy
0
358
Member Avatar for ben25x

Before looking at the code, here's an explanation: NIDAQmx is a hardware-in-the-loop integration software from National Instruments. They give this sample code to create any voltage out of the card. The variable "float64 data[1]" is a double precision floating point that defines the actual voltage being emitted from the card; …

Software Development c
Member Avatar for ben25x
0
458
Member Avatar for major_lost

I want to first say THANK YOU to all of you programmers for your help. You truly live steady to the core of IT and are an inspiration to us newbies! I have a simple utility that starts and stops a timer on a VB4 form. I record the time …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
122
Member Avatar for pseudorandom21

I've been fiddling with some boost spirit stuff, and my code seems to start infinitely looping somewhere in the standard library stuff. Any ideas what's wrong? The qi::phrase_parse works very well, but the karma gets me. [code] #include <iostream> #include <string> #include <vector> #include <algorithm> //#include <boost/spirit.hpp> #include <boost/spirit/include/qi.hpp> #include …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
191
Member Avatar for Vasthor

Hi guys, again, coming to this forum for asking some confirmation of my knowledge confusion. firstly, let's take a look on the code:- [CODE] #include <iostream> using std::cout; using std::endl; int main() { // main process const int value_1 = 1000; const int *pointer_1 = &value_1; const int **pointer_2 = …

Software Development c++
Member Avatar for Narue
0
2K
Member Avatar for deanus

Hi, I've just learned that Java's 'protected' access specifier has a different effect than that in C++. So is there a way to make a member of a base class visible to its inheritors but not globally? Dean

Software Development c c# c++ java
Member Avatar for deanus
0
108
Member Avatar for amir1990

Hi, i have this code: s = "hi john' re.serach(r'j\w+h', s).group() and up to here there is no problem but i want to put the letter h in a str variable l = "h" re.search(r'j\w+'l, s).group() but when i do this i receive an error??

Software Development python
Member Avatar for amir1990
0
82
Member Avatar for awaresefere

hi i want to write a text in any line inside a rich text box how can i do that ?am now able to append to existing one or insert to the beginning of the rich text box but i want to write to any line inside the text box.

Software Development
Member Avatar for lxXTaCoXxl
0
1K
Member Avatar for winecoding

I am trying to use a Weka method, crossValidateModel, which is posted in the last. It looks like that the fifth parameter is referred to as varargs parameter. I tried the example usage given in Weka page, such as [CODE]eval.crossValidateModel(cls, data, folds, rand);[/CODE] It works just fine on one system,(eclipse+Ubuntu); …

Software Development java redhat ubuntu
Member Avatar for ~s.o.s~
0
213
Member Avatar for AquaNut

Hi Y'all, I have a RTB which I import with a set of 7 or 9 didit numbers, 7 for Staff and 9 for Students. e.g. Staff numbers 0628189 0628191 0629991 0629850 0804930 and depending on what is selected in a list box ('Student' or 'Staff') will generate a string …

Software Development vb.net visual-basic
Member Avatar for AquaNut
0
483
Member Avatar for SasseMan

Hi! I'm writing a unit test where arbitrary objects have to be created without knowing anything about the objects (with some exceptions). I use reflection to create objects and set their fields to random values etc... I'm almost there but I've come to an issue I can't find a solution …

Software Development java
Member Avatar for SasseMan
0
187
Member Avatar for Jake.20

We're having a problem on computing the grade average [CODE]Dim hwTotal, swTotal, quizzes, project, midTerm, totalAverage, Finals, Attendance As Double[/CODE] [CODE]hwTotal = Val(hw1.Text) + Val(hw2.Text) + Val(hw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 * 100 * 0.1 swTotal = Val(sw1.Text) + Val(sw2.Text) + Val(sw3.Text) + Val(hw4.Text) + Val(hw5.Text) / 50 …

Software Development vb.net
Member Avatar for codeorder
0
155
Member Avatar for inuasha

How would I find the amount of characters in a string and then use that to print a certain amount of some character that you choose. For example: [CODE=Python] a = 'string' # this holds 6 characters print '*' * # amount of characters in string [/CODE]

Software Development python
Member Avatar for inuasha
0
247
Member Avatar for farhanakram

i have written following insertion sort program for a doubly linked list completely by myself.The the sort function is giving me Segmentation error and i am unable to figure it out...Plz help me out and forgive me if the code is too wrong to handle.. [CODE] //insertion sort using doubly …

Software Development c linked-list
Member Avatar for farhanakram
0
6K
Member Avatar for AquaNut

Hi Coders, I have a minor problem that I would like to try and resolve. I am pasting data from an Excel spreadsheet and and adding a 0 to the start of each 9 digit string it's it's missing (thanks to the help of Rev Jim. This works great if …

Software Development vb.net visual-basic
Member Avatar for AquaNut
0
208
Member Avatar for Smartflight

Hi, I'm learning C/C++ at school and we have our vacations; thought I might do some programs on my own. I've landed at trouble with sorting numbers in a 1-D array at the time of insertion. It seems to work up to a certain point, after which it fails to …

Software Development c++
Member Avatar for Smartflight
0
358
Member Avatar for epicbeast9022

Hello everybody I [I]thought[/I] I understood inheritance but it turns out I don't. I am creating an SDL/OpenGL mini-GUI library. I have a master class, GUIComponent, with subclasses such as TextLabel under it. I have a vector called guiList that is initialized as [ICODE]std::vector<GUIUnit*> guiList[/ICODE] (it's extern'd and initialized elsewhere; …

Software Development c++ gui oop
Member Avatar for vijayan121
0
175
Member Avatar for bhagawatshinde

Hi is it possible to access file from server without downloading it to remte machine

Software Development
Member Avatar for bhagawatshinde
0
92
Member Avatar for floatingDivs

Hey everyone (especially Narue!), I've ventured over to the C++ board again. I've been reading my C++ book (Data Structures and Algorithms in C++) again and want to fully grasp the concept of pointers. In the back of each chapter, a couple of exercises are available and I'm attempting to …

Software Development c++
Member Avatar for floatingDivs
0
718
Member Avatar for ThomsonGB

Okay - Now I am beginning to get a bit frustrated. I have a project that builds perfectly and I just want to duplicate it so I create a new project with the new name that I want to call it. When It shows me the empty space to start …

Software Development c++ file-stream visual-studio
Member Avatar for ThomsonGB
0
494
Member Avatar for mehnihma

I have problem formating this code to displey 2 decimal points [CODE] public String toString() { return super.toString() + "\n\tYear Level:\t" + getYearLevel() + "\n\tTuition:\t$" + "%1$.2f",calcTuition(); } [/CODE] calcTuition is type double how can I do this? Thanks

Software Development java
Member Avatar for Ezzaral
0
180
Member Avatar for Sherif1410

Hi, I wrote the following Java Program. When I enter Arabic Course name, it displays non Arabic characters. Can you help me to read and write Arabic Character. Thanks. [code]package p91; import java.util.Scanner; class GradeBook { public void displayMessage(String courseName) { System.out.printf("Wellcome to the Grade Book Dr. Sherif! for \n%s!\n", …

Software Development java
Member Avatar for ~s.o.s~
0
8K
Member Avatar for beforetheyknew

Hi guys, okay 2 questions, please see the below code. 1.) Why in the code below, does my incrementing ScoreInt not work ? need a fresh pair of eyes. 2.) The time in my form when run only displays the time the application was initially run, but does not update... …

Software Development vb.net
Member Avatar for codeorder
0
131
Member Avatar for archelle

Hello.. i have a table named Tuition with fields: TuitionNum,TotalFee,Fine,levelNum,SchoolYear,DateCreated,Removed,DateLastModified,UserID I inserted record successfully but when i'm trying to display TotalFee using this code, [CODE] myConnString = "server=localhost;" _ & "user id=root;" _ & "password=fiancee;" _ & "database=anneclaire" SQL = "SELECT TotalFee FROM Tuition WHERE levelNum='" & TextBox1.Text & "' …

Software Development mysql vb.net
Member Avatar for adam_k
0
211
Member Avatar for nomorelogic

so i have a working ish program now, when i add the record it saves and returns the save message box as it should and is viewable in the database where it saves to, but it is not viewable in the text boxes when looking back at the form until …

Software Development sql vb.net
Member Avatar for nomorelogic
0
197
Member Avatar for Srinivas0

write a program to accept the salaries of 10 employees from the user and display them in descending order for all the employees,if the user enters zero, the program should display the message"the amount should be greater than zero" and accept the value again. [CODE]#include <iostream> using namespace std; class …

Software Development c++
Member Avatar for Srinivas0
1
542
Member Avatar for Kippstah

Ok, so. I've programmed, just for fun, a conversion calculator for decimal and binary numbers. Here is the code: [CODE]# -*- coding: cp1252 -*- import sys, os, time #This is where you convert a binary number into a decimal number. def binaryToDecimal(): os.system('cls') while True: print "To go back to …

Software Development python
Member Avatar for Beat_Slayer
-2
239
Member Avatar for gplkrsna

Hi All, Hi All, I'm trying to execute a vbscript programme, on execution I'm getting following error, can you please help me in coming out of the problem. "Wrong number of arguments or invalid property assignment: wsh" CODE snippet: [CODE]Set xl=createobject("excel.application") Set wb=xl.workbooks.open(testset) xl.visible=true Set wsh=wb.WorkSheets(1) <------- ERROR is seen …

Software Development vb.net vbscript
Member Avatar for gplkrsna
0
101
Member Avatar for fka

Hi everyone, I wrote something like that: [CODE] book *library = NULL; customer *service = NULL; do { printf("**********MENU***********\n"); printf("* #1 List of books *\n"); printf("* #2 Add book *\n"); printf("* #3 Search by title *\n"); printf("* #4 Search by category *\n"); printf("* #5 Search by author *\n"); printf("* #6 …

Software Development c linked-list
Member Avatar for fka
0
293
Member Avatar for kyriacos1986

I have been asked to design a method splitMid that can be added to the LinkedList<E> class. This method should have the following header: public void splitMid(LinkedList<E> sublist) and should split the given list into two sub-lists of (almost) equal sizes. Suppose myList points to the with elements 34,65,27,89 and …

Software Development java linked-list
Member Avatar for NormR1
0
6K
Member Avatar for Srinivas0

create a menu driven application that accepts the salaries for ten employees and display the following information: 1)max salary 2)min salary 3)avg salary 4)number of employees whos salary is greater than 1000 5)the salaries in ascending and descending orders. [CODE]#include <iostream> using namespace std; class Max { int marks[10]; public: …

Software Development c++ display
Member Avatar for Srinivas0
0
217
Member Avatar for ogsirus

Hi guys. I am making a program in c# which uses several forms. It my first time doing this so im a bit clueless. I have a main form and a second one. The main asks the user to enter a number between 1- 25. When they press enter It …

Software Development objective-c
0
92
Member Avatar for Majestics

Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a = { 100,200 }; B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; } C. static final int[] a = new int[2]{ 100,200 }; D. static final …

Software Development java
Member Avatar for Majestics
0
251
Member Avatar for Lunar Savage

Okay, so I've been working on this Inventory Program non-stop all day long. I've made massive changes to it several times and feel like I'm banging my head against the wall. And finally, I managed to make it do everything I need it to do like cycle through an inventory …

Software Development gui ide java java-netbeans java-swing puzzle
Member Avatar for Lunar Savage
0
193
Member Avatar for moonL!ght

hi im implimenting a gui applicaion so i have a list of shapes =>array of objects and i want to select a shape from the list im stuck in implimenting the listener class how do i know the selected object that is in my list it wont work with me …

Software Development gui java
Member Avatar for moonL!ght
0
111
Member Avatar for Dmiller071

My main problem: In my JApplet, my actionPerformed method should open a website when a certain item is selected in a JComboBox. The problem, is that the desktop.browse(uri); statement will not work. I've tried this outside of an applet in just a small program and it ran fine. So there's …

Software Development java java-swing
Member Avatar for Dmiller071
0
190
Member Avatar for jhellr13

I have to do this project for school that finds the Standard Deviation. The first part of it, which has to build an array from scanner with a while loop, has been killing me today. The problem is that my teacher wants a program that will allow a user to …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for sergent

I know that by default member functions of a class are inlined [CODE] class d { public: int a() { return 1545435; } }; [/CODE] And I also know that it's not allowed to declare functions in headers unless they are inlined. Is there a way to declare a function …

Software Development c++
Member Avatar for mike_2000_17
0
220
Member Avatar for SeniorAlexandro

Alright, I have Textbox where I want only Numbers and Letters and backspace allowed. I don't want copy and paste, or spacebar or other ascii charachters. Can anybody help me?

Software Development visual-basic
Member Avatar for SeniorAlexandro
0
333
Member Avatar for sun_2588

I am working on the Tkinter.......i need progress bar in determinate mode........ can some one please give simple example of it, i m getting confuse in start, stop and step method of the progress bar Thanks a lot....;

Software Development python tkinter
Member Avatar for Ismatus3
0
4K
Member Avatar for Skretch

Trying to add a key keylistener to a program i am making but it wont work. cant find the reason :/ any help would be awesome:) Display.class [CODE]package com.mono.main; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JFrame; import javax.swing.JPanel; import com.mono.main.handler.Controller; import com.mono.main.handler.Game; import com.mono.main.handler.InputHandler; public class Display extends JPanel implements Runnable …

Software Development java java-swing
Member Avatar for Skretch
0
352

The End.