132,729 Archived Topics
Remove Filter ![]() | |
Dear friends, In VB.NET... How to write coding "Form Text characters move slowly right to left using of Timer"? Please help me and solve my doubt. Yours, Vijaykumaran Software Development vb.net | |
Hello, The form i am doing takes from the user the item price, then it will calcuate the subtotal, tax, shipping, and total when the button is clicked. How can i update it so if the user adds another item it will update the subtotal, tax, and total when the … Software Development visual-basic | |
I need a code which will print union of two strings. for example string1="1,2,3" string2="3,4,5" and print the result string3: 1,2,3,4,5 Could someone help me how to solve this? Software Development c++ | |
Hey, I'm a bit rusty at c++ and I'm sure that I'm just missing something stupid, but I have a class that takes in an ifstream object in its constructor. In my main function I create an ifstream, open a file, then pass the ifstream object by reference into the … Software Development c++ file-stream | |
Hello everybody. I've a question. I tried to change font size of textBox named "textBox1" Here is the function of the NumericUpDown: [CODE]private: System::Void numericUpDown2_ValueChanged(System::Object^ sender, System::EventArgs^ e) { String^ Num2 = this->numericUpDown2->Text; this->textBox1->Font->Size = Num2; };[/CODE] Errors that occur: [CODE] error C2039: 'set' : is not a member of … | |
I would like to move the mouse cursor from one position to another within a Jtextfield after a condition is satisfied. I do not know what to use. Thank you Software Development java pc-peripheral | |
Hi there, I'm not sure if this is impossible to achieve or not, but I have a C program that I created that is compiled with an a.out executable. Is there a way that I could have it start/run automatically after I log in? I have a Mac running on … Software Development c | |
Hi, I'm trying to write a program that converts a base x to a base y. It says that we are suppose to use two functions to do so: one that converts base x to base 10 and one that converts base 10 to base y but I don't understand … Software Development c++ | |
Hello guys. I'm wondering is it possible to stream mp3 songs from some site with java? I tried to find something but allways everything what i found was only for reading mp3 songs from local disk. If you know feel free to answer me. - Regards, David. Software Development java streaming-service | |
My professor told me these things are wrong:1) For getting the "#" sign in your board, you need to call the createTicTacToeBoard() method to create the board. The returning type of the method is char[][] createTicTacToeBoard() not the string, and you don't need to pass any array into this method … Software Development java java-swing | |
i try to put picture in mysql with vb.net, first i convert with this function : [CODE]Public Function convertImage(ByVal myImage As Image) As Byte() Dim mStream As New MemoryStream() myImage.Save(mStream, System.Drawing.Imaging.ImageFormat.Jpeg) Dim myBytes(mStream.Length = 1) As Byte mStream.Position = 0 mStream.Read(myBytes, 0, mStream.Length) Return myBytes End Function[/CODE] i try to … | |
please check the following piece of code and give the correct code as my program is showing some error. here is the code. public class passingArray { public int getCipherText(int[] c, int len) { int cipher = 0; int e = 7; int n = 130; cipher = (int)((Math.pow(c[len],e)) % … Software Development java | |
(C language) Hi.. Can anyone write a function to accept a character and display it 10 times?? Thanks in advance.. | |
[CODE]SqlCommand command = new SqlCommand("SELECT Id FROM users WHERE Username=@Username AND Password=HASHBYTES('MD5', @Password)"); command.Parameters.AddWithValue("@Username", pieces[1]); command.Parameters.AddWithValue("@Password", pieces[2]);[/CODE] doesn't return correct result [CODE]SqlCommand command = new SqlCommand("SELECT Id FROM users WHERE Username=@Username AND Password=@Password"); command.Parameters.AddWithValue("@Username", pieces[1]); command.Parameters.AddWithValue("@Password", pieces[2]);[/CODE] returns correct result, however the data in mssql database has to be not … Software Development mssql | |
How are you, I created a simple cash register code that makes the user selects the order from different buttons. I have some problem figuring out the following: 1. How can I get the total (if the user selects 1 or 2 or 3 different orders). I need to find … Software Development vb.net visual-basic | |
Hi guys well my code is below I am trying to set up error checking so that CREATETABLE will only execute when String v and string d are false and when string t is true. I've started the code. Which it works when String v or String d are null … | |
Hi All . I am trying to make a Frame to which we add dynamically Add panels. Also I want to remove panel dynamically . The dynamic Addition is working perfect. Please see the code below: # panels.py #self.Fit() causes the whole frame to shrink.So we are using self.Layout instead … Software Development python | |
I am trying to make a recursive program that prints out the numbers from 1-100 without using any iterations such as loops, but every-time it just keeps printing out 5050..? [CODE] #include<stdio.h> #include<stdlib.h> int counter(int num); int sum=0; int main(){ int result, num=100; result = counter(num); printf("%d", result); system("PAUSE"); return … Software Development c++ | |
I want to start C++, and I already know a fair amount of Java. So I ordered the book Accelerated C++ because I've read that it's a good book. But I was told that It's not a very good first c++ book? The only other c++ book I have access … Software Development c++ | |
Hi! I use scanners delimiter. The next() function for scanner should return me the string by these punctuators: | . : space But i don't know what to write inside scanner.useDelimiter("") parameter? For example for this string "abc.123,zqw ttt|AAA", scanner.next() should return abc scanner.next() should return 123 scanner.next() should return … Software Development java | |
can you please tell me what is make and what is use of it Can you also tell me what is meaning of a given statement "Apache Ant is a Java-based build tool. In theory, it is kind of like make, without [B]make's wrinkles"[/B] | |
Hello all, Basically I'm trying to code a program that makes use of recursion to reverse an input integer, e.g. 123 will result in a display of 321. I've coded the program this far, but it just displays the last digit only. Where have I gone wrong? I.e. Instead of … Software Development c | |
Hi, I want my output to show to two decimals.If the output is $6.075,instead of bring it to $6.08,i prefer it showed $6.07.How am i able to do this? I used the below System.Out but kept getting $6.08. [ICODE]System.out.printf("%s%.2f\n","State Withholding(9.0%):$",stateWithholding);[/ICODE] Thank You :) Software Development java ![]() | |
Ok so I've started learning Java and am half way the book 'Head First Java' (which isn't a bad book btw); but what they've failed to mention is when you know when you need to make a new class. I've learnt that each Class is for each object but how … Software Development java | |
i want to download windows 3.1 it must be in .IMG format to dd to a usb card in linux for my pc. i want to run old software. Software Development assembly | |
Hello and again this doubt has to be explained to my ten year old. It's about JWS (Java Web Start). Could you please explain the red-circled stuff in an easy way ( for my ten year old )? He has no ( no! (or) zero (or) 0 ) knowledge about … Software Development java | |
I have written this short code [CODE] import os import os.path import string import shutil import difflib Path = 'C:/RESULT/BATCH/SimpleInputParser/' SecPoint = [] FullList = [] newFile = [] for fileName in os.listdir(Path): if fileName.endswith(".inp"): f=open(Path + fileName, 'r') files = f.readlines() f.close() fp_clean = open(Path + "tempClean.inp", "w") fp_newFile … Software Development python | |
Hi Team; I am new to programming and C#. I am creating a calculator form, and need to ensure the user enters a numeric only value (no empty values are valid). I have 2 text boxes Value 1 & Value 2..The user must enter a numeric value only, and if … Software Development c# | |
hello ! i am developing an desktop application , i want to make my menus just like in VS2008 have tool box , ,when we click on the main tab it will open and slid down , i want to make same thing , is there any one who guide … Software Development vb.net | |
Haven't been around here in a long time but have returned to hear your thoughts and suggestions regarding my problem. I had been dev'ing projects in VB6 until around 2006 when I stopped all my development. Mainly it was a change in responsibilities but it was also because I had … Software Development microsoft-access vb.net visual-basic | |
This code finds the sum & average of the range of numbers that were chosen. I have int begin = 0, end = 0,sum = 0.0, avg = 0; because I get an error saying that all of those need to be initialized, yet by doing so it gives me … Software Development c++ | |
Hi everyone, I'm having issues incorporating something required by my assignment. I am supposed to create a class that has 2 private data members. One should be an array of 10 Database (Database being the name of the other class) objects. The other should be an integer that assigns the … Software Development c++ | |
can anyone tell me why my code would output the string designated plus ten or more characters of non sense at the end of it? my code also has a header with #include statements and a main that calls the functions. #include "String.h" //Default constructor String::String() { Text = NULL; … Software Development c++ | |
I'm having an error on my displayResult function. In the line: [CODE]cout << setw(17) << static_cast<int>(exptRoll[value-1] * intRepeats);[/CODE] I have a C2109 error (subscript requires array or pointer type. Does anyone how to solve this problem? [CODE] void displayResult(const int arraySize, double frequency[], double expected[], int intRepeats, double exptRoll) { … Software Development c++ | |
Hello C++ master out ther i need help guys this exercise is running but the desplay record is in row i want it in column. Thanks in advance! [CODE]#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <iomanip> using namespace std; char book_no[5]; char title[30]; char author[20]; char publisher[30]; char … | |
So here is something I am writing just to get back into code and I can't find the flaw with it. [CODE] template<typename T> class Array { public: Array(unsigned arraySize): data(0), size(arraySize) { if(size > 0) data = new T[size]; } ~Array() { if(data) delete[] data; } void setValue(unsigned index, … Software Development c++ | |
Hello guys!, so this is my problem, i'm trying to make a paint-like program in C++ using the WinBGIm libraries (im using Dev-C++), so i need to program a paint brush. Here's what i've managed to code: 1)Create a canvas 2)Create a clickable button (it just returns if it is … Software Development c++ | |
Hi everyone, I'm trying to to output an entire character of arrays in my program. I am using a header file with my class, and a source code file for my method definitions. Here are the relevant parts. The method definition for getName() [CODE] char Account::getName() const { return *AccName; … Software Development c++ | |
hi, is there any way to restart Tkinter program while running. I would like to put some button that will when pressed put everything as it was in moment I started program thx | |
I am wondering how to read a file in c... this requires some more background information before you give me something useless What I have so far: [CODE]#include <stdio.h> int main(void) { FILE *fpr,*fpw; char C; int I; fpr = fopen("cwM.dat","r"); fpw = fopen("echocwM.dat","w"); while (C != EOF) { fscanf(fpr,"%c",&C); … Software Development c file-system | |
Hey guys, I'm fairly new to assembly & i'm having trouble iterating through an array; i.e. increasing the index as I loop. I'm working under x86-64 in Linux using NASM. There doesn't seem to be much documentation on the 64-bit architecture. Also, the book i'm using seems to code all … Software Development assembly | |
Hello people. Does anyone know if it is possible to post a variable to a c++ http tunnel or http connection. In php you can do this when you want to qualify someone on an email varification. People do this in a message so when someone clicks on the link … Software Development c++ first-post | |
Hi iam facing the problem while compiling the below program, program.h ------------headerfile typedef struct { unsigned char c ; unsigned int i ; unsigned long l ; }data_t ; program.cc ------c++ file # include <iostream> # include <malloc.h> using namespace std ; # include "ptr.h" int main() { data_t data[] … Software Development c++ | |
Hello, I'm working on a project and the value of num is AdditonalAdultQty + AdultQty (AdditonalAdultQty and AdultQty will be inputted from the user) Then those two values will be stored in the text file. When the program runs again and a different user will input how many tickets he … | |
I've tried using the javac command inside the command prompt but it says "javac not recognized as an internal or external command". the java command works perfectly fine. On the other hand, I can compile stuff using the Textpad program. Anyone know why this might be happening? Version of Java … Software Development java | |
Hi everybody, I need you to answer these questions please. 1- How did you learn c++ : a-books b-videos c-in school or university d- other : 2- How did you feel when learning : a- Bored b- Interested c- other : 3- Was it the first language you learn ? … Software Development c++ | |
I need help, The array in Class Loto generates 6 random numbers and print them out. the Class Lotto askes the user to input 6 numbers which are stored in an array. i need code to compare the two arrays and see if they equal each other, and if they … Software Development java | |
Ok. First off, here is the question I am answering Problem 3: Write a program that will read monthly sales into a dynamically allocated array. The program will input the size of the array from the user. It will call a function that will find the yearly sum (the sum … Software Development c++ | |
I have to write a program that should read test scores students received on the first quiz into an array. Assume that up to 30 students could be entered. Input will stop when the sentinel value -1 is entered. Write functions to: 1. Read the original scores into arrays 2. … Software Development c++ |
The End.