199,114 Archived Topics
Remove Filter ![]() | |
I am trying to complete one of my assignments and it requires me to accumulate test score data: Operation is : The user enters a score and clicks the Add button or presses the Enter key. The application calculates and displays the score total, score count, and average score. If … | |
Hi, My coding objective is quite simple: design a function to write the data in a matrix into files. And here is my code: [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int matwrite(float* mp,int row_sz,int col_sz,string mat_file); int main() { // create a simple binary file first … | |
can we compile b.cpp by running a.cpp? i have koolplot project to draw plot. this plot should appear in the middle of the program, and if the plot is closed, the whole program terminates immadiately. To avoid that, i tried to make 2 cpp files. One for the main, and … | |
Hi! I'm working on a project and need a way to add a newline to the input stream, by code and not by user's help. The user should not need to do anything, I need a simple line of code that places a newline in the input stream, but I … | |
1. Write an iterative and a recursive version of the Fibonacci series algorithm. You need to ensure the correctness of the both algorithms. Both algorithms should produce similar output if given a similar input. a. Measure the performance of the two algorithms by measuring the time for both algorithms to … | |
hello guys. dont know if this is the right forum. I am trying to [B]install Joomla[/B] and at step 2 it says [B]MySql No support[/B] [B]i have mysql installed[/B] and also have dbs created. Using php, i can access connect to the db and run queries. What am i missing? … | |
Good evening, I have the need to learn how to make a picture jigsaw with java. I have been looking for hours on the web for some kind of tutorial, source code example, something anything and I haven't been successfull in finding something I could work with. Would somebody have … | |
plz tell java script checks for not insert blank value in database when using fckeditor????? when i not insert any record,the script runs like enter ans but value also inserted in data base..i want not insert blank value and check also runs .... my code is that: [code=php] <script type="text/javascript"> … | |
I am a newbie to this forum, and this is actually my first post. I am looking for a way to get the object of the currently running thread in boost. To make this short, consider a case in which one wants to implement a semaphor or a condition variable. … | |
I'm in the process of writing my first python program with a GUI just as practice. I have two listboxes that are packed in the same frame so they are side by side. I have one scroll bar and would like that one scrollbar to move both listboxes simultaneously since … | |
i currently have this nested list [[u'Alice Mee', 3], [u'Alice Mee', 4], [u'adam plowman', 1], [u'james pirret', 2]] I need to remove the last number from each list so i have something like [[u'Alice Mee'], [u'Alice Mee'], [u'adam plowman'], [u'james pirret']] the list is populated dynamically and will always change … | |
I want to get random numbers between 0 to 100..But i do not want the random number to be repeated. [code] Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim objRand As New Random objRand.Next(0, 100) End Sub [/code] Suppose first time random numb generated is … | |
Hello, i am trying to create gmail like alerts in visual c++ which will show information fetched from a php file on the internet, and will be able to send the current;y playing song to the php script... any help is really welcome! | |
I'm back to start again with GBL. Application start-up layout is as desired. However as soon as I draw upon "main page view panel" with paintComponent() page view panel does overlay thumbnail panel on the left. [attach]10801[/attach] Code for main panel to group up 3 main components [code=Java]public class RottrMainPanel … | |
Hi to all programmers.. i have a problem about this code .. i don't know what to do to this code.. i change a lot of code .. but always appear the error "illegal start of expression" .. I'm a newbie in Java.. please help me in this case.. thanks.. … | |
ok so i am working on a program that has a table of all the presidents and info on each of them. i tried to insert the date of their birthdays and deaths, but just got 0000-00-00 for a result when i went to see what the outcome looked like. … | |
Hi all, I have been trying to create a Python program to connect to a serial port and read data from it. There will be a circuit sending the data through the port to PC and the Python program suppose to read and process the data. The data is continuous. … | |
Hi. I have some data that I need to store in a file, and (for simplicity's sake) I was considering using bitwise operators to pack it all into a single hex or dec number. I've never user bitwise operators, as they really confuse me. If anyone has any pointers and … | |
Hi, I have a problem repainting Jpanel. I wrote a simple code just to check whether it works, but notnihg is happening. Function initPanelAnswer should initialize answer panel with some image, but I wanted to make it more simply. So, according to my logic, this should print out "Paint Component", … | |
Hi everyone. I am trying to use MScomm in vb6 throught Modem. There are two computers , both are connected through dial up modem. I want to send a file from first computer to the other. First Computer dials second computer to make connection. I am able to get a … | |
Hello, i where making a game, and i needed a vector that holds class objects, i do the thing (below), and i thing i did it right, but it seems not and i dont know whats wrong :( [code]#include <iostream> #include <vector> #include <string> using namespace std; class Races { … | |
I made a program... now i have to put one validation. "while program is executed, if i press "Esc" button (hardly situated in top-left corner) i will be out of my program, means its exicutation directly takes end." i tried by taking its ASCII value but i requires also ENTER … | |
Hi I used the Data Source Configuration Wizard to connect to my access database, how do I write code to manipulate the data from the database? I read the book "Microsoft Visual Basic 208 step by step", it only teaches how to display data on the form. So how do … | |
hi every body i am trying to display the popup on datalist control when mouseover on image in datalist i want to display the popup [code=aspnet] <td style="width:100%;" valign="top"> <asp:Panel ID="PanelRight" Height="500px" BackColor="White" CssClass="" runat="server" Width="100%"> <div style="padding: 10px;" class="listlight"> <h2 class="topl_lrg"> <asp:Label ID="lblMembers" runat="server" Text="Members"></asp:Label> <asp:Label ID="lblMembersCount" runat="server"></asp:Label> </h2> … | |
Is there a way to use one type of iterator for another? like vector<int> iterator to vector<string> iterator,also any way iterator can be used like a interger?? coz i wanna do some mathematical manipulations on an iterator.coz i cant,i use a variable [CODE] int i;int ss=string.size() for(int i=0;i<ss;++i)[/CODE] but i … | |
Hi everybody, I am going to develop a web application by using jsp, in this application when I retrieve multiple rows from table into form as following : [code=jsp]<%Vector v1,v2; jmm.Database database = new jmm.Database(pageContext.getServletContext().getRealPath("/WEB-INF/config.txt")); database.jdbcConnect(); String sql; sql = "select question_text from tableA where type = 'Student'' "; v1=database.jdbcMultipleRowQuery(sql); … | |
[code=php]<?php $con = mysql_connect("localhost:3306","pm" ,""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?>[/code] on writing the above code it is showing the following error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'pm'@'localhost' (using password: NO) in C:\wamp\www\p2.php on line 83 Could not connect: Access … | |
Hi all, I am using below code for check space but it generate errors. my Code:: [code]string str = TextBox1.Text; int l = str.Length; int i; for (i = 0; i < l; i++) { if (str[i] == " ") { Response.Write("Invalid"); } else { Response.Write("valid"); } }[/code] Error:: Operator … | |
Really i need help to complete my program but i don't know how to fix the errors .. the program is about 2 Dimensional Arrays matrix operations i wrote the whole program but there is some mistakes plz i need help to finish it im too confused !! [ICODE] #include … | |
Hello! I'm trying to use code to write to a text box - I know my strings are valid and that the function I'm using to generate them works, because I can successfully display them in a pop-up. Now I want to insert my string into a textbox at the … | |
can anyone explain me SSL uses along with https in c# .net (with coding example) | |
I want to find the percentage for each question’s answer and how many user response to that question The answer either yes , no, escaped (null) Table structure :[CODE] CREATE TABLE useranswers ( userAnswerID int(10) unsigned NOT NULL auto_increment, answer varchar(45) default NULL, userType varchar(45) default NULL, ques_tesxt varchar(300) default … | |
Hi everyone; I have table contains question and answer columns , the answer either yes or no , I want to count the answer yes and answer no then compare the two results and if the count(answer) yes is greater than count (answer) no print yes else print no I … | |
Hello, i'm developing a simple assembly (AT&T) program as exercise in preparation of an exam and i have a problem: I need to pass 4 return values of a function using the stack. I know that after the "call", %esp points to the return address that will be used from … | |
I'm making a simple wxPython app on win32 that does a number of calls to external binaries. Everything works fine, except the GUI doesn't update well while the external process is running. This makes for an ugly window and non-updated status StaticTexts, so I'd like to fix it. Window . … | |
As you can tell....I am a beginner.... Please help me get past this problem. I am not sure how to compare strings for equal signs. I am at a brick wall. I have some unsorted albums with the name of the album, release date, CD Number and unsorted songs. I … | |
Is there a way to get all the arguments and put them in one string? I'm very new to C++, so I need all the help I can get. Here's what I have here: [CODE]#include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "argc = " … | |
Hi guys, I am in need of a simple friends list code. I don't know how to start it, but I have gotten an idea, maybe anyone of you can help? I have setup a database with login and password, I want to also add a Friends column. I will … | |
Hello everybody. I have got a problem installing (or using) clonedigger. 1- I installed setuptools without any problem : Because i am using Python 2.6, I downloaded "setuptools-0.6c9.tar.gz" and "setuptools-0.6c9-py2.6.egg" and I ran "python ez_setup.py setuptools-0.6c9-py2.6.egg". Everything went ok. 2- But when I run "easy_install -U clonedigger", here is what … | |
I am designing a pocketpc app to manage service delivery at restaurants. I have designed the interface of the app and defined the schema of the database using a Microsoft SQL Server Compact 3.5 database file. I cannot figure out how to interact with this file tho, I'm using vb … | |
hi, i need some help on inserting checkbox values into the mysql database. what sort of data type should i use for mysql to store these? for example i need to insert a few hobbies as checkbox 1.basketball 2.football 3.hockey i need to be able to perform a search and … | |
Hi all, I have a problem with my code. Please help me. I am trying to create multiple files based on the input file and read its respective data only. Thread_id: 1 Data_block_size: 64 Request_commmand_type: ReadReq Packet_block_Address: 8184256 PC_value: 4831838656 Tick_of_the_data: 14000 Packet_transfers_through_Bus_name: system.toL2Bus Is_Instruction: 0 Is_Data: 0 Data_Read: 0 … | |
Hello, I am currently designing a site that displays photography, and am exploring the different ways in which to do this. I am trying to develop, using PHP and MYSQL, a way of having image links held in a database and then the first image in sequence to be rendered … ![]() | |
hey all i got a question where i am not sure that it will be possible. i already have my table in my data base which has values in it ex: first_property. and i made a little script which helps me grab all the names in the form that i … | |
Hi all. i am writing a simple log in program and i would like to have a class for users that stores the user name and the password as strings. after i have a user created i would like to output the class with the ios::binary flag set and store … | |
I'm getting this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' and can't figure out what's wrong. Any help? [code=php]echo '<p><label for="comment"><strong>Questions / Comments :</strong></label> (<span class="cursor" onclick="document.getElementById('comment').rows += 5;" title="Increase The Textarea">increase</span> >> <span class="cursor" onclick="document.getElementById('comment').rows -= 5;" title="Decrease The Textarea">decrease</span>)<br />'."n";[/code] ![]() | |
I tried to compile a code written in C which had included the file "graphics.h".It worked fine in my desktop PC which had a VGA monitor.But when i tried to run the same code in my laptop,it showed some graphics error. why is it like this?fG | |
Im getting this error message "Parse error: syntax error, unexpected $end" Can anyone point out this error. Thank you. [code=php]<?php function CopyrightCheck($crCheck) { $crCheck = stripslashes($crCheck); $Copyright_Notice = "Copyright © 2000-2009 YourWebsite.com (Your Script). All Rights Reserved"; if ($crCheck !== $Copyright_Notice) { return COPYRIGHT_NOT_VALID; } else { return COPYRIGHT_IS_VALID; } … ![]() | |
Hi!, I have created a user inteface named "helpGUI". This user interface contains a JTextArea. I also have created a text file named "help.txt". I need to show the "help.txt" file in the JTextArea. As I'm new to JAVA I have no idea how to do this. Given below is … | |
Working on another c++ assignment and I need to make an input of "X" function as an end to the program without using an exit() command. Just want to know the easiest way to make that happen. Thanks for the help. [code=CPP] #include <iostream> #include <string> using namespace std; int … |
The End.