199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yogesh_6

#include<iostream> using namespace std; int main() { int n;int*p; int i=0,j=0,temp=0; cin>>n; p=new int[n]; for(int i=0;i<n;i++) { cin>>p[i]; } for(j=0;j<n;j++) { for (i=j;i<n;i++) { if(p[i]>p[i+1]) { temp=p[i]; p[i]=p[i+1]; p[i+1]=temp; } } } for(i=0;i<n;i++) cout<<p[i]<<endl; return 0; }

Member Avatar for Moschops
0
150
Member Avatar for Fedoros
Member Avatar for xXghostXx

I had c# application that has registration form and another from that user use to sigin in into my application i wonder how to check if user its register or not my login form has to textbox username and passpwrd and im trying this code i gusse its wrong can …

Member Avatar for xXghostXx
0
2K
Member Avatar for eriekasato_1

An InsuredPatient contains all the data of a Patient, plus fields to hold an insurance company name and the percentage of the hospital bill the insurance company will pay. Company : Portion of bill paid by insurance (%) Wrightstown Mutual 80 Red Umbrella 60 All other companies 25 How to …

Member Avatar for eriekasato_1
0
315
Member Avatar for Siberian

How come the last condition is executing, instead of the first ? Why isn't the while loop working ? document.prompt("hello there") if (i==2 || i==4 ) { document.write("smart"); while(i>6){ } if(i=8){ document.prompt("can you ask me again"); }}else (i>=9){ document.write("you are a lemon"); } //document.write(" I want to buy an apple …

Member Avatar for Siberian
0
195
Member Avatar for theonebit

I am confuse about datagrid or table. How do you use grids like explorer, IDM, utorrent uses. are they using data grid or table or something i dont know. cant seem to get it? will post picture if required.

Member Avatar for deceptikon
0
211
Member Avatar for JRDJ12

My requirements are as follows: 1. use main method 2. use the following array- `int[] grades = new int[] {` `82, 70, 99, 90, 92, 75, 87, 85, 91, 100, 91, 87 ` `};` 3. Write code to step through the array of grades and calculate the average grade. Modify …

Member Avatar for JamesCherrill
0
10K
Member Avatar for tqmd1

Sir I am using these codes <div id="search"> <label for="filter">Filter</label> <input type="text" name="filter" value="" id="filter" /> </div> <br /> <table cellpadding="2" cellspacing="0" width="90%" id="resultTable"> <thead> <tr> <th> <strong>ID</strong> </th> <th> <strong>Name</strong> </th> <th> <strong>Mobile</strong> </th> <th> <strong>City</strong> </th> <th> <strong>Country</strong> </th> </tr> </thead> <tbody> <?php $sql = "SELECT * from …

Member Avatar for tqmd1
0
209
Member Avatar for iqlas

hi guys... i am working on the project in vb.net in visual studio... my computer's name is homesys(Computer name as shown in MY Computer Properties).... when i try to make crystal report using sql server 2008 database... which i made it in visual studio itself, i am unable to get …

Member Avatar for Dharsana
0
390
Member Avatar for <M/>

