199,114 Archived Topics
Remove Filter ![]() | |
Hey, How do you go about proving that log(n!) is big Theta of n log n? | |
Hi, Well I am getting this warning while running my script which is attached:Use of uninitialized value in concatenation (.) or string at aj.pl in this line : print OUTFILE"$address[$k]|" as when i remove this line I don't get any warnings: Can someone please tell me what is wrong with … | |
Hi all, First I create a dynamic buffer and set all element to zero. Then add a int value first to the buffer. Then after that int value add a string to the buffer, actually at the end of int value. But seems my code overwrite each other. Here is … | |
I was just testing out a code and I found something rather pathetic. This code does not produce anything. [CODE]<?php $source = file_get_contents("http://mysite.com/random/page.html"); echo $source; ?> [/CODE] But this code does [code]<?php $source = file_get_contents("page.html"); echo $source; ?> [/code] The php script and page.html are in the same folder, so … | |
i've writtn a code in c and it works well, so i tried to write the same code but in c++, ofcourse i need to change some functions to cpp, i did that, but when i run the program i got the follow error : (a function-definition is not allowed … | |
i need to write code for two "robots" that will chase each other around the screen. im stuck on a command which is the step(x,y) command which take the (x,y) coordinates of the other robot as a parameter which should just contain "pass" and will be overridden by the subclass. … | |
Hi Everyone, What I want to learn is how to write a php template. So any edits I make to the headers,footers etc. are changed throughout the website. I know I can just use a series of includes but I was wondering if there is a right way to make … | |
Okay, this is an annoying problem i'm making a command line operating system bootable from a floppy disk and the way i'm testing it atm is by inputting a command and outputting it. The reason for this is that i want to know EXACTLY what its doing with the string … | |
i dont no whether it is the place or not to share my problem........the problem is that i have a little problem with my router..........!! when ever the electricity failure happens, my internet connects gone to disconnect imediately............then if i turn on and off my router manually it connects again … | |
with the function: list(string) you put every letter from the string in a list, I want to put each 2 letters in a list so If I had the string: ThisIsATestt I want to get a list: ['Th','is','Is','AT','es','tt'] (There will never be a letter alone, so you don't have to … | |
I have been given an assignment where I have to create a small shell that the user will be able to enter in a path and 2 parameters. The shell must be able to process this input and run the program at the given path using execvp, and must also … | |
Hey I know gcc is problably the best natural complier for C but Im looking for a IDE. I cant use Visual Studio 2008 (which Id like to) as it uses it own compiler. I was using wx-dev (I believe it is called like that) and it is pretty good. … | |
I am trying to make a very simple program for a school assignment. I simply need to display 3 random icons of playing cards. All the icons are stored in an image file as 1.png-52.png Is there anyway to do this with out identifying each individual image, adding it to … | |
I have a class that creates a stack object implemented with an array: So I have a method contractStack() which is called when the length of an array of the same class is greater than INITIAL_CAPACITY of 8, and the size of the stack (contents within the array) is less … | |
I can't figure out how to display the ImageIcons after I get three random cards. I tried to add the .png to the random number and that didn't work. I would appreciate your help. import java.awt.GridLayout; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; public class Exercise139 { public static void main(String[] … | |
Hello, I'm wonder what static references are. Are they like: [code] static int number = 0; [/code] I'm really confused. Thanks for any help. | |
I have a .asp page that is a map of the U.S. When you click on a state it brings up a pop menu. This page works fine on IE but not on Firefox. On Firefox when I click on the state it opens up another tab of the .asp … | |
Dear Friend, i have a crystal report, in which i have amount of Different Items, now i want to calculate total amount of all that items and show Total Amount at the end of the Report. so please tell me how can i calculate Total amount of different items in … | |
why does this have an exception in VC++ 2008 Express: [CODE]#include <conio.h> #include <iostream> using namespace std; class A { private: int a; class B { public: void f(); }; public: B b; //A(){} // default constructor class C { public: int a; }; B g(B); }; void A::B::f() { … | |
Hi, can anyone help me to solve this problem? I have this code: [code=c] FILE *in; char i =fgetc(in); int perm=0; perm =atoi(&i); printf("%d\n", perm); [/code] if first character in my "in" file is 2, the output is 28; if ------------------------------- is 3, -------------- 38, and so on... any ideas … | |
hi.. our frst semester was now ending.. n our instructor leave dis problem for us to had.. she told us to create a program that supplies a number and outputs its equivalent in words.. the maximum input number is 9000... sumbody knew dis?? plzz help... thank u n advance... | |
Hi techies, Kindly help me the situation below: [CODE]//Interest.java /*Mr. Brown invests $50,000.00 in a savings account yielding 5 percent interest. * Assuming that all interest is left on deposit, write java codes to calculate and print * the amount of money in the account at the end of each … | |
Hi, it is really a simple question, but i can't find any deep word that can best replace the word "login". If you have some ideas please tell me. I will very much appreciate any kind of help. Thank you:) | |
Hi! I am a beginer in C# and I have 2 forms in a project. The first one contains a [U]dataGridview[/U] with 3 columns: nr,date and obs and a [U]button[/U]. when i select a row and click on a button i want to copy the current nr,date and obs in … | |
Hello, I'm trying to create a program that calculates the hypotenuse and area of a right triangle. I need to round the hypotenuse to 2 places after the decimal, and one place for the area However, I can't seem to get it to work If I tried c = int(round(math.sqrt(a**2) … | |
if I write 500 in a textbox then a label.caption show "Profit". If I write -500 the the label.caption show Loss. I write code[CODE]If Format(Text1, "0000000") Then Label1.Caption = "Profit"[/CODE] but for -500 what I need to write? | |
I have a combo box on a form and I want to load some items in this combo box at run time from a database table of access. For this I have written below code. But when I start my program this message appears. Run-time error '91': Object variable or … | |
I have a string like "system\admin". Now I want get the "admin" part alone from the string using IndexOf() method.Can anyone please help me out.Thank you. | |
Hello, I have a piece of code that pulls data from a mysql database. I am displaying the results in a table but want to format the background of certain cells based on the query results (ie red for no green for yes). Here is my code: [CODE] $query = … | |
Hey all Can anyone see why this isn't working for IE but is Firefox? I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php … | |
Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button … | |
Hi , I am busy converting a VB6 project to c#. Now in vb6 , the columns have intellisense like so... [code=VB] rsIBBSData!DrOrCr = 1 'rs is the recordset [/code] But in c# , i would either have to create an sql query , or use datarow with a column … | |
[CODE]private void insertbtn_Click(object sender, EventArgs e) { string name = textBox1.Text.ToString(); string course; for (int i = 0; i < checkedListBox1.CheckedItems.Count; i++) { course += checkedListBox1.CheckedItems[i].ToString() + " "; } string constring = "PROVIDER= MSDAORA;USER ID = SYSTEM; PASSWORD = mca"; string query = "insert into checkapp1 values('" + name … | |
[B][COLOR=DarkSlateBlue] Hi everybody, I am developing my senior project using ASP.NET. This project has basically a calendar subsystem to be used by the users of the system which will be designed (the calendar) as .aspx code. My concern is as follows: Since most of us are using the Microsoft Outlook … | |
How to pass array of pointers to structures using functions in C? #include<stdio.h> #define dept_count 3 struct employee { char name[20], post[20]; int emp_no; int basic_pay; }; void search( struct employee * , char , int ); void main() { struct employee *deptt[dept_count]; int i,j,emp_count[10],dep_srch; char emp_srch[20]; clrscr(); for(i = … | |
how do you write a command that turn left or right at an angle in a superclass is it like this: def left(self): self.position += self.angle return (self.position) its part of Object oriented Python | |
Good day to you all, I feel very excited being in the midst of gurus and great enthusiasts of programming... I have a little challenge in completing a program intended to read records from a file <notepad> and place them in an orderly manner on a pdf file <so as … | |
hello ! i have a probelm which i'm unable to understand.i'm programming in Dev-C++.when i'm compiling the programm i've written it's showing 'compiled successfully' without any error message,but when i want to run it is giving the message 'project not compiled' and hence not running the program.I can't understand what's … | |
Hi frnds... Here i am creating thumbnail image...the code is working fine... The variables are not working calling funtion....if i give static path, its working fine... incase of dynamic path it displays some errors,but image created..image with full black(no photo).......plz check the below code... [CODE]function createthumb($name,$filename,$new_w,$new_h){ $system=explode('.',$name); if (preg_match('/jpg|jpeg/',$system[1])){ $src_img=imagecreatefromjpeg($name); … | |
I am Making an implementation to the lz77 compression algorithm, but I couldn't calculate the offset, pleasei f someone can help tell me, [CODE] public class Main3 { public static void main(String[] args) { StringBuffer input = new StringBuffer("ADABRARRARRAD"); StringBuffer toBe = new StringBuffer(input); StringBuffer done = new StringBuffer(""); String … | |
I've gotten some great responses to my questions here, so I'm really grateful for this resource of programmers on this website. I've been working on an algorithm and am almost completed with it, but I'm finding out the very last steps are the most difficult for me because they require … ![]() | |
hi dear, i'm going to develop database that can access file in the user profile folder. but, i dun know how to create link in database mysql. i have 5 field in database.username,password,email and file. file contain link that access the file in file://C. i dont know how to do … | |
I have two dtpicker. here I want I select two date from dtpicker and the total sum of amount will show in two diffrent textbox. like: I have two field, expense and income. the total amount of expenses will show in a textbox by selected date and other textbox show … | |
Hello, I'm just wondering about static and non-static methods. I have a basic understand that non-static methods require a new object to be initialized to be used such as: [CODE=C#] public static void main() { mainProgram main = new mainProgram(); main.doNothing(); } public void doNothing() { } ][/CODE] V.S. [CODE=C#] … | |
Hi I do like to modify the .php extensions to .html. could any body advice me. how to do it. Present URL: category.php?cat_id=C001&prod_id=XX09 Required URL: category.html/C001/XX09 or Required URL: category/C001/XX09 in any of the SEO format. Please help me to sort out. or advise me to refer URL. or tutorials. | |
Hi I need a vb.net example code to execute a batch file when a button is clicked in my application .. The .bat file is in a different location and it must be called and executed.... Thanks in advance.. | |
I need to read in numbers from a .txt file and sort the numbers to find the 3 highest and i can not figure out how to accomplish this. I'm so lost i dont even know where to start. :( | |
I want to select from a table only when a field repeats more than once. For this I have: [CODE]Select title, Count(*) As Cnt From poss_titles where Cnt > 1 Group By Title Order By Cnt desc[/CODE] But it says invalid column name cnt. How should I refer to this … | |
Hi, I am trying to embed audio/video content such as youtube links and playlists from imeem.com into my website for each user of their choice. What are the measures to be taken to display $user_choice_video variable which is retrieved from database!? I am afraid there might be attacks if i … | |
Hi guys, i've deployed asp application, now the problem im facing is it doesn't connect sql database. At first the database was attached with the application and it failled to connect the database, secondly i attached the database on SQL server and configured connection string still it doesnt connect. When … |
The End.