199,114 Archived Topics
Remove Filter ![]() | |
hi all; i have run this code and the first read and write work correctly. but and the second one is missed. the output log is: freez@JALALI:~$ ./a salam8a okok2freez@JALALI:~$ #include <stdio.h> int main() { write(1,"salam",5); char a[2]; char b[5]; read(0,a,2); if(a[0]=='8') {write(1,"ok",2); read(0,b,5); write(1,"ok2",3); } return 0; } | |
Hey... I think there was already thread with simillar topic. but there was nothing useful to me... so i decided to create a new topic to take help from you. Well the question is really simple. I have developed a Windows service application and console application. i am looking to … | |
Hi there, What is the easiest way to declare and initialize 2d dynamic array in class in C++ ?? Please tell me the easiest way, I have used 2d dynamic array in Java. Thanks ! | |
This program is to calculate commission and this is the pseudo I wrote for it. Tell me if I'm right. 1 Declare variables 2 get sales 3 calculate if sale < 1500 Then commision= sale * 0,02 else commision= sale * 0,04 4 Dispaly commision | |
well here is the problem ! i am making a desktop application using vb.net and sql server for a local jeweler. i want to fetch "gold rate" to text box "txtbox_goldrate" from http://www.goldrates.pk . the other way is to use goldrate api from a webservice but that is not free … | |
Hello, I need help with sliding down an element. When it is sliding down I want the parent's div height to change so it will contain the sliding element. My html: <div class="sliderBox"> <ul> <li> <div class="main"> <div class="publicationTitleOuter"> <div class="publicationTitleInner">Kouga/Uitenhage</div> </div> <p class="issueDate">8 MAY 2013</p> <div style="margin-top:10px"></div> <div style="width: … | |
Ok basically what I am trying to do is this. There is a game and it has an address that changes but always contains the same value. So what I'm trying to do is enumerate from a starting address of this running process in this case 0x0120DE13 and read what … | |
Hello How can a small (I imagine jQuery UI popup) popup hover over a page then disappear after x seconds? | |
HI all, I have an page apaearing inside a control, but i needed it to acesso an label in the master page. This page is not related to the master page because it it was the master page would open with it. My questions: its there a way to acess … | |
immutable objects cannot be altered,whereas in line 3 x contains xyzabc. I want to know what exactly is happening with the string object. Thanks in advance | |
Hi I want create a program in which folder(level 0) is containing number of subfolder(Level 1) and each folder(subfolder Level 1) contain file number of file and subFolder (level 2). now i want to copy folder(level 0) but from subfolder (level1) want sepecfic file and subfolder(level 2) rest want to … | |
well I need some guidance to how I can do what I wan't done as I haven't gotten any idea I got the GUI made, now I have these items I wan't the player to be able to paste onto the empty space (were there are no GUI) how can … | |
hi I have method which accept file and want to compare with string for the above mention reason i did System.out.println(targetFolder.getAbsoluteFile().equals(listPropertyValue[1]/*which is a string */)+"\n"+targetFolder.getAbsoluteFile()+"\n"+listPropertyValue[1]); the value of listPropertyValue[1] and targetFolder.getAbsoluteFile() same value but it gives false. Please tell me where i am wrong Thnks | |
3 years ago, one brother solved this problem, i need this program to make some calculation. actually, i have some fractional/decimal component t (like 2.0213, 3.047) this program can only take integer. Can anybody please help me !!! #include<iostream> #include<fstream> #include<string> #include<cstdlib> #include<cmath> #include<iomanip> #include <windows.h> using namespace std; //void … | |
Please see question 3. I have attached the question paper with the second attachment as my answer. | |
Hello, We are sending email using these settings: $config['smtp_host'] = 'ssl://smtp.gmail.com'; $config['smtp_port'] = 465; $config['protocol'] = 'smtp'; $config['mailtype'] = 'html'; $config['smtp_user'] = 'email@gmail.com'; $config['smtp_pass'] = 'password'; $config['smtp_timeout'] = 40; Thats ok it works. For few days. Later it stops sending. THen we go to gmail acount in web interface to … | |
**Here is the assignment:** Write a C++ program to calculate and display the number of primes in the first 50 “chiliads”. Your results should be exactly as presented below, under testing. Design Considerations: I think you will find your program easier to structure and write if you break it down … | |
There's a error when I run this jsp file --> **" pstmt.executeUpdate();".** **"org.apache.jasper.JasperException: An exception occurred processing JSP page /TestAdd.jsp at line 39"** My code essentially have a text box for users to enter a value, and then the value is sent to the MySQL database. Any help is appreciated … | |
Hi guys, i am working on a Project about mobile Navigation on a lego Mindstorms Robot but i am stuck right now. I get this error:"The method MinDistanceNode() is undefined for the type ArrayList<Node>" I have four different Classes. The problem is probablyin "DijkstraAlgorithm" or in the Method "minDistanceNode" which … | |
A road distance table may be used to give the distances between some towns as shown below. To simplify the programming of distance tables, we assign numbers 0, 1, . . . to the towns. Then we may get a distance table like this: Towns Number Alor Setar 0 0 … | |
I have Visual Studio Express for Desktop 2012. I am trying to make an accouunt search feature. Similair to this: http://tinypic.com/r/4r2cer/5 Anyways, the Account Holder Name and Balance fields are read-only. How do I type in the Account Number and auto-populate those two fields based on the acct. number. If … | |
There are two tables "LESSON" TABLE Attributes : - id_lesson -lesson_name - semester "LECTURES" TABLE Attributes : - id_lectures - id_lesson - id_lecturer - hour - day How to display all atributes in lectures table where lessons in 2nd semester ? Note : there's id_lesson in lectures table | |
I need to make that when you use a color picker the hover styling would work too. So far I've only got background and border bottom working here is the code below (uses JQuery): var customElements2 ="#search .submit_input, .reputation.positive, .members li.positive"; var customElements = ".maintitle, #community_app_menu > li.active > a, … ![]() | |
I was wondering guys if you could explain me how RECURSION works inside a loop!? I got lost here so please anything we ll be much appreciated. public void perm(int[] list, int k, int m) { int i; if (k == m) { for (i = 0; i <= m; … | |
so i have a problem, i'm trying to make a live chat where two members can chat without having to refresh the page, and i have got everything work up to where you start typing in the textarea, well i'm trying to check for the "enter" key to be pressed, … | |
hello everyone! Is it possible to write a text file in notepad and then when it call to system (Probably VB6) it will add to the exif data of an image?? Anyone coull give me an idea will be appreciated. Thanks in Advanced!.. by the way, Jonel's here form phils.. | |
Hi! This is my code to get the difference of two dates in Javascript. var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); if (dd < 10) { dd='0'+dd } if (mm < 10) { mm='0'+mm } today = … | |
Hi, I've had a look through the forum(s), however, can't seem to find a solution to my issue (and I don't understand the PHP Manual). Basically, got a website linked to a database, trying to pull data from one table and display onto the website where appropriate. I have the … | |
#include <iostream> #include <fstream> #include <windows.h> #include <iomanip> using namespace std; void printMainPage(); //customer need to register 1st Page void printUserPage(); //User(registered customer) page void Login(); bool openFileIn(fstream &, string ); //fstream in_file("Register and Login Details.txt"); fstream file("Register and Login Details.txt", ios::out | ios::in); int main() { printMainPage(); system("cls"); printUserPage(); … | |
require("conn.php"); $sql = "select * from pemohon where kp_baru='$kp';"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { if($row == TRUE) { echo $row['kp_baru']; // can display } else { echo "No KP tiada didalam pangkalan data."; // can't display } } | |
Okay so here's a good one for you guys, I have some theories but would like some help. So I have a project I just came up with while I was waking up this morning. Part of this project involves comparing 2D arrays (or Lists, if I say array assume … | |
hya ive created a edit profile page for members to fill in and now i need that information to go to members profile page how do i do this ive tried several tutorials in youtube but get nowhere with them i dont need the register or login got that already … | |
I have a problem want to be solved. I have three pages. page1.php, page2.php page1.php has a form with two text field. one text field is for name and another is for number. there is a submit button and a "next" button too. using session I want show given name … ![]() | |
![]() | I have a project I am working on and it involves java graphics which I am a novice at, I have uploaded the description of the project and the image of how it should look like, now i am having problems implementing the part of introducing the virus and drug … |
ok here is the login function from my class user which parent class is a Db connection file <?php require_once("DBConnection.php"); class User extends DBConnection { .... .... ... ... public function Login() { $sqlSelect = "select `UserName` from `user` where `UserName` = '$this->userName' and `Password` = '$this->password'"; $result = @mysql_query($sqlSelect, … ![]() | |
I have some functions that returns nothing or some value (obvious), and also having a little trouble with the if and closing, is there a good way to do this? I want to return the value after checking if any of the strings are not empty. Actually it is a … ![]() | |
The tiny tots tee-ball league has 12 players who have jersey numbers 0 through 11. The coach wants a program into which he can type a player’s number and the number of bases the player got in a turn at bat (a number 0 through 4). Write a program that … | |
models.py class Settings(models.Model): date_format = models.CharField('Date format', max_length=100) time_format = models.CharField('Time format', max_length=100) views.py for saving the date and time format in database as boolean. def date_format(request): settings = Settings.objects.get(user=request.user) settingsForm = SettingsForm(instance=settings) if request.method =='POST': settingsForm = SettingsForm(request.POST,instance=settings) if (settingsForm.is_valid()): settings=settingsForm.save() return redirect('/member/follow-up/') return render_to_response( 'incident/date_format.html', { 'about_menu': True, … | |
Hello DaniWeb, i recently began reading a book called programming in Objective-c by Kochan 5th edition, One thing i havent gotten the grasp on is Properties and WHEN to use them or if they are even usable on such a simple test program such as in a coffeeShop class for … | |
I'm using the following code for my paging on my script <?php $pn = 0; $result = mysql_query("SELECT * FROM tbl_product WHERE category = '$cat' ORDER BY id ASC "); $nr = mysql_num_rows($result); if (isset($_GET['pn'])) { // Get pn from URL vars if it is present $pn = $_GET['pn'];// filter … | |
whenever i open a form within a form in vb6.0 it goes back of the other form how can i solve it? | |
Hi, I'm a beginner in vb.net and I have a problem. At first I want to say sorry for my language, English is not my first language. Hope u onderstand my prob. So, I'm working disconected, I have a datagrid and now I want to search in this datagrid by … | |
Hii guys.. Iam having problems with visual c++ i created a win32 application in visual c++..then if tried to execute a noraml turboc3 developed C++ porogram..then it is showing some errors regarding the header files... the error is... 1>cvar.cpp 1>d:\mallika\stuff\cpp\cvar.cpp(1) : fatal error C1083: Cannot open include file: 'iostream.h': No … | |
I am writing a program for a clinic now. here is my code ,the problem now is I need to write 2 functions for my program The first function : is to capture time of registration The second function: is for treated time of patient -each patient can consult DR … | |
I cannot get the microsoft SDK installed. This is the log file. I'm on windows 7 pro 64bit. I am running Kaspersky Internet Security 2013 if this may be an issue. Any help would be appreciated. 10:29:27 AM Sunday, May 19, 2013: ------------------------------------------------------------------------------------------------- 10:29:27 AM Sunday, May 19, 2013: [SDKSetup:Info] … | |
I've got an upload script that generates some stuff in relation to uploads eg File foo.jpg uploaded succesfully<br /> File bar.tiff failed to upload! ... This is all part of a variable called `$message`. How could I pass this to another php script? Thanks for any help | |
Hi I want to know how to know if user is running the program for first time? I have a .txt file which will be loaded on start, but it is the first time and there is no such file. If anybody contributes, I will be happy Thanks in advance … | |
i want to print out my form using onClick="window.print()".. but the output is not same with display form in browser. for the information, i use CSS to positioning the layer or <div>.. | |
I have data in which column 'C' have cells which contain multiple values separated by (,).Now I want to get atomic values in all cells of column 'C'. i.e. that for a cell when there is more than one value; separated by (,) it should be copied in the next … | |
G'day, I created my own simple blog with some posts in it, the posts are stored in a folder called "posts" and there in .MD format. I want to put a search engine on my blog when they search anything that looks similar to any blog.. it should show the … |
The End.