199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, I am making a bot for a link sharing site. I am using the request external curl class and i have a dilemma that i think you guys could help with. Query Variables appended on the end of a url such as ?something=234 I do not know how … | |
Hey everyone, I've been struggling with this problem for hours now and I have read and tried every example I could find but did not find a solution to my problem: I have a DLL written in C#. The DLL export function calls three functions: PrepareData(): Heavy calculations ComputeNN(): Mild … | |
[B]Problem question:[/B] Given the sequence A and B, where A is the inorder traversal value and B is the pre-order traversal value, reconstruct the binary tree that produces such results when performing inorder and pre-order traversal on that binary tree. To reconstruct the binary tree you can simply print the … | |
[CODE]void quick(int a[],int m,int n) { int k,key,i,j; if(m < n) { k=(m+n)/2; swap(a[m],a[k]); key=a[m]; i=m+1; j=n; while(i<=j) { while((i<=n)&&(a[i]<=key)) i++; while((j>=m)&&(a[i]>key)) j--; if(i<j) swap(a[i],a[j]); } swap(a[m],a[j]); quick(a,m,j-1); quick(a,j+1,n); } }[/CODE] I am getting a segmentation problem in swap(a[m].a[k]); Please explain. | |
I want to use jQuery tooltip in a table which is created with php doing a while loop. I want that when i hover over a row, the tooltip fills up with data according to that row. I found something similar using asp.net, but i dont know how to implement … ![]() | |
I'm trying to compare a string value, defined by user input, to values in a struct, so it will print out the names associated with that value. [CODE] #include <iostream> #include <string> #include <sstream> using namespace std; #define n_fencers 5 struct Fencer { string name; string weapon; int score; int … | |
This is my project and I have the code below.....Create a class that simulates the functionality of a simple car. You can do simple things like drive, add gas and honk the horn. Simple text messages are displayed on the screen for feedback when appropriate and ALWAYS include the make … | |
Is there an actionMap-like thing for mouse clicks? Thank you in advance, ive tried google, but did not find anything :/ | |
Hi All, Newline`(\n)` is not inserting a new line on the browser. Can some body help me how can I insert a new line on the browser. I know the html tag` <br />` will help. But is there any other way ? Here is the snippet of the code … | |
Any1 can tell me abt what are the disadvantages in OO modeling | |
Hi Can anyone explain what the meaning of encapsulation and abstraction in OOPs? | |
Ok, I am a complete noob at programming. As in I know nothing. I've made a few flowcharts, and written some pseudocode for my intro-level class, but most of that was just copying from a format within my textbook and manipulating the actual characters used for whatever I was doing. … | |
I have a C# Class Library which I want to use as a COM object in VBScript. I'm using Visual Studio C# 2010 Express. Here's the class code: [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace PB_GUID { class PB_GUID_Encode { private Guid _myGuid; private string … | |
hi I get an error, "has the wrong return type". it has something to do with "tim1.Tick += new System.EventHandler(tim1_tick);" Help me please. [CODE] Timer tim1 = new Timer(); DateTime huidigetijd = new DateTime(); private bool CheckTim1Start; public Wekker() { tim1.Tick += new System.EventHandler(tim1_tick); // tim1.Enabled = true; enable == … | |
I am currently doing some writings to an excel file (.xls) through JExcel API. My problem is about the autoSize method of CellView. My code. [CODE] public void write() throws IOException, WriteException { File file = new File(inputFile); WorkbookSettings wbSettings = new WorkbookSettings(); wbSettings.setLocale(new Locale("en", "EN")); WritableWorkbook workbook = Workbook.createWorkbook(file, … | |
Hi everyone im making a program to keep track of your movies just keeping it simple ! but im having a problem i am writing what movies you have to a text file but i cant append to it every time i write to the text file it overwrites everything … | |
hello....i am trying to establish a communication between server and client and later to do some communication between them, so first i am trying to establish communication and i see that server gives "segmentation fault" as the output. I am placing the code below, check it out and let me … | |
I'm writing a code to put names in alphabetical order. The code i've written wont compile as its teling me that 'left operand needs l value'. The lines it refers to is where i'm trying to swap around strins using pointers. I could use some help with this, thanks! [CODE] … | |
hi, i need a help for making double link list program in C double link list (file.h and file.c) in prototype insert first, insert after, insert last, delete first, delete after, and delete last. this program required in hospitaL you can email me : <email removed> (zip) i need for … | |
Is there any way to shorten this function by way of an array, list or the like? I've tried various methods (no pun intended) but can't seem to make it work, I'm getting errors coming out the wazoo! I don't want the code, just point me in the right direction.[CODE]def … | |
This is a part of my quiz program in which i ask the user to input question and 4 options and the correct option after which in new funtion i ask the quiz. but although it is asking me "option-1", its skipping the "Ques-" [CODE]int quizquestion() { cout<<"\nQues- "; cin.getline(stmt,100); … | |
Ok So I have to create a Date Class that will allow me to return the current day with data members of month , day, and year this is what I have for from my Main() class: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DateApp2 { class DateApp … | |
can someone help me and tell me what is wrong, I can't figure it out. It is pointing to the line "public class Lab4.24" [CODE]import java.util.Scanner; public class Lab4.24 { public static void main(String[] args) { int i; float sum; i=3; sum=0; while(i<=99) { sum=sum + ( (i-2)/i); i=i+2; } … | |
When you fill out the [URL="http://www.thecreativesheep.ca/construction/sheepageb.htm"]form field[/URL] in IE 7/8/9 and try to edit a previous form field the cursor flicks between the fields. This problem doesn't appear in any other browser, I hope I was understood. | |
I want make a competitive study of language paradigms for my thesis .I want work with languages similar in intentions but different in paradigms ..... My initial plan is to work with Perl ,Python, Ruby any help with materials will be greatly appreciated . | |
I downloaded mysql-connector-java-5.1.18 and put it on my USB drive. I brought my USB drive to school and opened up Eclipse, in there I added an external .jar (the mysql-connector-java-5.1.18.jar). Then I wrote this java code: [CODE] import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Scanner; public class Main … | |
Hi JavaGeeks, i am trying to get context path of my Applcation. But it is showing errors in that. Can you please mention the way how to get context path in javascript functions. | |
Hey, I was given a task for a class to make a table that shows 1-10 in the first column, the square of 1-10 in the next column and the cube of 1-10 in the last column. Well I got it to work it just looks sloppy to me and … | |
Hi, I'm seriously guessing here, but since I've seen that some php websites contain java stuff, like a java chatroom, I wonder if I can find a better solution adding some java to my php code. I'm looking for a way to browse and select a folder, or allow the … | |
hre is my code for deleting a file, wats missing? $getFields($fields); $infoFile = $doc->getFileInfo($file); $title = _l("Delete a document"); if ($action == "dodelete" && $file) { if ($doc->hasRight($_SESSION["Sid_user"], "d", $dir)) { if (!$doc->deleteFile($file)) $error = $doc->errstr(); else $error = _l("Document successfully deleted !"); } else $error = _l("You cannot delete … | |
So I know of two methods of reading or writing files in java. The first is the read(byte[]) method provided by InputStream class. The second is the readLine or write() method provide by the Buffered prototype. Which is the more efficient one out of these? Which one would you recommend? | |
Hi, I'm trying to finish a scripts to manage newsletter from a website but I encountered a strange weird stuff just at the end. Basically when I send emails everything seem to be alright. I sent 5 email. 3 of them was received perfectly but the other 2 not. Just … | |
Hi friends, it is weeks now I'm trying to figure out how to make simple custome theme engine for my custom PHP CMS. I want to use it for my projects. It is based on custom framework too. So I checked how Drupal does it and Joomla. They are complex … | |
So my java pprgram is actually a GUI I did all of it except I cant figure out how to convert between bases example: number=2239 base=3 newbase=4 first i need to convert 2239 to base 3 which would be 2 * 3^3 + 2* 3^2 + ..... then convert that … | |
INPUT.txt [CODE] 6 p q r s k m 6 ~p|q ~q|r ~p|~r|s ~r|k ~k|m r m [/CODE] right OUTPUT.txt [CODE] ~p|q,~q|r,~p|~r|s,~r|k,~k|m,r,~m p: Resolve unsuccessfully q: ~p|~r|s,~r|k,~k|m,r,~m,~p|r r: ~k|m,~m,~p|s,k,~p|k s: Resolve unsuccessfully k: ~m,~p|s,m,~p|m m: ~p|s,0,~p TRUE [/CODE] My Program [CODE] #include "stdafx.h" #include <string> #include <fstream> #include <vector> #include … ![]() | |
Hello all, I am a little confused about .lib and .dll files. I always thought that .lib files refer to a static library and that a .dll is the dynamic library. Recently, i read that .lib files also act as a stub for a .dll and that the .lib files … | |
Hi, i've a problem with my codes, when ever i run it, i got an error from the checking i implemented. Can some pls explain why does the error keep coming. [CODE]import java.net.*; import java.io.*; public class EchoClient{ static final int serverPort = 1026; static final int packetSize = 1024; … | |
Hello, I need to return the areas connected with the town placeid attribute of an XML document. The town placeid is a variable equal to a current page variable $x. e.g. xpath("/country/city/town[@placeid=$x]"); How can I return the areas for each using simpleXML/XPATH? <country> <city> <town placeid="" /> <areas> <area>A</area> <area>B</area> … | |
This program is to enter the scores, get the grades, and display the result. However, I get a [U][B]fatal error LNK1120: 1 unresolved externals[/B][/U] Does anyone know how to solve this problem? [CODE] #include <iostream> #include <iomanip> using namespace std; // Function prototype void letter(double score, double resultNum, char grade); … | |
i have created a code for log. it is intended to provide the user with a recent history of various events, primarily used in data-gathering applications where one might be curious how a particular transaction completed. In this case, the log need not be permanent nor saved to a file. … | |
Hello.. I want to populate my combobox with the list of banknames available in my database.. I tried doing so but i am getting a blank list.. ie.. shows no value in combobox !! Here is what i tried.. Please help !! [CODE]Private Sub ComboBox4_SelectedIndexChanged(ByVal sender As System.Object, ByVal e … | |
Hello fellow developers, Let me just start by saying I have had an abnormal start to developing. I started first with HTML > PHP > Java. I don't have much experience with Java but I feel quite confident in making PHP applications. I have already searched the forums but nobody … | |
Hello to all, I need your help,,,I m beginner of the php... i have to generate a user id for register users & it depends upon the batch field,, <option <?php if(($batch)=="1983-86")echo "selected";?>>1983-86</option> <option <?php if(($batch)=="1984-87")echo "selected";?>>1984-87</option> <option <?php if(($batch)=="1985-88")echo "selected";?>>1985-88</option> <option <?php if(($batch)=="1986-89")echo "selected";?>>1986-89</option> i need to select batch="1983-86" … | |
I have problem with my code. this code in c++ i have to write in assembly. i try to write but it doesnt work for (i=1; i<11; i++) if(i%2 == 0) sum = sum +i mov cl, 02d mov ax, 0d mov bh, 0d check: inc al mov dl, al … | |
I have this code [ICODE] Facilities: <?=$Product->facilities;?><br /><? } ?>[/ICODE] It's display result like this: [B]Facilities: One, Two, three[/B] Is there a way i can make it display in a [B]tabular form[/B]? I have check the databse and it display like Facilities: One, Two, three Thank you in anticipation. | |
Hi! I have some forms that is sendt to me by php mail() a few days ago these where working just fine, but suddenly yesturday i stoped recieving the emails. There ate two different types of these forms one that is connected to a mySQL server, and one that is … | |
Wrote this for my college open evening just to give prospective students a taste of python. added a little "information" section just to bulk it out a bit (this section is slightly messy i know). Not sure if it works in command line, definitely works in IDLE but the command … | |
[CODE]RequestDispature red = request.getRequestDispature("xyz"); red.forward(req,res);[/CODE] in this simple example RequestDispature is INTERFACE..! "red" is reference for that , but whose instance it actually holds ??? "forward" and "include" methods are of RequestDispature interface...but where they are implemented ??? in which class ?? which class implement this interface ??? Can anyone … | |
Hi , I want to run a shell script which is present in another user's id after switching it to that user in the same script. but it is not taking it. I m using the su command for that. [code] su - user1 -c "./${HOME}/script1.sh" [/code] it just says … | |
I have difficulty to change the following program by using the array. The display need to be like the following: [INDENT]Result 1: 50.00 Grade U Result 2: 95.60 Grade A Result 3: 72.00 Grade B[/INDENT] Can anyone tell me how to do it? Thanks. [CODE] #include <iostream> #include <iomanip> using … |
The End.