199,114 Archived Topics
Remove Filter ![]() | |
Practise problem by ~s.o.s~ Q. Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic memory allocation required). Use of structure or a class to define the matrix would be a good idea. (Expert) [CODE]#include<iostream> using namespace … | |
Guys, there's a problem lies on my code...cant display the image in viewing candidates..i already put the code[ICODE] <img src=\"".$row['image']."\"> [/ICODE]as what my friend here said in my code in viewing but it seems it didn't work out.. here's my adding record.. [B]add_new.php[/B] [CODE] <?php /* NEW.PHP Allows user to … | |
ok i think ive got this right i but i tried compiling an it spit out [QUOTE]error: expected primary-expression before ‘.’ token|[/QUOTE] any idea what this "primary expression is? ive tried single quotes and double quotes to fix it as i have this problem every time i mess with strings … | |
Hi i am new to this I created a masked text box but dont know how to define a mask For example i want the textbox to allow only numbers and maximum size of input must be 4 Another would be that the maximum size should be 2 and it … | |
Hello... i have problem with UTF-8 encoding... My database and table collation are utf8_general_ci, and when I add new insert query in the database is ok, but when I'm trying to print i got -> ???? The results are: In the database -> Дамјан Крстевски In the browsers -> ?????? … | |
Hi guys, Do anyone knows how we can implement this code: Write an efficient recursive function called IndexEqual(A,i,j) that returns true if there exists an index x (i < x < j) such that A[x] = x, otherwise returns false. You may assume A is a sorted integer array in … | |
how can i remove an element in my array without using special commands like hashmap....i have made many parts of it...just the delete part... [CODE]import java.io.*; public class Super { public static void main(String args[])throws IOException { String temp; int num[]=new int[10], choice,index,value,i,search,found=0; BufferedReader in; in = new BufferedReader(new InputStreamReader(System.in)); … | |
I'm new to C++. I want to know if there's any way to shorten this code. [code] #include <iostream> using namespace std; int a, b, result; int main () //Addition (main function of this program) { cout << "Lets add numers\nEnter you first number\n"; cin >> a; //First value cin.clear … | |
Hey all. I have written a quine and I was wondering if I have the jist of it right. I'm not sure if the code needs to be longer or this would be a suitable answer. Here is what I have. btw driver.cpp is the file name for my source … | |
hello please help me on how to put indicator on flexgrid is this possible?,...if i have new added data on my flexgrid then it point to the newly added data can you help how to do this...hoping for your positive responds..thanks in advance | |
hello please help me how to connect my program to microsoft acces...please help me because i don't have any idea on how to connect ...hoping for your positive responds...here's my code.. Private Sub cmdAdd_Click() For i = 1 To Len(txtLname) If IsNumeric(Mid(txtLname.Text, i, 1)) = True Or (Mid(txtLname.Text, i, 1)) … | |
Hello everybody, For a project my dad has enlisted me in, I am to be able to communicate with a Vitamin Scanner from a computer. To illustrate, he opened 'Hyper Terminal' (should come with most Windows computers). He set up a communication using the program, and told me the baudrate, … | |
Hello! I´m receiving in one text.box some values from external software. The kind of value can be something like this: 0.234 2.345 23.45 234.5 2345.6 23456.7 etc... I need to round and have only 1 decimal value. If I use: [CODE] decimal x; x = decimal.Parse(original.Text); arredond.Text = Math.Round(x,0).ToString(); [/CODE] … | |
Hi, i have been using the wxPython TimeCtrl for a while now, when fiddling with it i realised that it would never go to 10:00 AM.. It would always just skip to 11 o'clock. I found it still did this in the wxpython demo. I was wondering if this was … | |
Hi, I try insert new themes in PLone 3. But show this error: [code] C:\Program Files\Plone>bin\buildout Uninstalling zopepy. While: Installing. Uninstalling zopepy. An internal error occured due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "c:\program files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z c\buildout\buildout.py", line 1660, … | |
Hello, Iam beginner in python and my english is not so good. Sorry. I want (must) to write a program witch must read the .txt file and pursuant to the informations in text write another text to another file. :) example: [B]in .txt file:[/B] <HEADLINE text="This is headline 1"> <PARAGRAPH … | |
How would i write a program that asks for you to input a letter (a for example) and how many letters you want to shift (3 for example) and gives you the decoded letter (D)? Also how would you loop it so it goes from Z and starts over with … | |
I have a custom login page that in development works fine... but live, it has an error. On the bottom of one of my pages I have an "Admin" link that links to a page in a sub folder called "Secure". The sub folder is secured in web.config. The security … | |
Hello, I have a project where I am using a listview to display a data received through XML. One of the columns called "STATUS" display only 2 text data, either "ON" or "OFF". I would like to know how to count how many times the word "ON" it is apearing … | |
Hi there, I am a newbie in C# (also in coding). now I am trying to extract some specific information from a text file and try to write in .csv format file. I know basic read and write formula. but can't solve this specific problem. Plz, anybody suggest me any … | |
Hey guys! I was wondering if anybody could help me out with my C++ programming. I'm currently trying to sort out a vector of class objects by their member variable but i dont know what i'm doing wrong or missing. I googled alot of things and read through alot of … | |
Ok well first I'll tell you the 3 errors that I am getting... All 3 errors are near the bottom of the code [LIST] [*]main.cpp(103) : error C2664: 'errno_t strcat_s(char *,rsize_t,const char *)' : cannot convert parameter 3 from 'char' to 'const char *' [*]main.cpp(105) : error C2664: 'SzToLPCTSTR' : … | |
Below are my code and i m still getting the error: Run time error ‘3021’; Either BOF or EOF is True, or the current record has been deleted; the operation requested by the application requires a current record [code] oRsPage.AddNew For iColumnIndex = 0 To .Fields.Count - 1 oRsPage.Fields(iColumnIndex).Value = … | |
please help im really out of ideas. this program is a phonebook that can store unlimeted mobile numbers, landline numbers and email addresses, this program also deletes, edits,inserts and sorts and display all the records. this is what i've got so far: [CODE]# include <stdio.h> # include <conio.h> # include … | |
My assignment was to write code to Delete an ith node on a linked list. Will this function accomplish that? [CODE]void deleteIthNode(int el){ IntSLLNode *tmp; tmp = (IntSLLNode*)malloc(sizeof(IntSLLNode)); tmp = head; IntSLLNode *oldTmp; oldTmp = (IntSLLNode*)malloc(sizeof(IntSLLNode)); oldTmp = tmp; for( int i = 1 ; i < i-1 ; i++ … | |
I need to figure out how to find the max number of an array by using a while loop. I have searched all over but do not understand how to do it. If I could get any help at all that would be great. Thanks! Anyway the findMax method is … | |
will anybody tel me how to run a symbian code using PyQWt4? | |
Hi, i apologize if this is in the wrong section (First Post); i am fairly new to delphi / pascal but was wondering how to create a form within a form, e.g. click a button on Form1 to open Form2, i am aware that tform.create is a function but am … | |
Hello, How do I reinitialise a form load event? Example; Form1 Loads data from a Db and has 3 buttons, each button represents showing data from a different table onto form2 When form2 is initialise for the first time i can use an onload event, but if i go back … | |
hey all, just starting with php, and was wondering if i could create a new web page by using a variable from a php script in a php script. For example, the user enters a word, and then a web page is created that is called that word. so user … | |
Hey everyone, I'm currently writing a simple text based MUD in Java for learning purposes. Currently I'm in the process of coding a Login class that prompts the user to enter a user name and password in order to access the account. Right now the problem lies in opening a … | |
hi every one. can some one please tell me steps to make an MFC application in vc2008? showing a blank window. thanx in advance | |
Hi there, I am running a ColdFusion server on a VPS to HostMySite.com and lately we are having strange problems with it. Every few minutes the server is not responding even if we restart the services - IIS and ColdFusion - and even the whole system. HMS guys investigated the … | |
this is my homework.....this is all new to me, i really need help, im reading the book but is confusing, any link to a tutorial would be good to give me an idea on what i need to do please!!! ..... In this assignment, you will write a program called … | |
I am remaking a site that was built in RoR, I was wondering if anyone could help me with the SHA1 that they used to encrypt the passwords. How do I add the salt into the encryption in PHP? Here is the rails script: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end … ![]() | |
I have a ContextMenu with MenuItems in it with their CheckOnClick property set to true. And I want to save the Checked state of each MenuItem in the user.config file. So what I did is bind the Checked property of the MenuItem to an application settings I created. But when … | |
hi, i m just wanna open/explore/view inside of any txt or doc file from folder by using JFileChooser... here i made the code, pls tell me what need to add to open the files.. [CODE] import java.io.File; import javax.swing.JFileChooser; public class OpenFile { public static void main(String args[]) { JFileChooser … | |
Greetings, I have an array that stores words and their equivalent phonetically sounding codes as strings like this: 1:abat 12:abash 134:abridge What I want to do is split each string and store the code only, so basically I want to store everything prior to the ":" . I've wrote the … | |
Hi, I need to create a time delay before I call a method. [CODE]public void brewDrink(CoffeeMachine coffeemachine) { try { coffeemachine.displayDrinkBrewing(); Thread.sleep(7000); setDrinkReady(coffeemachine); } catch (InterruptedException ex) { } }[/CODE] This doesn't work, the method isn't called. Any help or pointers are welcome! | |
Hi, I have a problem here with the c++ if statement. if (adult=1) { hotel=(adult*hotel)+(children*0.5*hotel) +(baby*0); break; } else if (adult=2) { hotel=(adult*260*0.85) +(children*0.5*260) +(baby*0); break; } else if (adult>2) { hotel=(adult*hotel*0.8) +(children*0.5*hotel) +(baby*0); break; the above is a small part of the code i'm doing. Problem here is, It … | |
I am trying to finish the second release of this hpgl interface for ubuntu/linux, The first release is popular but not very feature rich. My problem is I have added two large save and read in settings buttons on the bottom of the gui window. I need to be able … | |
Hello I have generated a list of words & their occurrences. Now, how to I filter them based to the starting alphabet. I.e. all words starting with 'a' should be filtered from thos list & put into 1 list along with their occurrences, similarly b,c & d. This is the … | |
hi to all, I am trying to use MVC. I am using simple Login view. I just want to implement login form for my users. firstly I created database User and in that table 'login' with fields id, name, pass. I add values inn that. I create controller Search==> [code] … | |
hey im now starting prog in c++ n im being honest- im REALLY flustered i have to create a program to get information from a user, put the info to a file, create another program to read from that file, calculate total scores of x amount of students n grade … | |
Hi to the community. I hope this is ok to post here. First of all i would like to say that i am a newbie and i am trying to learn php on my own. I am looking into w3school and a few other sources i found here on Daniweb. … | |
Hello! How is everyone? I have been working on this for about a week and a half, and I need it to function properly. I am going to be using this program to build my next assignment, thus needing it to work properly. My problem: I am trying to write … | |
[URL="http://www.mono-project.com/Main_Page"]http://www.mono-project.com/Main_Page[/URL] On that site, what is the difference between to two blocks to the left? They read. Mono [INDENT]An open source, cross-platform, implementation of C# and the CLR that is binary compatible with Microsoft.NET[/INDENT] MonoDevelop [INDENT]An open Source C# and .NET development environment for Linux, Windows, and Mac OS X[/INDENT] … | |
I have a php code that forms a dropdown using a mysql table. I am using the dropdown to search and filter results in a page. The problem that I have is that it only shows the values from the table, I also need an option where I can leave … | |
i need a way to export data on the php form to excel on a click . how can i do this | |
I want to remove the JOB node with JOBNAME "One" from the following file: <SETTINGS> <SYSTEM> <VERSION>3.1<VERSION> </SYSTEM> <JOB> <JOBNAME>One</JOBNAME> </JOB> <JOB> <JOBNAME>Two</JOBNAME> </JOB> </SETTING> The code that is supposed to remove it looks like this: [CODE]try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); Document doc = docBuilder.parse(new … |
The End.