199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JerezFinest

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 …

Member Avatar for ddanbe
0
586
Member Avatar for nanchuangyeyu

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 …

Member Avatar for Ancient Dragon
0
189
Member Avatar for AirGear

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 …

Member Avatar for AirGear
0
420
Member Avatar for C++ Obliviator

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 …

Member Avatar for C++ Obliviator
0
140
Member Avatar for funjoke88

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 …

Member Avatar for NathanOliver
0
470
Member Avatar for abhi_elementx

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? …

Member Avatar for abhi_elementx
0
89
Member Avatar for JohnPhilipps

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 …

Member Avatar for JohnPhilipps
0
546
Member Avatar for waqaskhan1

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"> …

Member Avatar for emarshah
0
201
Member Avatar for NimaJ

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. …

Member Avatar for NimaJ
0
134
Member Avatar for Heftiger

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 …

Member Avatar for Ene Uran
0
2K
Member Avatar for adam291086

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 …

Member Avatar for adam291086
0
122
Member Avatar for sonia sardana

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 …

Member Avatar for sonia sardana
0
254
Member Avatar for heroic

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!

Member Avatar for heroic
0
106
Member Avatar for peter_budo

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 …

Member Avatar for peter_budo
0
159
Member Avatar for MonicaClare

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.. …

Member Avatar for llemes4011
0
179
Member Avatar for ROTC89

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. …

Member Avatar for ROTC89
0
76
Member Avatar for teonghan

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. …

Member Avatar for scru
0
2K
Member Avatar for llemes4011

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 …

Member Avatar for llemes4011
0
481
Member Avatar for vuchko

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", …

Member Avatar for vuchko
0
694
Member Avatar for makdu

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 …

0
174
Member Avatar for Pauliuw

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 { …

Member Avatar for Pauliuw
0
4K
Member Avatar for nirav99

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 …

Member Avatar for tux4life
0
157
Member Avatar for hjdaniel.sun

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 …

Member Avatar for hjdaniel.sun
0
171
Member Avatar for vytla

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> …

Member Avatar for peter_budo
0
136
Member Avatar for TrintiyNoe

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 …

Member Avatar for praveenraj1987
0
75
Member Avatar for CoSIS1

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); …

Member Avatar for CoSIS1
0
126
Member Avatar for prateekm

[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 …

Member Avatar for prateekm
0
204
Member Avatar for Pankaj18

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 …

Member Avatar for kvprajapati
0
84
Member Avatar for DNDSH

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 …

Member Avatar for Salem
0
131
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
126
Member Avatar for sivak

can anyone explain me SSL uses along with https in c# .net (with coding example)

Member Avatar for sknake
0
695
Member Avatar for CoSIS1

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 …

0
74
Member Avatar for CoSIS1

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 …

Member Avatar for CoSIS1
0
189
Member Avatar for BlackJackVr

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 …

Member Avatar for NotNull
0
151
Member Avatar for SpiritGeek

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 . …

Member Avatar for SpiritGeek
0
614
Member Avatar for sfgal

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 …

Member Avatar for Ancient Dragon
0
91
Member Avatar for mediachicken

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 = " …

Member Avatar for Ancient Dragon
0
141
Member Avatar for Toxikr3

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 …

Member Avatar for Toxikr3
0
233
Member Avatar for GlueMan

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 …

Member Avatar for GlueMan
0
257
Member Avatar for juliusceasar

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 …

Member Avatar for juliusceasar
0
89
Member Avatar for papermusic

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 …

Member Avatar for mrcniceguy
0
146
Member Avatar for doublebond

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 …

Member Avatar for Ancient Dragon
0
489
Member Avatar for bhavnaJobcentre

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 …

Member Avatar for diafol
0
223
Member Avatar for itisnot_me

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 …

Member Avatar for itisnot_me
0
91
Member Avatar for NathanOliver

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 …

Member Avatar for NathanOliver
0
387
Member Avatar for stlboarder

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]

Member Avatar for diafol
0
78
Member Avatar for mshafi

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

Member Avatar for dng
0
450
Member Avatar for 83apple

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 &copy; 2000-2009 YourWebsite.com (Your Script). All Rights Reserved"; if ($crCheck !== $Copyright_Notice) { return COPYRIGHT_NOT_VALID; } else { return COPYRIGHT_IS_VALID; } …

Member Avatar for diafol
0
121
Member Avatar for rizillion

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 …

Member Avatar for peter_budo
0
751
Member Avatar for TheSwagger

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 …

Member Avatar for TheSwagger
0
65

The End.