199,114 Archived Topics
Remove Filter ![]() | |
[CODE]#include <stdio.h> int main(void) { int a,b,c; printf("Enter the sides of the triangle"); scanf("%d%d%d",&a,&b,&c); if(a+b<c || b+c<a || c+a<b) printf("cant form a triangle"); else if(a==b==c) printf("eq triangle"); else if(a!=b && b!=c && c!=a) printf("sca triangle"); else if(a==b&&b!=c || a!=b&&b==c) printf("Iso triangle"); } [/CODE] am starting to code.. i have coded … | |
What will be the connection string for OpenOffice Base (.odb) database? i want to use this connection string in C#. Which namespace needed to be added to use .odb operations? | |
I am in the process of updating and modifying source code for an existing application that runs on Linux systems. As part of my modifications, I will be needing to use the library function unlink() from unistd.h However, the class that I need to modify, has an existing public member … | |
hi, i work on a windows application and i use crystal report. i use this code to generate report from database: [CODE] private void imprimerB3button_Click(object sender, EventArgs e) { SqlCeConnection con = new SqlCeConnection(); con.ConnectionString = @" Data source= |Datadirectory|\Database1.sdf"; Database1DataSet ds = new Database1DataSet(); SqlCeParameter paramNom = new SqlCeParameter("@nom", … | |
Hey, I need help with setting up an authentication code. I am currently working on a project to build a blog server in python for an intro level python course. We are using the PESTO and POSTGRESQL wsgi and sql clients respectively. I am trying to authenticate against a user … | |
Here is my assignment rules, i am stuck and cannot find what it is i am doing wrong. If some one could help me i would appreciate it * The main routine must be a 'manager' routine, which means o The function can declare variables o The function can call … | |
myCommand.CommandText = "update Stutable set password as ('" & TextBox2.Text & "')"" where rollno = " & TextBox3.Text please can you tell me what is the error in the above statement iam using vb and access database | |
Hello everyone my task is to write a [COLOR="Green"]program that reads quizzes from a file 'q.txt', randomly selects a number of questions, and presents them to the user one-by-one, collecting user answers. After user has answered all questions, program gives user the score. [/COLOR] please can someone give me the … | |
I am having a Problem in a form.I have use validator controls.But after that it's submit button start giving Problem.It's not Working now,mean's code behind that is not giving any response | |
Hello i have an assessment to make a car park in GUI and i have tried some stuff but didnt work I need to make in two classes one with the main method and a JFrame container and the other with the buttons for park controls and others Any help … | |
I am trying to download an excel file that is avalible on this site: [url]https://www.arcavision.com/Arcavision/index.jsp[/url] Once you are logged a frame opens where you fill out a form and then click submit. On pressing submit the result of the query shows and gives you the option to download the data. … | |
[B]Hi people.. I got a problem which i cannot delete a a subject from my database through a page that i created. I've made a page called edit_subject.php where there is a form which i could then delete/edit any subjects that i want.and this is the code : [/B] [CODE] … | |
Hello, Everyone. I want to get opinion in developing software project. I will be studying Oracle and will need to do a project using Oracle. Can anyone give any idea on what project I can do. It doesn't matter what language to be used as long as it used Oracle. … | |
[url]http://msdn.microsoft.com/en-us/library/ms632653(VS.85).aspx[/url] I want to get the size of a window being resized (I will show a tooltip by the mouse). I have the code below: [CODE] protected override void WndProc(ref Message m) { base.WndProc(ref m); if (m.Msg == WM_WINDOWPOSCHANGING) { WindowPos mwp; mwp = (WindowPos)Marshal.PtrToStructure(m.LParam, typeof(WindowPos)); //mwp.flags = mwp.flags | … | |
Hi, I am wondering if anyone tried to mix PHP and Javascript innerHTML elements to change certain elements to decrease the number of submits without losing data when passing through forms. For some reason, I kept getting errors in my code and I could only get PHP to submit the … | |
Hi, I don't know if this is the right forum to post this, if not please move it or just delete it. I installed Phpauction via Fantastico after trying several purchased scripts that just wouldn't work. Everything is working fine except the "View Feedback" links which give the following error … | |
I have downloaded the trial package and am trying to update an old project developed on VC++ 2002. The old environment will not develop an executable to run on W7. The VC++ 2010 generated an upgrade, compiled, linked and lists just a single error MSB3061 which is labeled "unable to … | |
I want to build a Webservice that on given intervals request data from a SQL-server and update an internal list in the Webservice. The Webservice will be accessed from multiple clients and I don't to access to SQL-server every time the list is requested from the clients. Is this possible … | |
Okay, so I'm having problems with my code. I've browsed Daniweb and couldn't find any solutions on here that work. I'm extracting 2 sets of texts from a .xml file. The first part is a directory name(eg. "C:\work\") and the second part is the name of a file in that … | |
![]() | What is the most efficient way to: [LIST=1] [*]Check if a list has duplicate items (return a boolean) [*]Get duplicate items in a list (return a list) [/LIST] I'm looking for something quick and concise, as my solutions are rather cumbersome: [CODE]def list_has_duplicate_items( L ): for item in L: if … |
i am trying to create a new subject and redirecting the page to the home page after the subject is created which is(content.php). The code succesfully created the object but the page redirecting that i try to make is failed and my browser came out with this error message : … | |
[CODE]<table width="95%" border="1" align="center" CELLPADDING="2" CELLSPACING="0" bordercolor="<?PHP print "$BorderColour"; ?>"> <tr valign="middle" class="tableheadsx"> <td width="91" height="29" align="left" class="welcomexx"><strong>Date</strong></td> <td width="136" height="29" align="left" class="welcomexx"><strong>Distributor's ID </strong></td> <td width="136" height="29" align="left" class="welcomexx"><strong>Customer's Name </strong></td> <td width="140" height="29" align="left" class="welcomexx"><strong>Total Paid(Naira) </strong></td> <td width="157" height="29" align="left" class="welcomexx"><strong>Total Paid(Dollar)</strong></td> </tr> <?php $rowShine = 1;?> … | |
hi i need a urgent help for a program that i cant make and this is : Write a program that implements a game, to teach arithmetic to little children. The program tests addition and subtraction. In level 1 it tests only addition of numbers less than 10 whose sum … | |
This is an example I have grabbed from W3School, and for the purpose of my question, I have modified it and put in the code here: [CODE] <?php // Make a MySQL Connection mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); // Get all the data from the "example" table … ![]() | |
I need help in creating a nested array using a loop. The array should look like this, [CODE] Array ( [0] => Array ( [id] => 1 [text] => root [leaf] => [children] => Array ( [0] => Array ( [id] => 2 [text] => root1 [leaf] => [children] => … | |
Dear all, i have checkbox ex: [CODE] <?PHP $price_1 = $100 $price_2 = $10 ?> <input type=checkbox name=products[] value=id_1> buy host <input type=checkbox name=products[] value=id_2> buy domain blah blah.... [/CODE] now i want added the javascript when check box someone show the price in text input ex: [CODE]<input type=checkbox name=products[] … ![]() | |
Hi, In my aspx page I have a gridview inside a panel as below <asp:Panel runat="server" ID="pnlContainer" ScrollBars="Auto" Height="781px" Width="1250px"> <asp:GridView ID="gvCashFlowDtls" AutoGenerateColumns="False" runat="server" Font-Size="Small" DataKeyNames="UID" Width="98%" onrowdatabound="gvCashFlowDtls_RowDataBound"> <HeaderStyle CssClass="GVFixedHeader" /> <Columns> . . . . . . . . . </Columns> </asp:GridView> </asp:Panel> This is the style I used … | |
Hi Everyone, I Need a simple project which is developed in Microsoft Visual Studio 2005 in VB.net the project features are 1. I have to send multiple SMS from a mobile device connected through a USB. 2. I have to receive SMS from a mobile device and parse it and … | |
Hello Everyone, I have designing a desktop application using VB.NET 2008 & SQL Server 2005. In my Application i have a frmUserRegistration to add a user & frmLogin to login to my application. i can add the user details in the database but my password seems to be in characters. … | |
I am trying to include this piece of code in my Java Class. But the compiler tells me that it can't find Class Calendar. I can't create a class within a class though, can I? Any advice on how I can link this in to the rest of my code? … | |
Dear can any body tell me how to configure cakephp with wamp?? | |
Can someone tell me why the print is not showing up on the page and the email is not be sent to the receipient with the information. HELP [code] <?php if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form ?> <h5>Vairalbe Information to be Embossed</h5> … | |
Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out … | |
Hi I am working on Project. I want value from MySQL DB in Second input field on input of code in first input field. Is it possible? | |
I need to calculate percentage relative to a particular bar within the series in a barchart Could any one help me out | |
hello all, i have this code [CODE]<script type="text/JavaScript"> function checkbox_click (number) { alert("number is" + number); } </script>[/CODE] [CODE]echo "<input type=\"checkbox\" name=\"boxname\" " value=\"5\" onClick=\"checkbox_click('3');\" /> \n"; [/CODE] i want add more code in javascript when is check show me in input text the number and when i check mutlti … ![]() | |
I want to develop a JAVA application which can send and receive SMS. I have a mobile phone connected to PC through USB cable. This JAVA program in PC should be able to send and receive SMS. AT commands are used to instruct mobile phone to send/receive SMS. But how … | |
hi guys.im new here at the community. im marco a computer science student. guys/sir/madam is it ok for you if ill ask a help from your expertise. right now im doing a project a bout a home security system its a simple anti burglar system, its kinda weird but it … | |
Hi, I just started a free trial with a new webhost as my current one is useless. I have always had my website working on the old webhost fine. I have a folder called sessions outside the public_html folder so it cannot be accessed in a browser and not accessed … | |
I have a combobox on a panel that changes tables on the panel. How would I get it to repaint if this panel was on a JTabbedPane in a InnerFrame in a JDesktopPane? It repaints but after I switch for one tabs and then back to the said tab. thanks. | |
Hello, pls.can anybody help me? I try to solve a exercise where I need to involve random module. Here is a text: Exercise 2 In this example, ties are broken by comparing words, so words with the same length appear in alphabetical order. For other applications you might want to … | |
I am trying to convert a piece of code into Delphi but fall down when it comes to this example : [CODE] void __stdcall GetBuffers( short **xBuffers, unsigned long nValues) { ....... memcpy(TargetA, xBuffers[0], nValues * sizeof(short)); memcpy(TargetB, xBuffers[1], nValues * sizeof(short)); memcpy(TargetC, xBuffers[3], nValues * sizeof(short)); memcpy(Targetd, xBuffers[4], nValues … | |
i made a web service that returns the name of the images in a file and returns the array of string with the file name with its folder name attached to it i.e. "pictures/image1.jpg". the client takes the url and adds it to the string i.e "http://localhost:3323/pictures/image1.jpg". The images is … | |
Hi guys, Here's my project finally. It's name is C.L.O.S.E - The Command Line Open Source Editor Please review and comment. Mention errors if any, Also, for this code to work. Please download open.cpp, find.cpp, new.cpp, append.cpp, compile them and place all of them including the main source in a … | |
hey i used findfirst and findnext function but they can access only a path which is given by us. i want to access all folders and file of a drive like a antivirus do, when it scans the drive.... do u know how can we do it using c language? | |
Hi there, is it valid to have a java class name and file as [CODE]public class DVD extends Items{[/CODE] and [CODE]public class CD extends Items{[/CODE] where its all in capitals? -thanks, sorry for the short question. | |
hi, (on a linux system) i wrote the following code snippet to 1. write to a serial port 2. read the data that i have just written to the serial port. the write is functioning, but the read is not. if i use just the read (without "write", but by … | |
[code]// Dumps raw memory in hex byte and printable split format void dump(const unsigned char *data_buffer, const unsigned int length) { unsigned char byte; unsigned int i, j; for(i=0; i < length; i++) { byte = data_buffer[i]; printf("%02x ", data_buffer[i]); // Display byte in hex. if(((i%16)==15) || (i==length-1)) { for(j=0; … | |
I am trying to use the playsound function i have the code [CODE] PlaySound(L"C:\Documents and Settings\Louisa\My Documents\Visual Studio 2010\Projects\Ninja_Wars\Ninja_Wars\music.wav",NULL,SND_FILENAME|SND_ASYNC | SND_LOOP); Sint32 delta;[/CODE] But when i play the game all i hear is a beeping sound- the one windows has when there is an error or something. Can anyone help … | |
I"m new to this site so i"m not sure is this question has been answered before but i"ll ask it anyways. i have a simple small access database and i need to create a link between it and our website but i'm not sure how to go about it. what … |
The End.