199,114 Archived Topics
Remove Filter ![]() | |
Hey guys... had a little problem while trying make this little program that would find the mean of 4 integers... here's what i have so far [CODE]#include <iomanip> #include <iostream> #include <cmath> using namespace std; int main(void) { int X1; int X2; int X3; int X4; int X; cout<<"Enter The … | |
Hi everybody ^^ I'm quite a newbie in loading image file, so I've try to improve myself by loading the TGA image structure (You can found it at [url]http://en.wikipedia.org/wiki/Truevision_TGA[/url], I'm quite believe in the information there) My problem is after loading and draw it onto the screen using OpenGL ES, … | |
I'm writing a small app to collect IE command diag. The problem is it's not waiting till the process finishes and it's errors out in the next line. My goal is to copy the log and paste it under a folder in Desktop [CODE]Try Process.Start("C:\Program Files\Internet Explorer\iediagcmd.exe") My.Computer.FileSystem.CopyFile(USERPROFILE & "\Desktop\IEDiag.cab", … | |
I am a beginner in c++ and now i reached in array processing binary search. my program is being compiled but it is not showing any result. Please help me out. [ICODE] #include<iostream.h> #include<conio.h> const int n=10; void main(){ int a[n] , l , initial, final, mid,data; for(l=0; l<n; l++) … | |
Hello everyone, I've been doing a project for class in Haskell. Basically I've completed my program except some parts in my lexer function. I have functions marked undefined where I haven't completed it. [CODE]lexer :: String -> Pos -> [Token] lexer str pos = case str of x:xs | isSpace … | |
Especially in "java" but other programming languages too. What's the hardest thing you got told to create? I'm about to start my second year and am wondering what sort of stuff may await me and see if I should start practising now or not. | |
Am creating small aplication like a phonebook, but i dont know which database to use ? any sugestions? I wont something that is free, easy to implement with c#, and just a local database not some big server staff | |
I'm trying to write an SQL (MySQL) Statement here using an if statement but all am getting are countless errors. I've narrowed down to simple instructions but still no breakthrough. [CODE]DELIMITER // CREATE TRIGGER confirmation_triggers AFTER INSERT ON `old_deliquencies` FOR EACH ROW IF new.status='True' THEN INSERT INTO `notifications` VALUES(NULL, new.loan_id, … | |
I have the code [CODE] import sound def rem_vocals(snd): '''Return a copy of the original sound with vocals removed. The original sound is unmodified. The number of samples in the copied sound is the same as the original file.''' new_song=sound.copy(snd) for samp in new_song: left=(sound.get_left(samp)) right=(sound.get_right(samp)) result=(left-right)/2.0 Left=sound.set_left(samp, int (result)) … | |
Hello guys! This is my current code: [CODE]using System; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; namespace Finalizador_de_Processos { public partial class Form1 : Form { int IndexProcesso = 0; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ListaProcessos(""); } private void ListaProcessos(string name) { if (textBox1.Text … | |
I got a matrix adjency that i want to transform in an adjency list and i got this error that i cant figure out... main.cpp|65|error: cannot convert 'int (*)[25]' to 'int**' for argument '1' to 'Ville** conversion(int**, Ville**, int) main.cpp|70|error: cannot convert 'int (*)[25]' to 'int**' for argument '1' to … | |
How can i write a java program that will read the radius and height of a cylinder and compute the volume using the formulas Area= raduis*raduis*3.14159 and Volume= area*height, and have the program report the area of the bottom of the cylinder and the voulme of the cylinder. | |
Since this is only one customer, how can I carry this $total from the submit button to the next page for INSERT into database punches page [CODE] <p>Is this the correct total of punches?</P> <form action="run_punches.php" method="post" > <?php $small = $_REQUEST['smallamount']; $medium = $_REQUEST['mediumamount']; $large = $_REQUEST['largeamount']; $total = … | |
Guys please help me make a simple code for this!! | |
Can you explain to me what's the meaning of the algorithm of SHA-1? ========================================================================== [CODE]package Finals; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA { private static String convertToHex(byte[] data) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < data.length; i++) { int halfbyte = … | |
Hi, I don't usually develop for PHP or MySQL, but I am just doing the odd job for a friend. I am having issues with a MySQL query though. A few days ago I must have done something to the code somewhere, and it is throwing up errors now. I … | |
[CODE] #include<stdio.h> #include<stdlib.h> typedef struct a { int data; struct a* next; }node; void addatbeg(); void delete(); void display(); node *first=NULL; int main() { int ch; while(1) { printf("\n1:to add elements \n2:to delete elements\n 3:to display elements"); scanf("%d",&ch); switch(ch) { case 1:addatbeg(); break; case 2:delete(); break; case 3:display(); break; default:printf("\n … | |
I keep seeing a private assembly being defined as an assembly used by only one application, existing in the same directory or a subdirectory. Does this mean that if I have two applications in the same directory they can actually both use the private assembly? Or do I need to … | |
Good morning, Firstly, let me say that I have zero experience with database, servers, etc. Now that I have prefaced this long question with that tidbit let me ask the most basic questions. What is the difference between MySQL and MS SQL? I think they do the same thing but … | |
How i can add data to database through combobox but the data is foreign key please help me..... | |
[CODE]s = raw_input("Enter a string: ") a = 0 i = 0 for i in range(len(s)): if s[i] == ' ': a = a + 1 print str(a) + '. ' + 'There was a space in position ' + str(i) + '.' [/CODE] i keep on trying to sub … | |
HI, At the moment I'm facing a problem. I have a datagridview1 in FORM1 and datagridview2 in FORM2. I want to duplicate the data in datagridview1 to datqagridview2 in another form. The code I used is: FORM1: [CODE] OdbcCommand bcCom2 = new OdbcCommand(); bcCom2.CommandText = "" + content + ""; … | |
I have been working with python for about a month now, but today I came across a problem I have yet to see; multiplication tables. I have absolutely no idea where to start or how to begin to format said table. The problem will be listed below, and if anyone … | |
Hello, I was asked to write a program that starts with a JFileChooser, the user is asked to choose a file. If at anytime during any part of this program, the user hits "cancel" or "yes" when the dialog shows "do you want to continue?" the program will return back … | |
Hi all, I have designed a website for my dj company which has a dropdown menu system, and directly under it is a image slider that auto slides different images. It looks and works Fine in Firefox Chrome, Opera, and safari, and internet explorer 8 & 9, however in internet … | |
Ok thank you for that explanations, but now I have an issue with my code. My remove function doesn't see to be working. Now I think it has to do with the fact it is not setting that CDs information back to empty or 0. Also it only stores 1 … | |
What's wrong with this code, I'm getting LNK errors [CODE]#include "Queue.h" int main() { Queue <int> q; // q is an object q.showQ(); q.insert(72); q.insert(36); q.insert(43); q.showQ(); q.remove(); q.showQ(); return 0; } [/CODE] | |
hi everyone i have to write c++ code to implement a disjoint set class to make a maze generator. i have the disjoint set class working fine. my code for the maze generator is not working.. kindly help [code] #include <iostream> #include <stdlib.h> #include <stdio.h> #include <time.h> #include "djset.h" using … | |
I am a student and we are working on a project in Access database but in windows. When I go back home I tried to run and edit the project but it didn't work. Notice that I don't have Access installed on my mac. My questions: 1- do I have … | |
i have the code below, i want to use a switch-case to check the grade of the student, my problem is that the compiler tells me that swithc only takes intergers as arguments. i had thought i cud have a statement like case a > b where a and b … | |
I am trying to set up a form for potential students to give their information for a language academay. When I tested the form with <input type="text" name"Nombre"> type of fields everything went fine. As soon as I tried to introduced drop down menus or typ radio elements the data … | |
How do I convert this to assembly? [CODE=c]static unsigned char i, j, aResult[15]; /* Define Vars */ static const unsigned char aData[]={0xA0,0x1F,0xA5,0xB2,0x00} ; /* Define Data */ /* Initialize aResult array to all zeros */ for(i=0;i<15;i++){ aResult[i] = 0; } i=0; /* Set index for aData array */ while(aData[i] != … | |
hello, I am trying to learn to create a login and log out profile. I am fairly new to php and web coding in general. I know the basics. I found a tutorial that logs you into a profile and then logs you out. I want to be able to … | |
Dear All, I have a query as below SELECT DISTINCT (productID),totalAmountAfter,transactionDate FROM tbltransaction WHERE transactionDate BETWEEN '2010-01-01' AND '2010-12-31' ORDER BY productID,transactionDate DESC . My problem now I want is that for each product only pick one line that is the last line since I have ordered by the date. … | |
It compiles and run but I'm stuck on the last part - I can't figure out how to iterate through the LinkedList and delete all students whose birthYear is greater than 1995 (print only students whose birthYear is less than 1995). I have to iterate after inserting all records into … | |
I am looking for a replacement for _getch(); Yes I have seen other threads like this, but they do not really satisfy my need(And I do not want to waste my time trying to write one in Assembler, as it isn't my strongpoint). I need something that is exactly like … | |
fscanf returns EOF in case of [U]errors[/U] or if it reaches eof. what does error mean in this context ...which type of errors are encountered??? | |
Hi guys i'm new to PHP, I have been doing a simple login system using php, and now I'm face with this error "Could not select database because Access denied for user ''@'localhost' to database 'loginsystem'" anyone knows how to fix this? | |
hi everyone... not sure if this belongs here or in the javascript section as it uses both js and php? move it if needed. anyway....i have a script that pulls the faq results from my database and shows them in order of categorie. what im trying to do is use … | |
I'm writing an indexOf method for a class called BasicArrayList. i have two private instance variables an Object[] called list, and an int called size. [CODE]public int indexOf(Object element) 67 { 68 for(int i = 0; i < size; i++) 69 { 70 if(list[i].equals(element)) 71 { 72 return i; 73 … | |
This is my time to build a final year project. Am a UG Computer Science Student. Though I have 6 month to start my final year project, Am forced to submit the ABSTRACT of the project in a week or two. I tried in some search engines but am not … | |
Hi, I'm trying to built / link 3 drop down menu's: but I can't seem to get the 3rd drop down menu, and the answer below to work right. can someone please offer some guidance? [CODE]<body> <?php $p=$_GET["p"]; $q=$_GET["q"]; ?><br> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option >Select Your Topic</option> <option value="?p=1" <? if($p==1){ … | |
Hello everyone I have the following issue and i tried google but no success. I'm tired of this silverlight thing but i have no choice. here is the problem: I have a datagrid which populates itself from a database doing this [CODE] void svr1_getInformationCompleted(object sender, getInformationCompletedEventArgs e) { dgv.ItemsSource = … | |
hi hi! I have encounter a problem that need to equal height in different classes. Currently I using this code from [URL="http://www.cssnewbie.com/equal-height-columns-with-jquery/"]cssnewbie[/URL]: [CODE]function equalHeight(group) { var tallest = 0; group.each(function() { var thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); } $(document).ready(function() { equalHeight($(".contentA")); equalHeight($(".contentB")); … | |
Hello everyone I am making a simple registration page and i want to store values in database here is my code [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; namespace PatientSystem { public partial class Registration : System.Web.UI.Page { protected void … | |
I am a new programmer in Java and while programming I faced the following problem. I am trying to use switch statement on String but it gives compilation error. If any one suggest me how to use String in switch-case statement , it will be helpful to me. | |
Hi all... Am hoping someone can show me what I have done wrong here. I had a form with two select lists and one set of checkboxes that needed to get completed.. all well and good and it worked fine but I have eveolved the system and added a condition … | |
I don't know how to run my application with system level privilleges, so that it does not encounter any [B]UNAUTHORISED ACCESS[/B] in any case and when in seen in TASK MANAGER the user shown will be SYSTEM. I've no idea how to do it,PLZZZZZ HELP | |
I have set-up a tab control and have buttons set up to add and remove the tabs. I want to place a text box into all the tabs, so when a new tab is added a text box is already placed inside the tab. I am not sure on how … | |
Hi..! In My application I need to retrieve/Read data from USB port. Is it possible to Read data from USB cable? or is it possible with COM port? Please Help me if any one of you have knowledge about this. Waiting...........your replies.... |
The End.