199,114 Archived Topics
Remove Filter ![]() | |
Hi everyone, I have the implementation for a linked-list based Stack. I believe the entire code is correct, but only the way I call the push and pop function mighe be wrong. Any idea how they should be called? Mine returns garbage: #include <iostream> using namespace std; typedef struct Elements … | |
I cant figure why my program is not running it compiles with no errors but doesnt run, am bearly starting to learn c , am more proefficient in java but its wierd changing, i use vi to write my code. heres a snipet #include <stdio.h> #include <stdlib.h> #include <time.h> #include … | |
I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in … | |
I created a program that will find the biggest number when give 3 different numbers. But when I want to change the program to find the biggest number when you enter 4 integer number I continue to run into problems. I can get it to find the biggest number when … | |
Hi, I have a class which implements dispose patteren. Please see the sample code below. public class MyClass : IDisposable { private readonly IBanking mybanking; public MyClass(IBanking banking) { if (banking == null) { throw new ArgumentNullException("banking"); } mybanking = banking; } ~MyClass() { Dispose(false); } #region IDisposable Members public … | |
Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float … | |
Hi, I am having error in following code, <!-- START --> <p class="date-head"> <?php $sql_online_mem = "SELECT membername FROM ` trade_messengerd` WHERE status = 'Online'"; $db_sql_mem = mysql_query($sql_online_mem); while($online_mem = mysql_fetch_array($db_sql_mem)){ $members_online[] = $online_mem['membername']; } for($o=0; $o<count($members_online); $o++){ if($members_online[$o] == $uid){ $mem_online = "Online"; } } ?> <a href="#" onClick="window.open('<?=$domain_url?>/messenger/members/_login.php','login','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=368,height=600,left=380,top=60');return … | |
I'm trying to expedite the process of manually opening up an XML file and searching for some info in it. I want to store some of the data, etc. Nothing elaborate. But I'm not clear on some of the file structure. For the seasoned XML data wrangler, can you instantly … | |
Is it posible to preload video for the user but so that he would not be able to see it? I mean I want to preload video - its for a gaming. And then when the time comes to play the video, send some key to decrypt and he could … | |
Doe anyone here know the ascii code for the enter(newline)?? im not looking for the '\n' answer.. thanks..:) ![]() | |
Hello I am trying to load a select option depending on the value selected on another select option <select id="state" onchange="SelectValue();"> <option value="State1">State1</option> <option value="State2">State2</option> <option value="State3">State3</option> </select> <select id="district"></select> <script type="text/javascript"> function SelectValue() { var e = document.getElementById("mfr"); var Val = e.options[e.selectedIndex].value; } </script> I want to call this … | |
Hi, The Windows API function to select a directory is really bad, so I'm trying to use GetOpenFileName() instead. For that, the idea is to set a hook function, so that when the user hits the OK button without having actually selected a file, the hook function retrieves the currently … | |
I am in need of SDK ME development kit for creating Mobile applications using Netbeans IDE 7.1.1. Favour me in this regard. Velhassan. | |
If I have relation schema R(A, B, C, D, E) with functional dependencies: AB->C, CD->E, C->A, E->D: a)find all the (minimal) keys for R b)state the normal form for R and describe functional dependencies that violate higher NF c)decompose R into 2 (or more) relations that are in highest possible … | |
java and j2me are same or what ? Can I make j2me app. After learning java ? If yes Suggest some good free website to learn java which gives complete a2z course ? | |
I'm trying to get an xml file from an ftp and then insert select data into mysql db. I'm shooting in the dark but from googling this is what i've tried so far: $curl = curl_init(); $file = fopen("import.xml", 'w'); curl_setopt($curl, CURLOPT_URL, "ftp://company@company.company.se/company/import.xml"); #input curl_setopt($curl, CURLOPT_FILE, $file); #output curl_setopt($curl, CURLOPT_USERPWD, … | |
Hi, I, getting a new xml file everyday to one of our external ftp servers. I want to get that file and then insert select data into my mysql. What I'm thinking is that I would use curl to get the file, then simplexml and then insert into database. But … | |
I have this script that I thougth only deleted stuff more than 90 days old but after I ran it, it deleted pretty much everything on my backup drive. Thankfuly I have another backup drive so I did not lose my backup but I need to fix this so it … | |
Hi, Below is my ajax code along with html and php code. I am getting an error "title is not defined".. Ajax ------ function callAjax() { $.ajax ({ type: "POST", url: "get.php", data: "title=" + title, success: function(msg) { alert(msg); }, error: function(msg){ alert(msg); }, }); } HTML ------ <form … | |
How to store the elements and display?? struct A{ int level; char name[20]; struct b *a_b; }*d[3]; struct b { char name[20]; struct b *next; }; | |
Hai; How can I rewrite user profile page url like `http://website.com/firstnamesecondname-id` in wordpress ? Please help me. | |
Here's the assignment requirement: > Write a program that creates a series of one or more loan amortization schedules. The program should query the user for an input file name and an output file name. The input file will contain the number of schedules that need to be generated as … | |
hello everyone.. I am trying to connect a simple application to Oracle XE database. But when I run this program , the else part of program is running. Can Anyone tell whether I hav ewritten the code correct or not. import java.sql.*; public class jbc { public static void main(String … | |
I would like to create a font file (like .ttfv or etc) by using java, how can I do it. If java cannot create or edit font file, could you tell me which program language can do it? I would like do it by programming without exists software. I really … | |
My project is to create controls inside a class library and then display them in another application. I already added the class library to my reference inside the application and added System.Windows.Forms to my class library. Here is the code in the class library: using System.ComponentModel; using System.Data; using System.Drawing; … | |
<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("agenda") or die(mysql_error()); $q = mysql_query("INSERT INTO kontakte (emri, mbiemri,e-mail,nr,adresa,shenime) VALUES( '{$_POST['emri']}' '{$_POST['mbiemri']}', '{$_POST['e-mail']}', '{$_POST['nr']}', '{$_POST['adresa']}', '{$_POST['shenime']}') "); if (!$q) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?> <html> <head></head> <body> <div … | |
In the following program how or the two while statements working, `while(szTarget[targetIndex])` & `while(szTarget[targetIndex])` since the their first element is initialized to zero? Zero is false and one is true so how are they getting even one iteration? The book I'M reading also made a point of saying this: "It … | |
Hi all , I have googled for an answer for this question but most of them are so complicated. Can anyone suggest a simple article on this topic or show me step by step how to solve this. I want to upload an image to a folder and show this … ![]() | |
Hi, I have this following code: $('#content-load-target').load(location,function(response, status, xhr) { if (xhr.status != 200) { location.href = '/'; } else { //do something else } }); The response can be either an ajax page or be redirected (if the session has timed out). In case of redirect I want to … | |
So for my assignment I have to create the Vector class and apply it .hpp to include the "Vector.h" file and no include the original Vector class. I have a few of the member functions done but am not sure how to begin with the other ones and im wondering … | |
Hi, im using crystal report on my project. It working very well but I just want o make it more flexible. I have textobjects with of course text in it. They are not bound since they are just additional information on my report. How can i make those textobject editable … | |
How can I grow the size of a char array? `char myArray[6];` Assumming that all the current elements are occupied how can I add more empty element to the array to input another value into? | |
I'm currently making a DLL with a collection of code snippets that I find myself commonly using. I have made a search functin that checks if one string is inside of another string. I have also added a vector choice in the case that I want to search many strings. … | |
is it true that no. of rows affected by select statement (ado.net) , is always -1. i.e. NO. OF ROWS AFFECTED BY SELECT STATEMENT = -1 ; if it is then why ? | |
Hello, I am making a calculator for school and so far I have written a code that allows user to combine and input. Calling it a formula would be wrong I think. It's like User pushesh buttons and comes up with an input like this for example : 11+4+9-5. Now … | |
Good Morning... I hope this doesn't come across as too unintelligent, but I am baffled and maybe unnecessarilly I am implementing a payment processor and merchant account services on my members site. The processor has provided me with a host of API code for various functions and activities. Problem is … | |
I am making a mysql query that gathers comments for a user, it works properly, I connect to the database and recieve the comments for a user, but it is not showing the first comment for the user. Here is the code function comments(){ //connect to db connect_db_members(); //start query … | |
I'm almost done with my assignement I've created 2 class and I have one format method in student class the file look like this (there are about 25 lines) courseNum courseName courseSemester studentID,studentProgram,studentGpa studentID,studentProgram,studentGpa the output should look like this courseNum courseName courseSemester studentID--studentProgram--studentGpa studentID--studentProgram--studentGpa I'm still not sure if … | |
mysql_connect('localhost','root',''); mysql_select_db('db_enrollment'); <?php require('fpdf.php'); class PDF extends FPDF { // Page header function Header() { // Logo //$this->Image('logo.jpg',22,10,160); // Arial bold 15 $this->SetFont('Arial','B',15); // Move to the right $this->Cell(80); // Line break $this->Ln(20); } $result=mysql_query("select * from omr_result"); // Page footer function Footer() { // Position at 1.5 cm from … ![]() | |
I am working on a project in which to show booking in caledar form is required.I myself build the calendar.it is showning the booking correctly in choosen color .but when i see calendar next months it shows booked from date 1 to date 12 booked every month .the main part … ![]() | |
Recently, I saw somebody start a "Deal or No Deal" game in the Posting Games section. This got me thinking of writing a program to actually play the game based on the rules of the show. So I spent a couple of hours writing this in ANSI-C. I probably should … | |
I just need help to display my initial value of 25000 when the loop runs and print the years. I need the year 1 to be the initial value without doing the percent first. Also my print format doesnot display the $ and the headers. Any guide to the right … | |
Hi everyone. I'm trying to verify whether the variables $username and $password_recovery (both are unique - impossible for them to be the same) both come from the same row in the rable 'users'. This is the query I am using: return (mysql_result(mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `username` = '$username' AND … | |
this is a calculator in asm using tasm..this works fine but the problems i want to fix are: 1.remove the division part(add,sub,and multi are required). 2.i want to remove the menu, when i run the program it should show up directly to the input part. 3.i want this thing [+][-][*] … | |
i got a little problem here, i want to update my record by opening it on another form. but it only update the first record on the list, can anybody help me with this. heres my code: 'first form Private Sub command1_Click() If Text1 = ListView1.SelectedItem.Text Then With form2 .Label1.Caption … | |
i am working on a program called myBalls. so far, heres what i have import java.util.Scanner; public class Penis { private int length; public Penis() {} public void setPenisLength(int l) { length = l; } public int penisLength() { return length; } } public class myBalls extends Penis{ public static … | |
Runtime error 2147467259(80004005): The changes you requested to the table were not successful because they would create duplicate values in the index, primary key..How to catch the exception? | |
I have created a basic object oriented database of a list of shoes containing the shoe name, number and shoe size. I am trying to sort the list of shoes alphabetially by name and by shoe size. I have the following code: Shoes.h: #include <iostream> #include <fstream> #include <string> #ifndef … | |
I am looking for a Date picker (dd/mm/yyyy), which is support in all browser. Is any one provide me the code in JavaScript. | |
I recently wrote a program to determine my current working directory using getcwd(). getcwd() returns the starting address of the character array supplied by the programmer. I have written a very simple program and as I am not an experienced C program can anyone mention what I can do to … |
The End.