199,114 Archived Topics
Remove Filter ![]() | |
I wrote a small hello world type of character device driver. When I type echo -n "abcdef" > /dev/bond and do a cat /dev/bond then only last "f" of above input abcdef is displayed rest nothing is displayed. I have experimented many things but I am unable to catch the … | |
Hello I'm looking to extract jpeg image data from a mjpeg stream, but I'm not sure how to do this in c++ . The code snippet below does the job of connecting to the remote ip camera server & receives the mjpeg stream via tempBuffer variable. [CODE] // Loop and … | |
can I use fopen,and fwrite with ShellExecute? to take file in buffer,drop it in directory and run it with ShellExecute I did this way but I just get cmd window and file is corupted do I have to use some API to take file in buffer? | |
How can i make a program that will accept a series of inputs named as inserts and arrange them in the form of binary search trees. Do you have any source codes what I can use as reference? Your help is very much appreciated! Thanks for the reply | |
hey everyone, i was interested in trying to develop a very simple chat application for mobile phones. can you please tell me what do i need to know before i start? | |
Hi all, I have a page that modifies (using AJAX) a list of animal characteristics stored in a database. The page uses a PHP file to control the actual access to the database. Everything works except when a duplicate entry is entered. The PHP file prevents the duplicate entry from … | |
Hi everyone, I'm just wondering in Java, if there was a way to just check once for a number in an array? [CODE]for (int i = 0; i < array.length; i++) { if (array[i]>0){ count++; } } [/CODE] This code will check for all positive numbers. Is there a way … | |
I've taken a course in c# and started practicing by getting questions from books or sites to be good at programming but I think I'm not getting to the right track and I want to be professional in c# language so what is your advice to me ?? thank you … | |
2 things that i dont understand: [CODE]class BTree{ private Node head; public void add(int info){ Node node=new Node(info); if(head==null){ head=node; return; } Node current=head; while (true) { // what does this mean? where is the true value derived from? if(info<current.info){// to what number does the current.info refers to? if (current.left==null) … | |
i wan create a datatable complex like tis 1!any1 can teach me how to do it? The datatable consist 5 datacolumn(col1,col2,col3,col4 and col5) the data of row of col1,col3 and col5 is fix("A","Book","100") and tis same data will insert into 30 row (when the ds.Tables(0) got 30 row) the data … | |
Hi: I'm new to this forum. First, a little about me. I'm an advanced beginner/hobbyist (oxymoron?) who has managed to learn VB by downloading, studying books and writing programs in the Express editions of VB2005 and, more recently, VB2008. Moreover I have learned to use MS SQLSever express editions as … | |
How to make a program in python to do this? 20% of the score comes from the average of 8 Quizzes (each has maximum of 10 points) 20% of the score comes from the average of 2 exams (each has maximum of 100 points) 40% of the score comes from … | |
hi, i want to connect to a site and use data in it, like a program that connects to [url]www.imdb.com[/url], search for a movie and returns information, i want to do that with [url]www.cheatserver.com[/url], or [url]www.cheathappens.com[/url] i want to write a game name in a textbox, and when i press … | |
So I'm making a smiley face. It' compiles just fine, and at the run time it says "process completed" but the applet doesn't pop up. I have absolutely no idea what's going on!! Here is the error message: java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. Here is the beginning … | |
guys i am having some trouble here, please help me. I need it badly. What happens is when i ckick on the log in button, the button must first verify the date, then the password and username, if the date doesnt exist on the user's database, he should be logged … | |
[CODE]#include <iostream> #include <conio.h> using namespace std; main() { int a,b; b=50; cout<<"enter a value less than 50: "; cin>>a; do { cout<<"A number: "<<a<<endl; a++; Sleep(100); } while (a<=b); getch(); return 0; } [/CODE] | |
Is there a way to sort an empty list of strings as you add more values to the list? I cannot find a decent example of this anywhere and struggling with this. The insertion sort seemed like the logical plan, but I cannot for the life of me find anything … | |
if (source == loginbtn ) { JFrame frame = new JFrame ("AdministratorLogin"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new AdministratorLogin()); frame.pack(); frame.setLocationRelativeTo(null); frame.toFront(); frame.setVisible (true); frame.setResizable(false); //the commented dispose code will give me an error of cannot find symbol // dispose(); } | |
[CODE]import wx # create window app = wx.App() win = wx.Frame(None, title = "Simple Editor", size = (410, 335)) win.Show() # create buttons loadButton = wx.Button(win, label = 'Open', pos = (225, 5), size = (80, 25)) saveButton = wx.Button(win, label = 'Save', pos = (315, 5), size = (80, … | |
I want to create a left mouse click. All i can find anywhere is having to do if the user clicks, i want to create a left mouse click automatically. | |
I did'nt understand here in this code i was reading a book and then const char *q="Hello"; //string is fixed pointer is not *q='M'// error q="bye"; //works char * const t="Hello"; //string is fixed pointer is not *t='M'// works t="bye"; //error so my question is in first if string is … | |
Hi, I have a problem with a java application which should use ArrayLists, and I would like to ask if you can help me. I have created a Person class, and 2 subclasses, Student and Employee. Data attributes common are Name, SSN (social security number), and Age. A student has … | |
Hi i've been set this assignment to design a Craps game for Java, i know this has been done lots before but i seem to be going round and round with this code....very frustrating! This is the code i've written so far: [CODE] public class CrapsGame { public static void … | |
Hello guys. How can i get my file path? I konw my program's name but i don't know where it will be put. How can i get file path during program's execution? Thank you | |
Hey guys, I have a question. I'm writing a script in c++ and want to have the script copy a file whose name was previously determined by the script to a output file who's name is determined through functions and procedures within the script. The whole script is looped until … | |
Hello guys. Let's say i have a unidimensional array: string[] names = {"John","Merlin","XMan","Kelvin",...,"Flash"}; How can i see how much elements i have ? I tryed with sizeof(names) but it doesn't works ... Next Question: I have a RichTextBox, and i select a text ... i change it's color, but when … | |
Here is simple c++ program to demonstrate matrix rain. Compiler:TurboC | |
Something that puzzles me in the following simple program: [CODE] #include <iostream> using namespace std; int main() { int row; cout << "enter row: "; cin >> row; int K[row], m[row][5]; cout << "Enter all the " << row << " K values:\n"; for (int i=0;i<row;i++) cin >> K[i]; cin.ignore(10,'\n'); … | |
Hello sir/madam, I am facing some difficulty in designing a project related to database. Project is related to designing of a website of daily deals of products and maintaining a database of all the products. I am using php . mysql and xhtml for design and my query is how … | |
hi, I have problem with my application. when i run the application it gives an error [COLOR="Red"]"there is no source code available for the current location"[/COLOR]. Even i try to debug using f8 and msgbox in all forms, It doesn go thru it.I dont know what goes wrong with my … | |
K,, ive tried and tried now for 3 weeks,, googled everything i can think of,, im going to you guys now for help,, what im trying to do is programaticly click the unfollow button in a twitter profile i use to be able to do this easily but not it … | |
i got a data like tis 1([COLOR="red"]0-AGF-MYR-100101[/COLOR]), i wan split to 4 part([COLOR="Red"]0 , AGF, MYR ,100101[/COLOR]) and after tis i nid to add 4 new columns to a datatable to display the value! how nid i do??? [CODE] Dim writer As StreamWriter = File.CreateText("D:\ IMS.csv") For i As Integer … | |
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click frmUpdate.Show() ' What this does is when the User selects a record in the DataGridView ' it will populate the textbox on the other form with the corresponding ' Cell Value. frmUpdate.txtFirst.Text = dgv1.CurrentRow.Cells(0).Value.ToString frmUpdate.txtLast.Text = dgv1.CurrentRow.Cells(1).Value.ToString frmUpdate.txtAddress.Text … | |
I've been on this for so long and cant seem to get it working. I am trying to display teh value of a dropdown in a text box and i've tried so many things but it just wont work: [CODE] <?php $query3 = "SELECT contaminant, gac_value FROM gac_ea WHERE land_use … | |
How can i make a data base using C give an example and also give list of software required | |
Any idea how to implement a FIFO queue of chars in C? It doesn't need to be too fancy, just a fixed size (say 256 chars) and can't use any library functions (this is for a hobby OS kernel I'm writing, and there's not a lot of functions available for … | |
Any idea for this an example question..? Consider the following Student class specification: public Student() //CONSTRUCTOR Initialized the attributes public String name () This Student’s name public String address() This Student’s address public String matric () This Student’s matric number public int creditHours () Number of credit hours this Student … | |
I'm writing a program that asks the user how many numbers they would like to input, then proceeds to ask the user to enter the said amount of numbers. At the end, the program computes the sum, average, largest number and smallest number. I've got the entire program figured out, … | |
I want to check if in a email textbox form field, [B]email has correct syntax, but for Mobile Browsers[/B], in desktop I used below, this will work foe Mobile Devices too? or better check this on server side(PHP)...(check second snippet)? [CODE]function checkFormtemplate() // javascript used success desktop browsers { if … | |
I want to list all log files from log directory of previuos month. suppose currnt month is december, i want to list all log siles of november. if its april, it should list all files of march. Please suggets. | |
Can somebody help me, i want to save the output of this program in a .csv file but i don't know how. please i need help. import java.io.*; public class TestEmployee { public static void main(String args[]) throws IOException { Employee staff[] = new Employee[args.length]; // populating the array of … | |
Hi I 'm trying to develop a database whereby all information input via vb 2008 will be saved into a microsoft access database. I've tried to populate a few information. The data was saved at that point, but when i reopen my system the next day, all the rows are … | |
It might seem appropriate to post this in the MySql section but I guess this is also a PHP question. Which is the more efficient way for adding new fields? I haven't written the code yet because I want to get the database structure right before coding. Here's my logic. … | |
Line 34 and 35 won't execute unless I insert them into the for loop. [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; int integ; for ( int inte = 1; inte = 1; ) { cin>> intege; cin.ignore(); cout<<"Please enter it again."; cin>> integ; … | |
Is there any way to convert microsoft access database to mysql data. Please help me | |
When I press enter after the execution of the code, it doesn't terminate and tell me the process time etc. it just skips a line. [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; int integ; for ( int inte = 1; inte = 1; … | |
Hello All, I am here with the same Query but with a different look I want to apply the culture change to my program. I created a class library for culture change. and applied it . It is only working with the form name, i did it with two different … | |
I have created a program that is based off the guess the number. But what ive added is a menu with four options 1 - 1 player 2 - 2 player 3 - high scores 4 - end game. Now I have the two combined at which im sure it … | |
Just a little homework I have to do. Using OOP approach. Retrieve a data pass it to array then sort it(bubble sort) and then display in the right order like the follow. But im stuck on the bubble sorting part. Can anyone help? following code is right below Thanks so … |
The End.