No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
package filehandling; import java.awt.event.ActionEvent; import java.io.*; import java.awt.*; import java.awt.event.ActionListener; import javax.swing.*; public class Filehandling extends JFrame{ JTextArea ja; JButton jb; Filehandling() { setBounds(400,400,400,400); setTitle("azeem"); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container cont= getContentPane(); ja=new JTextArea (); cont.add(ja,BorderLayout.CENTER); JPanel jp= new JPanel(); jb=new JButton ("Save"); jp.add(jb); cont.add(jp,BorderLayout.SOUTH); setVisible(true); } public static void main(String[] args) … | |
Here my code. package formsign; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import javax.swing.*; public class textF extends JFrame{ private JTextField fname; private JTextField lname; private JPasswordField pass; private JTextField country; private JTextField zip; private JTextField month; private JTextField day; private JTextField year; private JTextField phone; private … | |
I don't know what I am missing. Help me. import javax.swing.*; import java.util.Scanner; public class Operator { public static void main(String args[]) { String num1,num2,op; int ans; Scanner cin = new Scanner(System.in); num1 = JOptionPane.showInputDialog("Enter First Number"); op = JOptionPane.showInputDialog("Enter Operator"); num2 = JOptionPane.showInputDialog("Enter Second Number"); char c = (char) … | |
Hi... I just want to ask What are requirments to make a portal system? Like student-portal system of a University? | |
i am trying to write input() function into file..... please help.... i am using visual studio 2013 // N Copy.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "iostream" #include "fstream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { fstream file; file.open("NCopy.txt"); file << … | |
I am using Visual Studio 2013. Error in structure... syntax error : missing ';' before '<<' unexpected token(s) preceding ';' #include "stdafx.h" #include "iostream" #include "fstream" #include "string" #include "conio.h" using namespace std; struct input { char f_name[13]; char l_name[13]; char gender[6]; char section; int age; cout << "Enter Your … | |
runtime error "not recognized as an internal or external command, operable program or batch file" # include <stdio.h> # include <stdlib.h> # include "iostream" using namespace std; int main() { char ch; cout<<"Do you want to Logoff your computer now(y / n) \n " ; cin >> ch; if (ch … | |
I am using visual studio 2013. I am just a Beginner. Trying to make a shutdown Program in c++. its give the errors. 'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file. 'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file. 'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot … | |
I have same type of errors in my program please help me out.... I am just a Beginner in C++.... #include "iostream" #include <stdio.h> #include <conio.h> #include <stdlib.h> using namespace std; class form { private: char fname[20]; char lname[20]; char add[50]; char city[25]; int contact; public: form() { fname[20]='\0'; lname[20]='\0'; … | |
Re:
I have used sdl_ttf in opengl . but i have this error : error LNK1104: cannot open file 'SDL_ttf.lib' i already have tried to remove the "SDL_ttf.lib" , but it didn't useful. i have trid used : lazyfoo.net for setting up the opengl with sdl pls tell me what must … | |
Helloo... I am making a simple notepad program. I don't know how to move cursor using ASCII Table. I am using Two way doubly Linked List method to insert characters. And file handling to save on file. I don't know how to move cursor on up, down, right and left. … | |
Can Any body do it???? These are Some Info..... Create a notepad that allows the user to write text on the console. For this purpose, the user should be able to control and track the movement of the cursor. The user can access, add and delete any part of the … | |
Re:
Hello all: I have written a function that gets data (numbers) from a text file. My function works by taking a line from the text file, discarding unnecessary symbols, and putting the numbers into a vector. Here's a snippet: // Get data from text file. Values then put into one … |