132,726 Archived Topics
Remove Filter ![]() | |
Hi guys good day.! I have two numbers(105 & 210). I want the 105 to be left align in textbox1 and 210 to be right align in the same textbox at form load. Would this be possible.? Thank you guys for giving time with this post.! God bless us all. Software Development visual-basic | |
Hi! I m getting difficulty in pointers can u help ? Software Development c++ | |
Mkay so im not sure if this is where to post this thread...but im sure anyone here can help me out here.... I work in a ware house full of equiptment of different types, all of which have a different S/N barcode. every morning i scan multiple pieces into an … Software Development c++ | |
Hello, I'm learning C# and i want to know how i can add a item in a ListBox like this, the user click in a button, then it creates a item in the ListBox and in the ListBox the user digits what he want in that field, when the user … Software Development | |
I would like to create a program to check dimension of piece part. My probram should be consist of interface form to get input from user and display mode to show the final result after program completely processed. Now I have completely created user interface form that is "Form1". This … Software Development display user-interface visual-basic | |
I have a datagridview control which shows workdays from database, now i've to find /search the date picked from datetimepicker, when the selected date is found in the grid, pointer should be in that row or that row should be selected.can anyone help me how to do it?thanks in advance. Software Development c# | |
Dear Friends I worked with VB.NET V 2005 In my project i have using so many sql statements (insert, update..) those working properly In newly i created form i have coded sql insert statement so when i execute it its getting error "Number of query values and destination fields are … | |
This Question is not programming related but rather important for all compiler related programming languages especially the Language C. what is portabily? since my graduation i have been taught C is not 100 % portable language. but i dint get any satisfactory answers for,not 100 % portable? where its lagging … | |
Hello! This is my first post and I am a beginner in Java programming-so don't come down on me too hard :) I have a problem that I need to solve over the weekend and I was hoping some of you could help me out. The problem at hand is … Software Development java | |
I am having a bit of trouble with a property. I am developing a class "Photo" which has properties etc for a single photo using System.Drawing; public Image Imge { get { try { return _Imge; } catch { Bitmap bm = new Bitmap(100, 100); Graphics g = Graphics.FromImage(bm); g.Clear(Color.WhiteSmoke); … Software Development c# | |
Hi, I am getting an error called 'Data type mismatch in criteria expression'. This only happen when I tried to add an item. Can anyone tell me what is the problem with my code? I am using access database. Software Development vb.net | |
[CODE]#include <iostream> using namespace std; int main() { cout << "Enter the number of students: "; int numberOfStudents; cin >> numberOfStudents; double score = -1; for (int i = 0; i < numberOfStudents; i++) { cout << "Enter a student score: "; int score1; cin >> score1; if (score < … Software Development c++ | |
I want to have a date picker for my application. It should be really simple... I went through many examples. But all I found contains very large files (LOCs)....How can I impliment a simple calender? to pick a date and time.... (jst wanna use them in two comboboxes... to pick … Software Development java | |
Good day.! This will be my problem regarding on how to update the listview when one of the data in the field in sql server tables has been changed.basically, i have achieved the result by looping on the table continuesly with a timer. But is there any other way to … Software Development gui listview sql visual-basic | |
[CODE]for(int i=5;i>=1;i--) { for(int j=5-i;j>=1;j--) { cout<<" "; } for(int k=1;k<=i;k++) { cout<<"* "; } cout<<endl; }[/CODE] sorry but can someone explain this coding to me? T.T'' Software Development c++ | |
Hi all, just started working on .NET...:) I was making a MDI app with vb.NET and SAPI i used System.speech.recognition namespace and SpeechRecognizer element.. working for single doc.. bt when i go for new form with same giving [B]An error occurred creating the form. See Exception.InnerException for details. The error … | |
I am desperately need help converting my code into an OOP format. [B][I]Here is my code:[/I][/B] [CODE] #include <iostream> #include <string> #include <cstring> using namespace std; const int strLength = 141; char strArray[strLength]; char answer; bool quit; int charAmount; string line; void vowelCount(string); void consonantCount(string); void consonantCount(string line) { int … Software Development c++ | |
Hi All, Is it possible to convert an arraylist of chars to an array? For example: ArrayList<Character> array = new ArrayList<Character>(); Can this be converted to an array of chars. I have tried using the toArray method but it is not working. Does anyone have any suggestions? Thanks, Kimjack Software Development java | |
This program is (as you can see in the notation) a homework assignment I'm doing for class. I wrote the whole thing, which as far as I can tell right now is logically functional. It takes commands from a user and uses them to denote what happens to a linked … Software Development c linked-list os-x unix | |
i would like help with the template i am writing for some reason i can't get it to work. I would appreciate help. [CODE]#include <iostream> using namespace std; #include <iomanip> int() { cout << "This is a template.\n"; system(pause) }[/CODE] Software Development c++ | |
Can someone help me please, I am getting this error: [B]stringdefinition.cpp(7) : error C2448: 'stringClass::wordCount' : function-style initializer appears to be a function definition[/B] When trying to compile this code: [B][U]StringHeader.h[/U][/B] [CODE] #ifndef H_StringHeader #define H_StringHeader #include <iostream> #include <string> #include <cstring> #include <algorithm> using namespace std; const int strLength … | |
I wrote this code for a small project, and I am probably declaring a method in a method, because I keep getting "illegal start of an expression." This is happening at line 27, and 43. I am fairly new to java, so please don't be to harsh. I might have … Software Development java | |
I just finished this project, thought I had it done, but on line 1, it's telling me, "incorrect Package". What am I missing here? [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class JavaNotepad extends JFrame implements ActionListener, KeyListener { boolean txtChanged = false; String fname = ""; … Software Development java java-swing window-manager | |
Please help me with this assignment as well, because I am receiving a error when Running the application. The error I am receiving is: Exception in thread "main" java.lang.Error: Do not use Stock.setLayout() use Sto ck.getContentPane().setLayout() instead at javax.swing.JFrame.createRootPaneException(JFrame.java:458) at javax.swing.JFrame.setLayout(JFrame.java:524) at Stock.<init>(Stock.java:50) at Stock.main(Stock.java:36) Press any key to continue … Software Development java java-swing programming-construct | |
//This program will calculate the compound interest. import java.io.*; import java.text.*; public class Program08 { public static void main (String args[]) throws java.io.IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); DecimalFormat roundMyDecimal=new DecimalFormat("0.00"); float amount; float principal; float interest; float compounds; float years; System.out.print("Enter the principal: "); // inputs principal. … Software Development java | |
Hi, Im new to c++ and Im struggling with something. I have a load of classes that all connect to each other. I globally overloaded the << operator for each class. So in my main I do the following: [CODE] FixedSizeMatrix y(5,5); cout<<y; cout<<y; [/CODE] The first cout works fine … | |
[code]class Complex { double real, img; void setValue(double i, double x){ real=i; img=x; } public double getRealPart(){ double a=real; return a; } public double getImagPart(){ double b=img; return b; } public double getMagnitude(){ double magn=Math.sqrt(real*real+img*img); return magn; } public Complex add(Complex c){ return new Complex(real+c.real, img+c.img); } public Complex multiply(Complex … Software Development java | |
I'm actually writing this code as inline ASM but I feel it is more relevant to ASM than it is to C... Basically all I want to do for now is print the alphabet. However I'm having some trouble getting used to AT&T syntax (I would rather learn it than … Software Development assembly | |
I must write a interface to enter course information for transfer students. The created data file should be sequential in nature, with the student's name, his/her ID number, the course number from the previous college, and the accepted course number at the current college. The code I wrote so far … Software Development file-stream java java-swing programming-construct user-interface | |
Hi all, Im fairly new to java and any assistance would be appreciated. The following should output string values, but if i use text within the creation of the new CD object i get an error, unless i change the content to numbers. I know the driver class is fine, … Software Development java | |
Hi, This is a very simple question. Is it possible to print a one dimensional array into the shape of a grid? For example if I have the follow array: chars arrayofChars[] = {'A', 'B', 'C', 'D', 'E'...}; how can it be printed out as A B C D E … Software Development java | |
Hello, I'm new in shell scripting and i face some problems. I need your help to calculate a logarithmic expression in shell script for example i have 2 variables x1 x2 $x1=3 $x2=5 $Result=`expr x2 * log2 x1` ???? $echo "Result is $Result I know that this is wrong and … Software Development shell-scripting | |
Good Day People I'v just finished my project in VB6.0 and now have to include reports for the program. I would like a button in VB6.0 to direct to a report in crystal report V85. I'm just not sure how the code on the button is supposed to be. Could … Software Development visual-basic | |
I have a (for me) a big perplexing problem. I am new to Java and am in a introductory class. We were suppose to create/"fix" a method for Formatting ISBN-10's. Our Professor gave us all the code and the classes but we need to implement another "design teams" code for … Software Development ide java user-interface | |
I've created a class, Category. [CODE=cpp]#ifndef CATEGORY_H_INCLUDED #define CATEGORY_H_INCLUDED #include <string> using std::string; enum Type {Integer, Double, Bool, String, Date, Time}; class Category { public: Category() : itsType(String) {} Category(Type type) : itsType(type) {} Category(string name) : itsName(name) {} Category(Type type, string name) : itsName(name), itsType(type) {} ~Category() {} void … Software Development c++ | |
Would this do any damage if I left it running for a while: [code=c++] int main(){ while(1) new char[0]; } [/code] Software Development c++ | |
Hello, I've been working on a fun project of my own. I didn't really start out with a plan in mind, but now it has turned into an attempt to make some Advance Wars type TBS game. The problem I ran into is trying to display the base "terrain" image … Software Development api image java java-swing | |
what code do use to link a child form to a parent form under a radio button? Software Development visual-basic | |
Hi i am making a window application in which i want to know that when my application is start, so it should automatically get focus on textBox, how can i do that......... Kindly help me in this...............? Software Development | |
I was trying to implement a queue using linked list and the problem is when i try to call dequeue() method, nothing shows up and no errors too. just NULL values for all nodes. take a look @ this code and tell me if there is anything wrong... ps. Do … Software Development c++ linked-list queue | |
I'm trying to read a file which contains: Dante Beatrice 3 5 and put them into an array. Then I will assign the values of each member of the array to static variables. when i run the main class of my project, it throws a NullPointerException starting from the line … Software Development java | |
can someone help me???? give me coding for display 1 12 123 1234 1,3,5,7...n 123 456 789 help me... and give me coding for while loop generate 0,1,1,2,3,5,8 sent coding to my email [I]<snipped>[/I] thank you..for da help... Software Development java | |
So im just trying to understand a simple program in C++ but i keep getting an error when trying to compile this code. The error is [Linker error] undefined reference to `Player::getHeight()' . So i have my main code in one file called Main.cpp: [CODE]#include "Player.h" int main() { Player … Software Development c++ | |
Hello, and thank you for taking the time to help me out! I am working on my first real C++ program, and have the code almost entirely written. The assignment is to write four files, CPU.h, CPU.cpp, Computer.h, and Computer.cpp, which maintain information about an object (a computer), and then … Software Development c++ | |
Hello. I need some help with my program wich shoulc calculate letters in a sentence and then print out the longest, shortest, how many words, and what's the avrage value. Thanks for some help. :) [CODE]#include <iostream> #include <string> using namespace std; int main() { int word; int n; string … Software Development c++ | |
It goes "BLEEP" when one of these strings are input. [CODE]int main() { vector<string> words(); words[0] == "roller coasters"; words[1] == "waiting"; words[2] == "people who talk on the phone while driving"; words[3] == "wars"; string temp; while (cin >> temp) words.push_back(temp); for (int i = 0; i < words.size(); … Software Development c++ | |
Good day to everyone. Im just able to finish my banking system with QB SDK integration. I just want to ask help, idea or any other way to make a mathematical operation in a single textbox.Like you can perform to add two numbers in a single textbox and display the … Software Development visual-basic | |
The following code snippet can be used to convert a decimal integer into any base from 2-16. This is a simple piece of code and I hope t proves useful to people. I see many people posting Decimal to Hex. or Decimal to binary, non any better than the next. … Software Development c++ | |
[CODE=cpp]struct Table { char* aTag; char* bTag; }; int main() { Table T1; cout<<T1.aTag; cout<<T1.bTag; return 0; }[/CODE] This might be crazy but... i really need to know is there any way to so that we can only write [CODE=cpp]cout<<aTag cout<<bTag [/CODE]instead of [ICODE]T1.aTag[/ICODE] like we do in [ICODE]namespace [/ICODE] … Software Development c++ |
The End.