637 Topics

Member Avatar for
Member Avatar for صمتي

I want to order this program by name in descinding order. #include <iostream.h> #include <stdio.h> #include <conio.h> #include <string.h> #define MAX 10 struct std{ char name[20]; int age,year; }; class radixsort{ struct std arr[MAX]; int n,i; public: int a[]; int b[]; void getdata(); void showdata(); void sortLogic(); }; void radixsort …

0
156
Member Avatar for ABELLOVE

write a c++ write a c++ programe that accept resalt frome the user and displays grade and remark as follows if resalt >=90 the grade 'A' Remark 'EXCELLENT' if resalt >=80 the grade 'B' Remark 'VERYGOOD' if resalt >=70 the grade 'C' Remark 'GOOD' if resalt >=60 the grade 'D' …

Member Avatar for NathanOliver
-2
124
Member Avatar for Ryan_11

I have three tables i want to search for customer data depending on the equipment type. $test = "SELECT custid, equipment FROM customer WHERE custid='$id'"; $data = @mysqli_query ($dbcon, $test); $equip = mysqli_fetch_array($data, MYSQLI_ASSOC); if($equip['equipment'] = "cellphone" ){ // Make the query: $q = "SELECT custid, cdate, custName, customer.equipment, customer.manufacturer, …

Member Avatar for Topnews
0
285
Member Avatar for Jing_1

Hi all, i encounter an syntax error "Syntax Error in Insert Into" when i try to run this code... anyone can assist? Thanks! Dim sConnectionString As String sConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=H:\Users\Desktop\EmployeeAway2.xlsx;Extended Properties=""Excel 12.0;HDR=YES;""" Dim objConn As New System.Data.OleDb.OleDbConnection(sConnectionString) objConn.Open() Dim objCmd As New System.Data.OleDb.OleDbCommand() objCmd.Connection = objConn …

Member Avatar for Jing_1
0
360
Member Avatar for jKidz

Hi Guys I wrote simple PHP script for get value from URL and check similar values from the database. This is a code <?php include('../../datab.php'); if(!empty($_GET['ip'])) { $ip = $_GET['ip']; $ipcheck = mysql_query("SELECT * FROM `report` WHERE `ip`='$ip'"); if(mysql_num_rows($ipcheck)> 0) { while($row = mysql_fetch_array($ipcheck)){ ?> <body> <p>Report ID : <?php …

Member Avatar for jKidz
0
254
Member Avatar for Ryan_11

I have a table that logs customer data but i want to search for the customer, upon finding that customer i want to click on the name and find it in another table that store other data. But here is where i am stuck i want to check which table …

Member Avatar for tapananand
0
200
Member Avatar for jKidz

Hi Guys, I am developing a Music Database system. This is a 'Song.php' page. It will be a Detailed page of a each song. Ex : song.php?id=1 <?php if(!empty($_GET['id'])) { $sid = mysql_real_escape_string ($_GET['id']); } // if song id is null, user will redirect to the full song list else …

Member Avatar for Benjamin_11
0
178
Member Avatar for jj.dcruz

Im having a problem using foreach i cant seem to understand this yet. my problem is when i enter all the data needed it shows many inserting code I cant seem to figure this out This is the Output INSERT INTO `dependents`(`d_name`, `d_age`) VALUES (1,1) INSERT INTO `dependents`(`d_name`, `d_age`) VALUES …

Member Avatar for arunmagar
0
462
Member Avatar for mustafa.bahaa

That program output (the chr is not a vowel ) everytime !! even if it's vowel #include <stdio.h> #include <conio.h> int main() { char ch; printf("Input a character\n"); scanf_s("%c", &ch); switch (ch) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case …

Member Avatar for Ayrton C.
0
392
Member Avatar for Momerath

Optimizing Matrix Multiplication One time consuming task is multiplying large matrices. In this post we'll look at ways to improve the speed of this process. We'll be using a square matrix, but with simple modifications the code can be adapted to any type of matrix. The straight forward way to …

Member Avatar for fran2884
7
6K
Member Avatar for nouth

Can someone explain this what it is doing? if ( condition1 && condition2 && condition3 && condition4 && condition5 ) { code } It doesn't do what I want it to do but this does. if ( condition1 ) { if ( condition2 ) { if ( condition3 ) { …

Member Avatar for stultuske
0
153
Member Avatar for arafath077

how to display this array.i tried sevaral way.does not working. Array ( [0] => Array ( [date] => Array ( [epoch] => 1401197400 [pretty] => 7:00 PM IST on May 27, 2014 [day] => 27 [month] => 5 [year] => 2014 [yday] => 146 [hour] => 19 [min] => 00 …

Member Avatar for delta_frost
0
270
Member Avatar for ankit1122

index.php code <html> <head> <meta charset="UTF-8"> <title>Our Local site</title> </head> <body> <form action="welcome.php" method="post"> <input id="t1" name="t1"type="text" placeholder="table name"><br> <input id="s1"type="text" name="skill[]"placeholder="skill or item or spec"> <input id="s2" type="text" name="skill[]" placeholder="skill or item or spec"> <input id="s3" type="text" name="skill[]" placeholder="skill or item or spec"> <input id="s4"type="text" name="skill[]" placeholder="skill or item …

Member Avatar for Excizted
0
370
Member Avatar for ankit1122

hello all; <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>Our Local site</title> </head> <body> <form action="welcome.php" method="post"> <input id="t1" name="t1"type="text" placeholder="table name"><br> …

Member Avatar for pritaeas
0
187
Member Avatar for dfjosh

Why do the nested `li`'s in the Navigation ribbon disappear before I can get my mouse to them in IE. It only doesn't work in IE (9 and 8 are the ones I've tested). Here is the site: http://www.seventhheavenvintage.com

Member Avatar for dfjosh
-1
238
Member Avatar for Doogledude123

I am trying to create a File Searching Utility that finds all Files with a given Name which searches all Folders (Sub Directories, and Sub Directories of Sub Directories) in a given Directory. I was thinking of a way to use For Loops, or For Each, but that would mean …

Member Avatar for JamesCherrill
0
259
Member Avatar for Auroch

Hello funs2code! I have the following problem. I need to count the number of occurrences of a concrete word in a text file. I've tried to count the number of occurrences of each word at first. The following code has no errors but it isn't working! When I type in …

Member Avatar for Auroch
0
426
Member Avatar for jkhippie

#include <memory> #include <deque> void MyFunc { std::deque< std::shared_ptr< Sprite* > > SpriteList; func_to_fill_deque( SpriteList ); for( auto i = SpriteList.begin(), end = SpriteList.end(); i != end; i++ ) { SpriteList[ i ]->spriteFunc(); // doesn't work SpriteList.at( i )->spriteFunc(); // also doesn't work } } void func_to_fill_deque( std::deque< std::shared_ptr< Sprite* …

Member Avatar for jkhippie
0
2K
Member Avatar for mikeandike22

Ok so im using hubspot for inbound marketing and the have a thing called page grader that finds errors in your page. The most common warning is page has images without alt text. Since im dealing with a really big drupal site and dont want to go through every image …

Member Avatar for marta.johnsson
0
5K
Member Avatar for Doogledude123

I know you can create nested classed (or just classes declared outside of the class in the same file) but what is the point of doing this? Why not just create a new class file?

Member Avatar for JamesCherrill
0
199
Member Avatar for thewebhostingdi

⇝ Register your domain name ⇝ Get a domain with your keyword phrase ⇝ Write unique content ⇝ Create a great keyword phrase ⇝ Choose a phrase that is popular, but not too popular ⇝ Use the keyword phrase in your title tag ⇝ Link to previous, succeeding, and related …

Member Avatar for karmatech
2
417
Member Avatar for cahram

Hi, I'm new to Python and have a task of reading a user input text file that is tab-delimited and contains 4 columns in each line: Authors, Year, Title and Journal. I currently am just able to open a file, and now I don't know how to begin parsing the …

Member Avatar for nihad.aziz
0
4K
Member Avatar for Gus_19

I am checking a couple of textboxes in my datarows. If the first textbox (event association 1) is not blank and it does not contain the word business, but the date of birth mtb is empty, then the statement is true and a messagebox will be displayed. Right now, I …

Member Avatar for Reverend Jim
0
300
Member Avatar for Yogesh2591

Hi, What is the main aim of the callable statement? How it is differ from prepared statement?

Member Avatar for stultuske
0
105
Member Avatar for changeworld4u

Hi Team, I have a file which contain following data like BKP0000032183140217000019 053IGZYEVSDOX .........field 2....... field3.....field4..... BKP0000032284140217000019CCTP1220 ............... BKP0000032384140217000019CA ..................... each line has 5 fields Now using shell script i am trying to extract field 4 based on condition that line start with BKP and contain code 84 and CA …

Member Avatar for changeworld4u
0
286
Member Avatar for jan.sehona.1

You have been hired by an amusement park company to write a JAVA program that prompts a person to enter their age and height and to find out if they are eligible to ride. A person is eligible to ride if their age is above 9 years and their height …

Member Avatar for JamesCherrill
0
197
Member Avatar for jan.sehona.1

Critically analyze the following statement "Multiple inheritance can be achieved without interface"?

Member Avatar for JamesCherrill
0
231
Member Avatar for Sushma Somesh

HI, my code for search is rec.Open "select * from Body_Markings_new where Part Number like '%" & txtsearch.Text & "%' ", conn, adOpenDynamic, adLockOptimistic after compiling this code getting an error saying syntax error (missing operator) in query expression 'part number like' %1%" please help me I not able to …

Member Avatar for Sushma Somesh
0
203
Member Avatar for Mohammed_13

I want to include a boolean search box in my existing script in the vResume_screen variable. I have altered the table for hte full text search and need your help. if(!empty($_GET)){ $vResume_screen=$_REQUEST['vResume_screen']; $date_screen=$_REQUEST['date_screen']; $vFirstname=$_REQUEST['vFirstname']; $vLastName=$_REQUEST['vLastName']; $vJobTittle_screen=$_REQUEST['vJobTittle_screen']; $vVisa=$_REQUEST['vVisa']; $InterestP=$_REQUEST['InterestP']; $VErecruitername=$_REQUEST['VErecruitername']; $vLastName=$_REQUEST['vLastName']; $where_clause=array(); if(!empty($vResume_screen)) { $where_clause[]="resume_text like '%".$vResume_screen."%'"; } if(!empty($_POST['vIndustry'])) { foreach …

0
114
Member Avatar for ray100

This is the project I need to finish. I am fairly new to php and this project has got me confused. Any help would be greatly appreciated The project ask for to validate ISBN 10 Number. There would be 10 digits with 1-9 being Numbers, but Number 10 is an …

Member Avatar for diafol
0
557

The End.