199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shakunni
Member Avatar for BestJewSinceJC
0
90
Member Avatar for ajay_p5

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 …

Member Avatar for ajay_p5
0
231
Member Avatar for eranga262154

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 …

Member Avatar for kia_barghi60
0
283
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
87
Member Avatar for edwar

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 …

Member Avatar for Ancient Dragon
0
93
Member Avatar for srk619

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. …

Member Avatar for jlm699
0
103
Member Avatar for peck3277

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 …

Member Avatar for pritaeas
0
63
Member Avatar for jhouns

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 …

Member Avatar for jhouns
0
429
Member Avatar for shishtawitch

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 …

Member Avatar for shishtawitch
0
109
Member Avatar for Kruptein

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 …

Member Avatar for jice
0
104
Member Avatar for jeeter19

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 …

Member Avatar for Ancient Dragon
0
297
Member Avatar for riahc3

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. …

Member Avatar for jeeter19
0
395
Member Avatar for geek_till_itMHZ

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 …

Member Avatar for truebot
0
84
Member Avatar for iamsmooth

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 …

Member Avatar for iamsmooth
0
142
Member Avatar for george21

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[] …

Member Avatar for IrishWay
0
109
Member Avatar for Phil++

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.

Member Avatar for Phil++
0
150
Member Avatar for mldardy

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 …

Member Avatar for codejoust
0
755
Member Avatar for itslucky

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 …

Member Avatar for itslucky
0
90
Member Avatar for CppBuilder2006

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() { …

Member Avatar for Nick Evan
0
122
Member Avatar for hosh

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 …

Member Avatar for hosh
0
135
Member Avatar for vvilladolid

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...

Member Avatar for mrnutty
0
187
Member Avatar for easyb

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 …

Member Avatar for easyb
0
144
Member Avatar for procopio

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:)

Member Avatar for procopio
0
68
Member Avatar for beginerC#

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 …

Member Avatar for beginerC#
0
147
Member Avatar for rociel

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) …

Member Avatar for rociel
0
279
Member Avatar for abu taher

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?

Member Avatar for Vineeth K
0
130
Member Avatar for nareshkumar131

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 …

Member Avatar for nareshkumar131
0
256
Member Avatar for scvinod

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.

Member Avatar for Rashakil Fol
0
265
Member Avatar for sstewart

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 = …

Member Avatar for sstewart
0
189
Member Avatar for benrich

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 …

Member Avatar for benrich
0
153
Member Avatar for filch

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 …

0
162
Member Avatar for stoymigo

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 …

Member Avatar for stoymigo
0
186
Member Avatar for sivananda2009

[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 …

Member Avatar for sknake
0
116
Member Avatar for the_shark

[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 …

Member Avatar for inspirekarthick
0
362
Member Avatar for Aakriti

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 = …

Member Avatar for Tom Gunn
0
255
Member Avatar for srk619

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

Member Avatar for vegaseat
0
85
Member Avatar for Ednutt

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 …

Member Avatar for vb5prgrmr
0
72
Member Avatar for imon

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 …

Member Avatar for giegiey
0
455
Member Avatar for sarithak

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); …

Member Avatar for sarithak
0
153
Member Avatar for mostafanageeb

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 …

0
158
Member Avatar for jmark13

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 …

Member Avatar for masterofpuppets
0
110
Member Avatar for nazarahmat

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 …

Member Avatar for Thirusha
0
86
Member Avatar for abu taher

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 …

Member Avatar for Ednutt
0
280
Member Avatar for RunTimeError

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#] …

Member Avatar for DdoubleD
0
349
Member Avatar for mvchandoo

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.

Member Avatar for mvchandoo
0
129
Member Avatar for jaimca

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..

Member Avatar for jaimca
0
2K
Member Avatar for Nakeo

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. :(

Member Avatar for Nakeo
0
184
Member Avatar for benkyma

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 …

Member Avatar for benkyma
0
188
Member Avatar for csharplearner

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 …

Member Avatar for sarithak
0
103
Member Avatar for Mongz

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 …

Member Avatar for sknake
0
223

The End.