199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xshinichix

[CODE]#include<stdio.h> #include<conio.h> void main() { int a; printf("\nEnter number of inputs: "); scanf("%d", &a); for( int x=1; x<=a; x++ ) { for( int y=a-x+1; y>=1; y--) { printf("%d",y); } printf("\n"); } getch(); } [/CODE] im still a noob. i know the output of this one. but i cant seem really …

Member Avatar for XMasterrrr
0
177
Member Avatar for ozlem.a17

Hello, so i have a RectangularRoom, AbstractRoom (which is an abstract class) and Room (which is an interface). AbstractRoom and RectangularRoom both implement Room. Within my HomeCADengine (which is where my addRoom/removeRoom/etc. methods are kept). Now, my addRoom method seems to be a problem. I am trying to add a …

Member Avatar for JamesCherrill
0
116
Member Avatar for naveedanjum

I am facing a query performance problem. While connecting to MySQL database through different Users methodology. Tell me does connecting by IP address user has over head. Like connecting using user@locahost or user@host-ip-address Is there any performance-wise difference by connecting using any of this user. I am getting a massive …

Member Avatar for mwasif
0
135
Member Avatar for koldhands

Hi guys, My first post here after reading some very helpful responses over the last few months. I'm having trouble passing radio button values to a results page and wondered if anyone would be able to spot anything wrong with the following code? Any ideas are very much appreciated as …

Member Avatar for hari.sarvothama
0
172
Member Avatar for ZPBSFG

Hello All- I'm in the process of getting started a complete website for guidance and discussion about a new type of banking/lending. I would like to offer my fellow investors or potential investors greater access to slice and dice the data of one of the key companies involved in this …

0
138
Member Avatar for jain.vrish

