64,152 Solved Topics
Remove Filter ![]() | |
Anyone know of a good shell script beautifier that works in either unix or windows or a way of properly indenting/tidying up code??? | |
Hi, this is my first time posting to this forum so please let me know if I'm doing anything wrong. I would like to know how to do the following... a. Write the internal representation of “17” in ASCII using two binary numbers b. Write 17 and -17 in two’s … | |
I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to … | |
Please help me in doing this problem in C++ without filing ______________________________________________________________________ [code=cplusplus] #include<iostream.h> #include<conio.h> #include<stdio.h> #define min(a,b)((a)<(b)?(a):(b)) int a[6000]; main() { file*input=fopen("number.in","r"); int n,p2,p3,p5,p7; a[1]=n=p2=p3=p5=p7=1; while (a[n]<2000000000) { a[1+n]=min4(2*a[p2],3*a[p3],5*a[p5],7*a[p7]); if (a[n]==2*a[p2]) p++; if (a[n]==3*a[p3]) p++; if (a[n]==5*a[p5]) p++; if (a[n]==7*a[p7]) p++; } { fscanf(input,"%d",&n); if (n==0) break; printf("the%d",n); if … ![]() | |
How can I link to another URL when my web page opens without clicking on "link"? I'm just learning html and understand how to link using the anchor and href. Example: [code=html]<html> <body> <p> <a href="http://msm/com"> Click Here </a> </p> </body> </html>[/code] How can I get my webpage to open … | |
Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already … | |
Hi: I have to write a program that uses methods and arrays. I have to create a method that creates an array and populates it with 10 random numbers between 1 and 10 inclusive. Then I have to write another method that sorts the number from lowest to highest and … | |
i am using php to upload images onto the server and then they are being displayed on other pages around the site. the problem i am having is if the user changes the images that they have uploaded the old ones are displaying from the cache. i would like to … | |
am trying to figure out how to insert a new number in a linked list after a specified number...i am failing to figure out how to fix in the number in the list...here is the partial code..any help is appreciated [code=cpp] void insert(detailsPtr& head) { detailsPtr prev, current,tmp; int num,curr_num; … | |
hi, how can I read all the names of files present in a folder and store it into an array???. | |
Hi all, I am a newbie to programming and have almost complete my assignment 'Frequency of words and phrases' to a satisfactory standard. My program reads a text file and counts the number of phrases within the file (A phrase is defined as a sequence of one or more words), … | |
In my aspx page.background image should be static whereas my remaining functionality(i mean controls or anything) should be scrolling.How to apply this. | |
hello, i have written a program which selects each record in the database-table(having ip,status and other fields) pings to that ip and if a reply is obtained then the program establishes a socket conn b/w another comp and exchanges information,if info is exhanged then nothing is to be done to … | |
Hi I am new to the dot net field i need to do my login page in which i need to give specific home pages for admin and other users i dont know how to do it kindly help me with some code for authentication for different users | |
Hi, I am trying to create a custom web control that inherits from System.Web.UI.WebControls.Gridview I would like to add a custom template field which has label control showing serial numbers, i am able to add a serial number column during run time in a normal grid view, but i could'nt … | |
I have the tutorial running with a entire database displayed. I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] The above tutorial creates a jDesktopAPP. with components bound to the table. I am trying to add a button (basically). I am in the process of understanding binding. the program loads with … | |
i have a program running with lot of system.out.println statements.. i want to display this in a javaframe...can anyone tel me the steps to go abt it | |
I have a feeling this question might be a no brainer to all you. But is it possible to convert a string object to an istream obj. Because what I need to do is read the string expression and then calculate it using the "read_and_evaluate(istream&)" method in my if else … | |
I have this code that opens a Form. This code does work but if I just close the Form that did open with this code and press the button5 again, I will have an Errormessage: [B]"Cannot access a disposed object. Object name: ´Form2´."[/B] But if I change: this->form2instance.Show(); to: this->form2instance.ShowDialog(); … | |
I have a Form witch scrollbars that is called Form2. Is there any way to programatically go to the top of the Form without having to scrollup with the mouse ? So if you have scrolled down to the end of the form. Is it possible to press a button … | |
Hello everyone. I had a quick question. How can I go about setting constraitnts for a JTextField. I'm trying to not allow users to enter any non numeric numbers, except for dollar signs, commas and periods. Also how can I restrict a JTextField to only allowing two numbers to be … | |
hi, i have a problem with my form so i have a form with windowstate = maximized now there is a button in that form that if i click on, a new form will be opened. so the problem is that if the new form has been opened and i … | |
Hello all, I'm having some problems with joins in SQL. I hope someone here can help me out a little bit. I'm using MS SQL 2000 Server. I have the following tables & data: [CODE] [B]Table: tUsers[/B] id location contact_id ----------------------------------------- 1 1 2 2 2 4 3 1 5 … | |
Hi I am using Visual Basic Developer 2005 I have this simple code that will delete all files created before today in the specified folders. The code works fine but I get an exception problem when the fso object deletes the files ie at fso.DeleteFile(file) inside the second For loop. … | |
I am running this loop where I am substr a vector like below and then ´creating´ a new string "NewData" that I will pushback in a new vector. The thing is that I got an Error message when running this code but if I instead change these 3 lines to … | |
There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax): [code=Python]var1 = raw_input("Input a number between one and three.") choose var1: case "1": print "You inputted one." case "2": print "You inputted two." case "3": print "You inputted three."[/code] Or something … ![]() | |
Hi Guys! I am trying to make a simple and very basic Database in Python. Something, like a small agenda with contacts. I make a dictionary within the script and I was trying to update that info with new Input data. The problem is that I am not sure I … | |
Euhmm Ok i got some error that tells me that i can't open the program because there some error in my syntax but I really don't know where is the problem it self. #include <iostream> #include <iomanip> #include <cmath> #include <fstream> using namespace std; void voircatalogue(fstream&); void ajoutitem(fstream&); void ajoutclients(fstream&); … | |
[code] void firstClass(int f); void businessClass(int b); void coachClass(char typeTicket); int main() { char type; cout<<"Please enter your which class you want to fly. (f=firstClass, b=businessClass, c=coach)"; cin>>type; cout<<endl; //bad data check while (type != 'f' && type != 'F' && type != 'b' && type != 'B'&& type != … | |
Hi, I want to show a login pop up window that has the username and password, I want it to be like the prompt. Can anyone help.... | |
Hi i am having listbox,i want to open a new window after doubleclick of particular item in listbox in asp.net | |
First off I'd like to say I'm a beginner in C++ (VB was my stronger point I think), so be gentle about how gigantic my code is. I've been working on a project for a class for a couple days now, it's not due for a couple days, but for … | |
this is what i am trying to do. Write a simple program that do the following: 1. Accept user input for date in format of (YYYY-MM-DD). 2. Validate YYYY, MM, DD are number. 3. Validate whether this input is a valid date. 4. Print a monthly calendar for the month … | |
i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of the programs you made already.When i made the application one of my code … | |
[code=java] import java.awt.Color; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.SwingUtilities; public class Testing extends JFrame { public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run(){ new Testing(); } }); } private Testing(){ super("tester"); launch(); } private void launch(){ setBounds(200, 200, 300, 300); setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel topPanel = new … | |
How is it possible to delete all Rows from it´s contents in a dataGridView1 ? For example I have 10 Rows and 15 Columns with Information. Thanks... | |
How is it possible to programatically select Row 2 in a dataGridView. I know how to do it for a checkListBox like below but can´t find a member simular to this in the dataGridView. [code] checkListBox1->SelectedIndex = 2; [/code] | |
I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] Is there someone able to assist me in learning how to add a search functionality to the above tutorial? right now I am deciding if I need to transform th code (below) to the @Action,actionPerformed(),and class extending (@Action) Task. [code] public void … | |
I am not too good with php and am trying to get this search and results form to work. I am trying to get the user to be able to search by shape, color, price range, etc. I was only able to let them search for one color and one … | |
Hello, I am collecting data from users on one form, altering the data, and then depending on which option the users (user will choose a submit button out of many) selects I will be passing the data to a different form where the data will be altered further. I plan … ![]() | |
In Vb.net, I do it in the foll. way-- Dim value as string [U]Button_Click[/U] For each value in combobox1.items combobox2.items.add(value) Next But it is not working in ASP.net. Plz de reply back. | |
![]() | I want to read files and folder names from directories. I have used the following code. But the problem is that in the output the file name gets truncated.[I](See the output below)[/I] [code=C++] #include <dirent.h> #include <stdio.h> #include<conio.h> void main(void) { clrscr(); DIR *d; struct dirent *dir; d = opendir("."); … ![]() |
Hi guys, I am currently working on a practical for a first year computing subject. I am determined to work it out because I think it will really unlock pointers and dynamic memory allocation for me. Essentially, the task requires that I produce a program which, when prompted, will store … | |
I am working with the tutorial at: http://www.netbeans.org/kb/articles/mysql.html can any one help me figure out why I can not set a query with this method? entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory ("splashbookdbPU").createEntityManager(); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance (splashtemplateda.SplashTemplateDAApp.class).getContext().getResourceMap (SplashTemplateDAView.class); query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery (resourceMap.getString("query.query")); // NOI18N list … | |
Hey, I was just wondering what was the simplest way to "real" world type, like open wordpad and you could watch it actually typing, thanks in advance. (Hopefully the answer is not writing to file etc) | |
Hi, I'm quite new to C++ so all help is appreciated. I have a program that makes a string of at least three characters. I want to be able to compare the string to a list of words (i.e. dictionary) in a separate file, and then output the string if … | |
I wonder how it is possible to create a "Folder". I know how to create files like this. How could this be possible with ofstream. I am not sure if I find any members to ofstream that could be associated with "Folders" ? [code] ofstream OutFile1; OutFile1.open("C:\\File1.txt"); OutFile1; [/code] | |
Hai guys, I have quite a large program here that I don't seem to understand. The program, Bow Vice Jet (an anagram for object view) is meant to display WaveFront .obj files. However, it quits when it loads a specific file while on my computer, while on another it does … | |
Hi, My assignment is to read in data from a file(first name, last name, and grade) and then output it. i have my code and i beleive the problem lies within the function readData, but i cant figure out what it is. I run the program and i get an … | |
I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life … |
The End.