I am trying to do an assignment that requires us to do something with pentagonal numbers. This is my code: import java.util.Scanner; public class Pentagonal { public static void main(String[] args) { System.out.print("The Pentagonal Numbers: "); getPentagonalNumber(10); } public static int getPentagonalNumber(int n) { Scanner input = new Scanner(System.in); System.out.print( …

Member Avatar for <M/>
0
1K
Member Avatar for Nebil

Hi all, I just came up with a little problem.I used crystal reports for my reporting. And i used five tables for the report.I've used SQL statement to select the records that i want. But crystal reports displays each record (selected by the sql) on a different page which makes …

Member Avatar for Nebil
0
140
Member Avatar for <M/>

I am trying to reverse the number that is doubled from the user input. Problem is that if they enter a number like 20000 it gets doubled into 40000 but it reverses it to 2 rather than 4. How do i get it to make the doubled number reversed and …

Member Avatar for <M/>
0
251
Member Avatar for Eagle.Avik

hi, i want to change the image class on click on the image, i am also using radio input, here is my fiddle, check out and tell me what is wrong? [http://jsfiddle.net/Avik/7aKY3/1/](http://jsfiddle.net/Avik/7aKY3/1/)

Member Avatar for Eagle.Avik
0
339
Member Avatar for <M/>

Okay, so for another assignment I have to find the distance of two points. I understand how that works but for some odd reason, when the program the professor set up tests it, the numbers are way off. This is what i have done: public class Distance { public static …

Member Avatar for <M/>
0
226
Member Avatar for iness.popovcic

#include <stdio.h> #include <conio.h> main() { int i,j,k,l,m,n; printf("Put in n nober of sqeur: "); scanf("%d",&n); printf("Whit wich nomber do you wanna start your squer?: "); scanf("%d",&m); for(j=m;j<=n+1;j++) { for(k=j;k<=n;k++) { printf(" %d",k); } for(l=1;l<j;l++) { printf(" %d",l); } printf("n"); } getch(); } Editor's note: moved to the appropriate forum

Member Avatar for 2teez
0
109
Member Avatar for kamilacbe

HI, Am planning to write a event management for my web application ,where the Admin can schedule a program to one particular channel say like Admin --> BBC channel --> 10Am-12Am program one from 12 Dec2014 - 23DEC 2014 ..Now my question is when i write checking condition as no …

Member Avatar for kamilacbe
0
229
Member Avatar for kgizo

Hi I have data to upload to a Mysql database and I need to get the time taken for each row to be inserted so that I can pass that number through to a progress bar. I have alreay tried accomplishing this by determining the number of rows affetced by …

Member Avatar for diafol
0
398
Member Avatar for Wael1988

**hello folks, i am new programmer,,,i have studied C# , Asp.net , Ado.net,SQL , Sharepoint Adminstration and development! but i am still junior..i mean i still ddnt get a job!! sumtimes i feel that its hard to go on programming..like i do always study but always forget..i feel sumties like …

Member Avatar for Wael1988
0
203
Member Avatar for twelve12

Hi, guys im a 2nd yr college taking up Information technology, now i have a project i need to make a POS of a water station with the information of the consumers. what my problem is i dont know what should i do, since my professor didnt teach us on …

Member Avatar for Reverend Jim
0
674
Member Avatar for nadiam

Okay so i have page1.php which has anchor tags. what i want to happen is that when, for example, Page 2 is clicked it directs to page2.php but also will get data from database and display the data in the textboxes in Page 2. I know that ajax will be …

Member Avatar for patk570
0
953
Member Avatar for khader(ldo)
Member Avatar for <M/>

This is how you calculate the area of a triangle, hope you guys find this useful. import java.text.DecimalFormat; import java.util.Scanner; public class Exercise2_15 { // find the area of a triangle public static void main (String [] args) { double side1 = 0; double side2 = 0; double side3 = …

Member Avatar for JamesCherrill
0
208
Member Avatar for davorka.tonkovic_1

hi. i'm trying to convert program from c++ to pyhton, but i don't have any experience with python. can someone help me? #include <stdio.h> #include <conio.h> main() { float uplata,i; do { printf("Unesite pocetnu uplatu:"); scanf("%f", &uplata); if(uplata>3000) { printf("Pocetna uplata ne smije biti veca od 3000 kuna."); } } …

Member Avatar for Ancient Dragon
0
676
Member Avatar for Lee_2

Hi basically I am creating a zombie survival game using Irrlicht. I have a base class Survival.cpp with my game loop in a method called `Survival::Run()` I am trying to call a `Shoot()` method from within the game loop from another class within Bullet.cpp I have included the `Shoot()` method …

Member Avatar for L7Sqr
0
304
Member Avatar for AMADH

Hello, I am trying to add a 2nd tab area to the jquery tabs, I want the new content area to appear before the tabs then the 2nd content to appear. My plan is to have images appear before, and both be controlled by the tabs. <!doctype html> <html lang="en"> …

Member Avatar for AMADH
0
347
Member Avatar for darrylnuyda

Hi Everyone, Can I ask your favor, I have a code that I customize. DBConnect.CS //here ismy db connection using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data; using MySql.Data.MySqlClient; using System.Windows.Forms; using System.Data; namespace PAIRDevelopment.Classes { public class DBConnect { public static string csConnect = "uid=root; database=membership; pooling …

Member Avatar for deceptikon
0
2K
Member Avatar for CreatorZeus

okay i have a file with data orgainzed like this in a dat file to be read: apple.0.0.end. and i want it to be read by char until it sees "." then print that, then read again repeated until the end of the line. so i can show the data …

Member Avatar for deceptikon
0
260
Member Avatar for davecoventry

If I have a photograph of a rectangular object whose image recedes with perspective, is it possible to work out the scale of measurements along that object? For example: I have a photograph of a (metric) ruler. The ruler is graduated in centimetres as shown, 30 cms. Is it possible …

Member Avatar for davecoventry
0
175
Member Avatar for kothaisaravan

Hi, I have a requirement to save images from local system to server through windows application using c#.net. How can I do this in windows application?

Member Avatar for anthonydaly
0
400
Member Avatar for S.M. Murad Hasan

I have a problem with my newly application where i want to execute a c/java program file. And after executing the file i want to work with the output of that file. Please anybody give me the solution for that how can i do this?

Member Avatar for lolafuertes
0
403
Member Avatar for Learner010

i'm using VS 2008 for window application and made an http web request and it returns result in json([click here for json result](http://www.daniweb.com/api/articles/448095)). I am not much familiar with JSON and also newbie in vb.net . So , i don't have any idea to deserialize the JSON result. would you …

Member Avatar for Learner010
0
397
Member Avatar for hriti

hey i want to use session id from index page to other page...bt when i use it by post method and click on the id text thn it will show the data and thn the id is being destroyed...how to keep the same id tehre...plz help me...

Member Avatar for minitauros
0
136
Member Avatar for valleymorning

Dear all, I'd like to learn C#, but not sure which tool to start with, i.e .NET Framework or Visual Studio .NET., or eslse, and where could I download a latest free version. I'd greatly appreciate any suggestions. Thank you, VM

Member Avatar for Fenrir()
0
172
Member Avatar for Learner010

I don't know APIs? but i heard of Daniweb API. what it is ? Now i am playing with basic controls of vb.net but i hope after getting about API i'll be able to guess what kind of application i create in vb.net using Daniweb API? So , i won't …

Member Avatar for Dani
0
311
Member Avatar for ACE--

Hi, In Form 3 I have one Text box and Button. Question #1: If I enter 200 value in Form3 Texbox.1 And button1 click and then next I want to create 200 Textboxes in the form3. I already the code but it is not working. It is creating the text …

Member Avatar for Reverend Jim
0
613
Member Avatar for heftytest

what does the DIM mean in this code? I understand everything else. Process 1. Display “Salary Average” as program title 2. Prompt user for employee names 3. Prompt user for employee salary 4. Convert average salary 5. Count salaries above average salary 6. Count salaries below average salary 7. Post …

Member Avatar for Learner010
0
308
Member Avatar for griselndria

Could anyone help me?I have the code below to insert,edit and delete data in database from an excisting table.Data are added in database but not edit and delete. What should i do? jQueryOb(function new_dialog() { var new_dialog = function (type, row) { var dlg = jQueryOb("#dialog-form").clone(); var fname = dlg.find(("#fn1")), …

Member Avatar for diafol
0
767
Member Avatar for nickewus24

Hello! I am having a hard time with pseudo-code and I have come up with what is below for this question: Input a list of employee names and salaries, and determine the mean (average) salary as well as the number of salaries above and below the mean. Do you see …

Member Avatar for heftytest
0
187
Member Avatar for jakx12

title says it all, basically what i cant figure out how to do, is to check if a certain session value is equal to nothing. ISSET does not work for the context in this situation. Please help, i know its basic i just cant grapple it. I have searched high …

Member Avatar for wadeshuler
0
4K
Member Avatar for hemanshurpatel

Hi friends, I want to implement code which can take input from some other application. Like say for example ls | less Here, less is the application/utility which takes input from ls via pipe. I want to implement the same in C. I Did following things 1. Created PIPES using …

Member Avatar for Tumlee
0
715
Member Avatar for ArashVenus

I've tried lots of times to get this to work but , no luck . the problem is this program shows white screen , and It doesn't display the polygon . Here's the code , take a look : /*Headers*/ #include <GL/glut.h> /*End of headers*/ /* Check Compiler*/ #ifdef __FLAT__ …

Member Avatar for ArashVenus
0
8K
Member Avatar for mbarandao

Hello: I am wondering if there are any suggestions on how to pass variable to a div in the following manner: foreach (array_combine($playerState_array_clean_phase2, $membId_stripped_array_clean_phase2) as $playerState_array_clean_phase2 => $membId_stripped_array_clean_phase2) { echo" <a href=\"#_MultiDataProcessor?Pid=$membId_stripped_array_clean_phase2&Plname=$lname&Pfname=$fname\" title=\"$membId_stripped_array_clean_phase2\"><span style='font-size:1.5em'>$playerState_array_clean_phase2</span></a>"; } I want to get those variable in a div that looks like: <div class="iLayer" id="MultiDataProcessor" …

Member Avatar for iamthwee
0
3K
Member Avatar for tqmd1

Sir I am have these codes <?php session_start(); require_once("connect.php"); function clean($str) { $cstr=trim($str); $cstr=addslashes($str); $cstr=htmlspecialchars($str); return $cstr; } if(isset($_POST['login'])) { $myusername=clean($_POST['username']); $mypassword=clean($_POST['password']); if(empty($myusername) || !empty($mypassword)) { echo ('<script>alert("User name or password must not be empty")</script>'); header ("location: login.php"); exit; } else { $query="SELECT * FROM admin where username ='". $myusername …

Member Avatar for pritaeas
0
180
Member Avatar for <M/>

According to my professor's program, it says that the snippet of code that i wrote has a syntax or runtime error. This is my code: #S3 display fruit name, inventory quantity sum, price and sum quantity*price displayed as value for each row in fruit SELECT name, sum(quantity), price, price * …

Member Avatar for Reverend Jim
0
174
Member Avatar for <M/>

Hi guys, i am trying to find the area of a triangle and for some odd reason i can't get it to produce the right numbers. Here is my code: import java.util.Scanner; public class Exercise2_15 { // find the area of a triangle public static void main (String [] args) …

Member Avatar for <M/>
0
471
Member Avatar for Mike Bishop

I have data already populated in a datagrid I have three textbox txtCustomername, txtPartcode, txtinvo I want the user to be able to input text into the txtcustomername text box which will result in the datagrid only showing the rows that relate to that customer. Then I want the user …

Member Avatar for kRod
0
123
Member Avatar for nadiam

hey guys. so i found the coding for submitting a form without refresh from a website( http://www.computersneaker.com/submit-a-form-without-page-refresh-in-php-using-jquery/) but its not working. i just copy pasted the code to test it out but it doesnt submit the data. I wanted to ask the owner but didnt find any commenting area. <head> …

Member Avatar for Gaetane
0
3K
Member Avatar for Aisha_1

A queue is a restricted data structure that allows only the following operations: a.Enqueue" an item at the end" of the queue. b.Dequeue" an item from the beginning" of the queue. These should correlate with your intuitive notion of a queue (line) in the physical world. In queues the first …

Member Avatar for nahi
0
247
Member Avatar for MaddTechwf

When I run the code below it fails. I've run the exact same code without the ID appended to the url and it worked just fine. Am I appending it incorrectly? // CALLS THE PHPSLQAJAX_GENXML2 PAGE AND RETURNS VALUES function downloadUrl(url, callback){ var request = window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : …

Member Avatar for MaddTechwf
0
209
Member Avatar for office1111

i want have a multiple user login and redirects them to a specific folder such as when i have user login of John, and when John logs in it redirects John to account_john/welcome.php, and another when i have a user called Alex and it goes to account_alex/welcome.php, is there anyone …

Member Avatar for office1111
0
327

The End.