43,549 Solved Topics
Remove Filter ![]() | |
i am newbie to java.i am trying to run a program to show "static method" and "static variable ".my code is below.i am compling it on netbeans 7.01 and everytime i am getting the error.: "main method not found in class static_demo.Static_demo, please define the main method as: public static … Software Development java java-netbeans | |
How can I get the coordinates of the output of a truetype font. I need to write a function like so: [CODE]struct CartesianCoord{float x,float y}; CartesionCoord *printfont(const char *filename,char ch, int &len) { /*Read the font in filename.ttf and convert it to a set of vertices describing the resulting shape. … | |
How can I count the number of items in the listview. Example scenario. Today, I added students say, 20 students. and tomorrow I added another 15 students, i need to have a breakdown on how many students i have been adding per day. Please help me. Thank you guys! Software Development listview vb.net visual-basic | |
Hi again! I have a database and some tables filled with data. [code=c#] var club = Baza.Clubs; //Baza is dataset, and Clubs is table var schedule = Baza.Schedule; // same as above for (int i = 1; i <= 90; i++) { if(schedule[i].day == 2) // BOOM! Breaks at first … Software Development dataset | |
Can someone please help me find what is wrong with my code below. The program is suppose to add all the input numbers except for the sentinel which is -1. What am i doing wrong? import java.util.*; public class InClassWork { static Scanner console = new Scanner(System.in); public static void … Software Development java | |
Hi, I have a very basic knowledge in C/C++, I need help in converting HEX value to readable values. I hope some one would give me a clear answer and make it understandable also so that i could learn from it.. thanks Software Development c++ | |
Hello guys, I've newly joined this forum since I want to enhance my knowledge in Programming specially in Visual Basic. So for the important part, right now I'm planning on creating a word detector somehow and there are specific rules I was to set in the textbox in relation with … Software Development vb.net visual-basic | |
whats the error in here? everytime i run this program even though there are no red underlines and signs still, it say theres an error in here ... and how can i do the same program using if else statement? i have started doing if else but my program its … Software Development java java-swing | |
I have create a JFrame for my Login Screen. I need my JFrame to be Non Draggable. I tried the setUndecorated method. It makes the Jframe Non-Draggable. But I am not able to view the border of the Jframe and also the minimise, close buttons. So what is the alternative … Software Development java java-swing | |
now i am working on an exercise that asks to write this without recursion.... can anyone guide me to what i can do to make this work? i dont want anyone to do it for me but help would be appreciated. [CODE]/* #include <cmath> using namespace std; void getAllDivisors(int n); … Software Development c++ | |
Hi, How can I create a dialogbox, I think that will allow user to open or to save as a textfile? Is it possible? If yes, how can it be made? Thanks Software Development vb.net | |
I have this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near and I don't know how does this happen because whenever I check the SQL that I have made including the inserted … | |
hello guys, how do you write app.path in vb.net coz it works in vb6 but not in dotnet Software Development vb.net | |
Hi everyone, I am trying to idetify the position between start_posi and end_posi and I want to have all information of this position. For Example: [CODE]input 1 : num start end 1 1234 1238 [/CODE] [CODE]input 2 : num position information 1 1236 ACGT [/CODE] [CODE]out put 1234 1236 1238 … Software Development perl | |
Hi, I have this program that validates error and then logs it in a text file, but here is the problem, I want to know how show the text file that has been made after the logs have been written, for example, I have validated all the errors, and then … Software Development file-system vb.net | |
i have Register page and Login page.And for save usernames and passwords i used arraylists in a servlet.how can i forward these arraylists to another servlet for validate username and passwords..? Software Development java | |
Hello, I'm working with files in a C++ project AND the text file that I need to open is in the same directory, however when just trying to open it like this: [code] string inputFile = "myText.txt"; [/code] It will not open, even though it's in the same directory, so … Software Development c++ | |
So i have a problem that reads: Each line of the file consists of a student’s name followed by an unpredictable number of test scores. The number of students is also unpredictable. The desired output is as shown where the numbers there represent the average test score rounded to the … Software Development file-system java | |
// I want to make a program having Queue class where message class instances are being used as messages. Later I want to use another class exchange that takes the messages and distribute to the Queue according to messageID. if message id is "111" the Queue named Q11 should be … | |
Hello, people I only registered here for this matter (although it is a great forum). I am a ph.d. student and need to investigate eigenvector centrality measure for my homework. I found Phyton code on net and would like to see does it produce the same results as mine, written … Software Development python | |
I feel really dumb asking this, but why does this code print b,b instead of b,a? the second strcpy() is supposed to copy "a" and put it inside a[1]... [CODE]#include <stdio.h> #include <string.h> int main(){ char a[100][100] = {"a","b","c","d"}; char*temp = a[0]; strcpy(a[0],a[1]); strcpy(a[1],temp); printf ("%s %s",a[0],a[1]); getchar(); }[/CODE] Software Development c | |
I'm suppose to follow this algorithm: 1. Declare all ordinary Variables 2. Prepare and initialize all arrays. 3. Prepare array to hold all item cost. 4. Initialize Array cost with 0.(using for()statement) 5. Compute cost of each item then store results to array cost.(using for()statement) 6. compute average cost(using for()statement) … | |
Actually i try to create a method which can call the scanner keyboard firstly i was trying this void makeRequest(){ request ="Hello"; } So i wanna make like when i call this method it will tell me to input the String by scanning the keyboard is it possible to do … Software Development java | |
why is that some of the codes that i put in are not being implemented when i run this?? i mea, the cycle of my program doesnt seem to be flowing the way i want it to be, come take a look :( [CODE] { /** * @param args */ … Software Development java | |
is it possible to pass this to a function? it's size is configured at runtime. for example, [CODE] void test(string s[][]) { return; } int main() { int x, y; cin >> x >> y; string s[x][y]; test(s); return 0; } [/CODE] Software Development c++ | |
I have this question. I have already imported all the excel data in the datatable, but now I want them stored in a 2 dimensional array, meaning I want to have this kind of thing in the array, something like array[x][y], where x is the row and y is the … Software Development microsoft-office vb.net | |
I'm a student just starting my first C# class in school, our first assignment was to make a simple console app to convert temperatures from Fahrenheit to Celsius. Being the over-achiever that I am, I decided to make a second project and create a form app. It's a very simple … | |
Dear All, I have the following code but I need to make the users add text to my (Combobox) drop down list. [ICODE]Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim userMsg As String userMsg = Microsoft.VisualBasic.InputBox("Enter New City", "New City", "", 500, 500) End … Software Development vb.net visual-basic | |
I can't figure out what the error is. [CODE]public void quizTest () { c = new Console(); int total = 34; String[] quizArray = new String [total]; String quizQuestions; int i = 0; int u = 0; try { FileReader readQuestion = new FileReader ("QuizQuestions1.txt"); BufferedReader buffReadQuestion = new BufferedReader … Software Development file-system java | |
i dont know that my error is, my code for balance is not working properly and im having a problem with my if else statements, they say i lack this "{" but i dont know where to put it [CODE] { /** * @param args */ public static void main(String[] … Software Development java | |
When I run my code, and advance from level to level it works correctly, but when I would like to restart my program I cannot get the frame to reset. Here is my code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Frame implements KeyListener{ GraphicsDevice vc; Player p … Software Development java java-swing | |
Hi people, I need to change return type of a function. So function should return array values.In here, data type of the array values are not int,char or double. The data type of the array values are a kind of custom type. So confused. Please help:scared::idea::( [CODE] [COLOR="Red"]void [/COLOR]DataType_Class::insert_rowData_into_array() { … Software Development c++ | |
Hello, fellow programmers. Today I encountered a problem getting the 2d array length. By this I mean How many x values are filled, that all the x's sub values are filled {y}. ex x-> 1, 2, 3 ,4, 5, 6 y 1, 1, 1 | 2, 2, 2 3, 3, … Software Development java | |
Hi all I tried todo javac command on two classes (one after another) the problem is when I javac the first it gives me error ,because class of the second not already exist,the same happen when i javac the second ,class of the first also not already exist. how to … Software Development java | |
I'm writing a small app to do automated testing of a console application. It needs to repeatedly run the app with various options and handle when the app being tested crashes. I started with system(), moved on to spawn() and have since been trying CreateProcess(). It doesn't lockup when the … Software Development c | |
Hi there, I am very much interested in learning vb.net or programming. Can someone help me how I can go about and learn basic? Thanks' Fvere Software Development vb.net | |
I need to override the Close button an a C++/CLI Form application, allowing the user to cancel the close. This must have been asked a zillion times, but I can't find an example specific to C++/CLI Form applications. My Form class starts with: [code]namespace TR31Forms { using namespace System; using … Software Development c++ | |
I am working on an OpenGL project in C using Xcode 3.2.6. It is a tutorial program and yet I am having problems with it. When I double-click Project.app, it opens for a quarter of a second then closes. The source is: [CODE]#import <Cocoa/Cocoa.h> #include <GLUT/GLUT.h> int main(int argc, char … | |
I have a base class and a derived class. The base class has an int called a that needs to be initialized. I want to create an instance of the derived class, so I call its constructor and pass it an int. I want that to call the base's constructor … Software Development c++ | |
I'm trying to pass a list from a function to another using templates but get this error message: [QUOTE]/home/mattias/CodeBlocks/SpelBeta/src/player.cpp|64|undefined reference to `void Ground::bulletsCollition<Bullet>(std::list<Bullet, std::allocator<Bullet> >)'|[/QUOTE] Here is the code: [CODE] //In the function calling the template function (*blocks).bulletsCollition(player_bullets.getList()); //In header that the getList is declared #ifndef BULLETLIST_H #define BULLETLIST_H #include … Software Development c++ | |
Hi all, I just need the array type of Person object. So it will be an array object. Please some help. [CODE] void SomeOtherFunction() { MyDataType ^Person = gcnew MyDataType(); // simple Person object (C++/CLI) } [/CODE] Software Development c++ | |
I have a GDI component I use for creating graphical objects on my form. This component contains a Transformation_Matrix class. When I populate these matrix objects I have the ability to multiply them together to obtain a new transformation matrix. E.g. Transformation_Matrix matrix1, matrix2, matrix3 ... do stuff to populate … Software Development matrix-multiplication | |
Just want to ask, how can i create a log file on vb.net, what libraries should i need for this to work,. thanks Software Development vb.net | |
Hi, This is my situation. I am entering a value in textbox and click the find button. In the button click i've written the following code, but it does not yield any result. Kindly help. [CODE] dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbsource = "Data Source = D:\sprrg.mdb" con.ConnectionString = dbprovider & dbsource … Software Development open-source vb.net | |
i tested the following code as my teacher told me but it wont do what i want it to [CODE] vector<GameObjects*> blockers; blockers.push_back(new Wall(pictures,i,j)); vector<GameObjects*>::iterator k = blockers.begin(); for(;k != blockers.end(); k++){ cout << typeid(**k).name() << endl; } [/CODE] what i want to get is "Class Wall" but i only … | |
Hello forum, Vaironl here. I have a small question, I'm making a new screen using the GridBagLayout, since my old screen was using absolute positioning. I'm using a JScrollPane and setting a subPanel in it. THe subPanel contains 40 labels saying Ingredient. For some reasong the Ingredient Scroller will take … Software Development java java-swing | |
Hello, how to set label location in top middle at run time according to the text length. For example i have one panel control of size 316,162 and one label at top it displays the security que from the database like what is your pet's name? Or who is your … Software Development |
The End.