hi i want to delete multiple report in grid view and i am facing some problem please help me as i am new to Asp.net. protected void LinkButton1_Click(object sender, EventArgs e) { foreach (GridViewRow row in GridView1.Rows) { CheckBox cb = (CheckBox)row.FindControl("chkSelect"); if (cb.Checked) { int rid = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value); SqlDataSource1.DeleteParameters["id"].DefaultValue …

Member Avatar for rohand
0
333
Member Avatar for ChristinaOrchid

Hi Expert, I already create a datasource name for my Access database. However, I failed to connect to that database using this code: Set db = DBEngine.Workspaces(0).OpenDatabase("dbsourcename", ,"DSN=dbsourcename;UID=MyUID;PWD=Mypassw") Could anyone help me please. Thank.

Member Avatar for zainab saleem
0
3K
Member Avatar for xshinichix

TURBO C ++ HELP! INTERATIVE STATEMENT Im a beginner so please help me. USING FOR LOOP: write a program that will display the following pattern, given the value of n. example: of n=4 output: 1234 123 12 1

Member Avatar for xshinichix
0
400
Member Avatar for ms_farenheit1

I am working on an application and would like to be able to calculate the efficiency of various algorithms and choose the best one. The application operates on a list of records that are stored in a file. Operations include adding records, deleting records, and searching for records based on …

Member Avatar for Ancient Dragon
0
149
Member Avatar for kimiko

Just started learning java and i'm having a little trouble with my compiling im supposed to give a screen shots of my outputs if it works but vista is blocking it (asks for permission and then just hangs) ive included the questions just in case its being bleh but it …

Member Avatar for jon.kiparsky
0
248
Member Avatar for farooq82

Hello Everyone, I just write a web service in which function return a dataset. Now I have load that dataset in asp:dropdownlist in a web page. Please let me know bow would I do this. Thanks Farooq

Member Avatar for rohand
0
120
Member Avatar for brown23

Hey again! :D I'm just wanting to know how I can stop other people included any type of file that's on my domain? All the php include files I use shall be CHMOD'd to 644 and/or 604 depending on the file, but I'm wanting to know how I can perhaps …

Member Avatar for brown23
0
149
Member Avatar for emc22

Hi,I'm trying to make my own simple paint application but I'm having trouble with the "openfiledialog and paint" thing. The code below draws lines when the mouse is down and moving. The problem is whenever I press the button that opens the dialogbox everything I painted on the form disappears …

Member Avatar for emc22
0
91
Member Avatar for JBLDW

Can anyone help with the error shown below? - I have looked at the code of the script and realise that it is being generated by there being no valid id. So... I changed the details to provide a valid id (did not work), then matched all the details up …

Member Avatar for hielo
0
303
Member Avatar for LuciaP

Hello! First of all, excuse me for my bad english! Im new in C++ (altough i have to implement a mix between c and c++) and im having troubles trying to do a few things... struct nodo { Program * prog; int FB; nodo * izq; nodo * der; } …

Member Avatar for manojwali
0
115
Member Avatar for Uvais

Could You Please Explain me what is memcmp? What does the 'size_t' means to?

Member Avatar for prvnkmr449
0
157
Member Avatar for Danny_501

Hi all, Why do I get a fatal error when I try and free this memory? [CODE] char *timeBegin = (char *)malloc(sizeof(char) * 21); timeBegin = time_stamp(); sleep(1); char * test; test = calc_time_difference(timeBegin); printf("%s", test); free(timeBegin);[/CODE] time_stamp() returns a static char array. Would this be the cause?

Member Avatar for Narue
0
121
Member Avatar for dpirtle83

I have been trying to compile a program for school using textpad, but i am unable to find the sdk tool that is supposed to be in the tools window.i have installed the java 6 jdk/jre, then text pad ( multiple times and ended up with the same results. when …

Member Avatar for NormR1
0
158
Member Avatar for Iamthecheese

Hello, I'm working on an assignment due next week and I'm having quite a bit of trouble. The program is to ask the user for input of a double until they desire to stop. That part, I imagine will be in the Test file. The master file is to store …

Member Avatar for NormR1
0
201
Member Avatar for lucaazori

Hi, please i need your help, i had error while i tried to insert into my data base, here is my code: [CODE]Try 'preparer les requetes Dim sqlQRY1 As String = "INSERT INTO AUDIO Values ('" + nomAudio + "')" Dim sqlQRY2 As String = "INSERT INTO IMAGE(Nom_Img) Values ('" …

Member Avatar for lucaazori
0
96
Member Avatar for cwarn23

A week ago phpmyadmin was working fine but now whenever I try and access phpmyadmin, (in xampp localhost) it displays 2 error messages and nothing more. They are as follows: [CODE]phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username …

Member Avatar for steelluv
0
95
Member Avatar for KimJack

Hello all, I really need some help with this problem. I am writing a program that needs to count the number of words in a string display the longest word in that string display upper and lower cases and punctuations I have everything complete except displaying the longest and shortest …

Member Avatar for genext.brite
0
2K
Member Avatar for MonkeyCode

Using the following: [CODE] protected void testDriver ( ) { String drivers = "nada"; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch ( java.lang.ClassNotFoundException e ) { System.out.println("MySQL JDBC Driver not found ... "); } catch (IllegalAccessException ex) { System.out.println("Illegal Access"); } catch (InstantiationException ex) { System.out.println("Instantiation problem"); } System.out.println("Midway drivers are " …

Member Avatar for peter_budo
0
850
Member Avatar for mahdi68

Hi i want to write an application that search and show information that saved on excel file . but i cant found any thing about how to read excel file on j2me ? now what should i do ? what do you recommend ? thanks

Member Avatar for peter_budo
0
89
Member Avatar for sakush100

[CODE] <?php $x=$_POST[T1]; .... .... .... ?> <head> <script type="text/javascript"> function submitform() { document.comm.submit(); } </script> </head> <form method="POST" action="" name="comm"> <p><input type="text" name="T1" size="20"> <a href="javascript: submitform()"> Submit</a></p> </form>[/CODE] What i need is on clicking the submit link, the current popup or page should be closed. But it must …

Member Avatar for hielo
0
109
Member Avatar for JBLDW

I haven't found this in my search, but it is not something that is easily defined ...also I am not sure whether this is PHP or more Javascript, so my apologies if I have posted in the wrong place. Anyway, I have this PHP form: [code] <?php $app = $this->globals('khxc_display.app'); …

Member Avatar for JBLDW
0
107
Member Avatar for Auraomega

I'm in the process of coding my own OS and right now I'm working on a stdio lib but was just wondering about fputs and how it should write to the screen, which would be a better approach? Making stdout a file descriptor and having puts call fputs with the …

Member Avatar for Auraomega
0
102
Member Avatar for ello

Title should be 'PHP not working in Opera' Hey guys, I have some code which validates fine with the w3c validator, but still refuses to work in opera... Wondered if anyone could maybe tell wny this code works in every browser but opera? I'm stumped. [CODE] <?php if($_GET['act'] == "generate_quotes") …

Member Avatar for Sammaye
0
141
Member Avatar for Suzie999

[code] namespace sqlconnecttest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { SqlConnection myConnection = new SqlConnection("user id=name" + "password=pass;server=http://www.mywebsite.co.uk;" + "Trusted_Connection=yes;" + "database=mydb; " + "connection timeout=30"); try { myConnection.Open(); } catch (Exception f) { MessageBox.Show(f.ToString()); } } …

Member Avatar for Suzie999
0
151
Member Avatar for acer5542

Question- Q9. Draw the truth table for a logic function that will subtract three bits to produce a difference and a borrow. 10. Draw the logic diagram for a circuit that implements the function in question 9. answer for Q9. Truth table for Qn 9 _____[U]B D[/U] -----B- Borrow D- …

Member Avatar for acer5542
0
345
Member Avatar for mompoleon

I have been using textpad and Java for 3 months without trouble. We just got a new computer 64 bit Windows 7. I have downloaded Java and Textpad on the new computer but when I go to external tools to compile, the compile and run tools are missing. I have …

Member Avatar for dpirtle83
0
1K
Member Avatar for ivan3510

Hi! Sorry for my bad english. How is made that toolbar on this site always stays on the botom of the page. (So, when we log in, on this site will appears toolbar. When we scroll down, this toolbar stay, it doesn't move anywhere, it stay on the bottom.)

Member Avatar for ivan3510
0
109
Member Avatar for evilsilver

ok guys heres the problem (by the way i am a beginner programmer so don't laugh at the code lol) i keep getting this declaration syntax error whenever i try to compile this program (i also get a declarations missing; and compound statement missing} ) but everything in my code …

Member Avatar for az-zahra
0
377
Member Avatar for Tcll

I'd like to know how to write a downloads counter that changes a var in an external .js file?? the var is named after the id of the textbox that displays the number held within that var... eg: external file:[CODE]var txtbx = 0[/CODE] html:[CODE] <script type="text/javascript"> count() //writes the increased …

Member Avatar for Tcll
0
807
Member Avatar for LianaN

Hi! I need to make multi-user software that will allow accessing a DB from different PCs and working with this DB. Could someone pliz just generally (conceptually, but in step-wise manner) describe me how this task can be implemented? Maybe, there are some good tutorials or free examples on this …

Member Avatar for LianaN
0
291
Member Avatar for Erco21

Hi! I want to run multiple threads at the same time, and each thread has foreach loop accessing a listbox, so each thread checks every item in listbox, instead that each thread checks only one item, or skip an item if it has already been checked by other thread. Now, …

Member Avatar for Erco21
0
111
Member Avatar for NewOrder

i want to import an array, but i cant.. i have my chess class.. and one method that tries to check whether there is a check. basically like this.. [CODE] if(pieces[columnStartN][rowStartN].isMoveValid(columnStartN,rowStartN,columnEndN,rowEnd) && pieceDevour){ pieces[columnStartN][rowStartN]=null; pieces[columnStartN][rowStartN]=pieces[columnEndN][rowEnd]; } rowStartN=rowEnd; columnStart=columnEnd; int kingRow=0; int kingColumn=0; chessPiece="BKing"; int c=0; int pieceColumn=0; int pieceRow=0; for(int …

Member Avatar for NormR1
0
200
Member Avatar for turpentyne

I am frustrated to no end. I absolutely cannot find the solution to paginating a search result that pulls info from two tables. Everything seems fine at the start. I get a page with the correct number of results (2) and the correct number of page links on the bottom …

Member Avatar for hielo
0
120
Member Avatar for PythonNewbie2

Hey guys, thanks a lot for the help. Here's the code I have for going through each file in a directory I specify: [CODE] for root, dirs, files in os.walk('%s'%(DOSEnvironVar)): for this_file in files: if this_file.find('.csv')>-1: filepath = os.path.join(root, this_file) currentfile=open(filepath,'r') filelines = currentfile.readlines() [/CODE] I would like to add …

Member Avatar for Reverend Jim
0
289
Member Avatar for alex k
Member Avatar for bmos31

I'm writing a code that takes a 5-bit binary string from a file 'message.txt', converts it to integers. The encoded letters are assigned numbers starting with a=1, b=2, etc. So if the original letter is 'a' and the key(fixed number of spaces) is 2, the encoded letter is 'c' which …

Member Avatar for bmos31
0
493
Member Avatar for [csharp]

Hi people, i work on some example with very big score (number). The double type is not enough large to store the results. Can i create some variable type and set variable scope, or what to do? tnx

Member Avatar for ddanbe
0
104
Member Avatar for phpmember

Hi!!, I am a beginner in PHP , but I want a piece of code which I can use in my website to keep track of the no. of visitors (HIT COUNTER). Please help me.

Member Avatar for mastervaulttop
0
130
Member Avatar for srky

Please help me ,How to solve this error Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the …

Member Avatar for Lusiphur
0
149
Member Avatar for chubbs1900

Hey guys, I am trying to self teach C++ and I am to the point of loops. Now I was working on how to create a triangle with manipulating nested loops to create a triangle with numbers. Here is the code I have ended up with: [CODE]/* Print a number …

Member Avatar for usman.rose
0
311
Member Avatar for tsteven

How do I format the links from a mysql query to show [U]click here[/U] on my webpage. $row['reviewlink'] (eg of reviewlink = [url]http://www.abc.com[/url]) I want this result to show in the html source code: <a href="http://www.abc.com" >click here</a> So the page shows [U]click here[/U] and links to [url]http://www.abc.com[/url] I want …

Member Avatar for tsteven
0
96
Member Avatar for lulemurfan

I've been trying for a few hours now, and to be honest I'm getting fed up of it not updating the table!!!:icon_sad: [CODE]$sql="UPDATE list SET title='$_POST[title]', console='$_POST[console]', system='$_POST[system]', tv='$_POST[tv]', sram='$_POST[sram]', chips='$_POST[chips]', size='$_POST[size]', md5='$_POST[md5]', sha1='$_POST[sha1]', work='$_POST[work]', error='$_POST[error]', retrode='$_POST[retrode]', comments='$_POST[comments]' WHERE ID='$_POST[id]'"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 …

Member Avatar for hielo
0
177
Member Avatar for Clarkeez

Hey Im getting there with PHP but one thing that does my head in is arrays. Im trying to get all the content from the db and echo it.. For exmaple, in the db it reads under the 'names' column... matt harry dave katie trisha paul tracy brian martin sam …

Member Avatar for hielo
0
85
Member Avatar for tariqi

Hi, Am currently creating an interactive dating sms service using vb.net.but when i get to the point for user to find requested matching records,am only able to get the first 3 records. i want it to be able to move to the next 3 and the following 3 and so …

Member Avatar for Alexpap
0
162
Member Avatar for johnsign11

Hello friends Can anyone tell me Why and How to use vector in C++ ???? Making a sudoko game in c++

Member Avatar for manojwali
0
158

The End.