199,114 Archived Topics
Remove Filter ![]() | |
hello. In my project the students are added into two levels(1 & 2) each level has it's own linked list so if you choose to add a student in level 1 it will be added to list1, if you choose to add him in level 2 it will be added … | |
I have never programmed before or used Linux (didn't even know what that was before a few days ago,) well I got a book for beginning C++ and a book for Ubuntu Linux. My stepdad says it would be best to learn C++ on windows and not to even mess … | |
hi , I'm trying to store linked list in a file . I opened a file with extension txt but when I opened it to read it . It was encrypted does anyone know why?? | |
I was just wondering if it would be possible to protect an directory and its content with php http authentication. Let's say I have created for each user an directory and only that user can access the content in that directory using a mysql database table to get access. How … | |
Consider this code [code=c++] class A{ int i; public: A(){ cout<<"default constructor\n"; } ~A(){ cout<<"default destrutor\n"; } /* uncommenting this causes error A(A& obj){ i=obj.i; cout<<"copy constructor\n"; } */ }; A fun(){ A b; cout<<" address of b = "<<&b<<endl; return b; } int main(){ A a=fun(); cout<<" address of … | |
Whenever I run this code, it always returns an empty list, can someone tell me why this is happening? [code=python] ## Written by Tom Tetlaw ## Copyright (c) 2009 ## Written in IDLE<www.python.org> import sys, os import re sys.path.append('E:/Tom's Personal Project/engine') import shared.useful.Useful import shared.charactors ##TODO: ## Make the Monster … | |
As some of you know, there is a COM reference library called 'YahooMessengerLib'. What I have done with it until now was: - Login with user and password - Logout YM must be started for use to use this library. YahooMessengerLib has a lot of interfaces but I don't know … | |
I want to know that how many Student class objects in a file. plz help me out. Below is a class of Students and 2 function for read and write object in a file, in read function [code] while(in.eof()!= 1){ in.read((char *)&st,sizeof(st)); st.showData(); } [/code] st.showData(); always show the last … | |
Wonder if anyone knows what's going on here... I have a page which is generated via Perl that prints a number of data entries in a series of table rows. Each <tr> is assigned a unique id through perl, and when user mouseovers on each individual <tr>, the javascript is … | |
I'm taking a course in Web development, learning to write PHP and I been working very hard on trying to find the errors in this script. I'm very new to programming and I get confused on where '," belong in the code. Any suggestions you can give is very helpful. … | |
I have a movie-player type application. You have a movie of JPanels that you can "play", that is you can have the frames change either automatically on a timer or by advancing a frame at a time manually. I've created 4 trivial frames (simple JPanels with different colors). It can … | |
Hi, I hope some-one can help. I am trying to create a mobile application that uses merge replication. I am having problems synchronising CE db to coporate db. I have had major trouble setting up my laptop for this, and have been unable to fix my final error. What I'm … | |
hi, I m making a graph with all (x,y) printed on graph line..like from +x=1,2,3....so on and same with -x,+y,-y. below I tried u can try this too but I want clean graph with nos. on it. can someone solve it? [code]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> int … | |
Hi I am learning windows programming in C++ . I just did a tutorial learning simply making a window appear & I am surprised by the all the things necessary to make a window appear. Maybe its just the tutorial that is too complicated with unecessary code. Is all this … | |
Hello all. I have been reading / practising c++ and through the course of my journey I have been encountering some phrases that I don't understand. The phrases are : -> Binary operators -> Unary operators I have tried to search on google and also on other posts in the … | |
Hello! How to draw rectangle in Delphi (using [U]timer [/U]component). Thanx! | |
here is what I want to do: I want to read 104-character strings from a text file, one per line. I want to chop those strings in two, the first 32 characters being a string called schecksum and the last 72 characters being a string called sencdata. Then I want … | |
Hi all I have javascript function that insert text into freetextbox at current cursor position. It works well when I call this function onClientClick event passing a string as a parameter (This string is inserted into freetextbox at current cursor position). My code is as follow [code]<FTB:FreeTextBox id="FreeTextBox1" toolbarlayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu, FontForeColorPicker,FontBackColorsMenu, … | |
Hi,first i must say this is not my homework,because i am to young (14 Years old)to have programming homework.I am trying to make application for automation of the dental surgery(i am testing my skills :D),this is the program menu : Ask for username and password and if it's correct it … | |
Hello everyone, I'm new to pyhton and this is my first post. Please help me understand how can I tell python where my parallel module is located. parallel module I think is located under parallel folder. Any help will be appreciated... [CODE]import sys sys.path.append('C:\\Python26\\Lib\\site-packages\\parallel') class HelloWorld: _reg_clsid_ = '{BEA1AA48-1D0A-4D19-8E98-03C54F195B59}' _reg_desc_ … | |
First , i want ask you excuses for my bad english. Well, i'm a beginner in c# but i need it to my work in this time. I have a SqlDataSource1 with "SELECT field1 from table1" I have an Accordion linked with SqlDataSource1, and inside of Accordion1 i have a … | |
Hi frnds... I saw previous threads regarding photo gallery in this forum.. All threads start from errors in code.... But i want Image gallery total code with db...I was also doing gallery, but it looks not good..code is working fine..but look and feel is not good...also it takes more time … | |
I have to open a log file created by c++, which is 4G in size. I want to read it from C#, but FileStream.Read uses int as offset, that means I can not read bigger than 2G. I believe C# should have a solution for it. How can I read … | |
I am new to C# from java. In java I am able to use a decorator for a File object where I can have the file instance as a member variable and add the methods with the operations I need to perform on the file. This seems to be a … | |
HI everyone. :) .I hope you can help me my function . I want the user to enter number of level "There are two levels" and then display students records in that level sorted by id .the one I wrote sorts then displays so the output is wrong .I tried … | |
Hi Suppose I have my program reading from a file with the following contents: 0.000,-0.073,-0.127,0.034,-0.034,0.146,0.098,0.029,-0.093,0.088,0.107 -0.005,-0.049,-0.112,0.039,-0.039,-0.059,-0.083,-0.020,-0.103,-0.068,-0.073 0.000,0.015,-0.049,0.010,0.308,-0.020,-0.054,0.225,-0.029,0.288,0.132 -0.005,0.020,0.068,0.088,-0.005,0.098,-0.044,0.098,0.073,0.098,-0.151 -0.005,-0.005,0.020,-0.015,-0.239,0.010,-0.024,0.181,-0.015,0.312,0.103 -0.005,-0.049,-0.044,0.044,-0.117,0.010,-0.054,0.244,0.034,-0.024,-0.103 0.000,-0.137,-0.122,-0.107,-0.601,0.093,0.020,-0.068,-0.205,-0.078,-0.039 and then I use StringTokenizer (delimiter ",") and feed the numbers into a vector. [CODE] File myFile = new File(strFileName); //Pass the file content to strFileName BufferedReader br = … | |
Is there a way to turn off auto indentation on the ide Eclipse, with every new line it is tabbing one space in, I don't see the option in preferences. | |
hi, Im just a newbie in java, I really want to learn but sometimes I lost my guts to learn coz Im always stuck on something, for example in JTextField UI, I want the UI to accept just a numeric input and prompt the user when the input is not … | |
i have written a program in which i am drawing using a mouse. however while drawing a new line the previous ones are still being shown. i have called repaint every time the mouse is moved. Can anyone please help. | |
I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following … | |
I don't know how to solve this problem in my code voro.cpp(200): (col. 5) remark: LOOP WAS VECTORIZED voro.cpp(395): same problem voro.cpp(423): voro.cpp(427): I am using intel compiler 10.1 to compile my code the code works fine on dev C++ 4.9.9.2 and V C++ 2008 200 [CODE] for(j=0; j<3; j++) … | |
hola, I really need your help on this. I tried to do k-way merge sort in c# and finally I ended with this: [CODE] public ArrayList MergeSort ( ArrayList arrIntegers ) { if (arrIntegers.Count == 1) { return arrIntegers; } ArrayList arrSortedInt = new ArrayList(); int middle = (int)arrIntegers.Count/2; ArrayList … | |
hello every body i have a problem with a c program . the question that ( [COLOR="Green"]write a c program that reads a real numbers untill error then calculate the sum and the average of all numbers [/COLOR]) i have solve it with a while looping . and i need … | |
hi there, I have a phpbb forum . and I want to install a new style for it. I have tried to do that , have not sucessded. please how can I do that ? | |
Hi...new here. :) Trying a sql insert inside a foreach loop, getting "Variable name has already been declared...must be unique" error. I think the structure of my code or my parameter statements are incorrect. Any help would be greatly appreciated! Thanks! [code] // open connection mySqlConnection.Open(); //enumerate the items in … | |
I don't get where to insert the code and such; I could really use some help with this. :) Here's my java file: (I removed irrelevant stuff) [code=java] package projectprojectile; import java.applet.*; import java.awt.*; import java.io.File; import java.util.Calendar; import java.util.LinkedList; import java.util.List; import javax.swing.JOptionPane; public class Main extends Applet implements … | |
hi, The page we have opened (e.g [url]www.daniweb.com[/url]) and after we are login in to it then after typing the address in the address bar their is a change in the url. Here we copy the address and we are giving that now then the html source what we have … | |
hi everyone i'm novice in vb.net and got stuck with this problem want to add a record in table and used the following code Adodc1.Recordset.AddNew() Adodc1.Recordset.Fields("UrduWord1") = rtfHindi.Text Adodc1.Recordset.Fields("UrduWord2") = rtfUrdu.Text Adodc1.Recordset.Update() the problem is with the line: Adodc1.Recordset.Fields("UrduWord1") = rtfHindi.Text and showing following error msg Error Property 'Item' is … | |
I successfully created my own help file using the VB 4 help complier. Now I need the code to call my help from my program. Does anyone know how to do this? | |
I made a game, and my friend told me: It doesn't work on linux. I thought it was because when you use VK_SOMETHING that is a value that windows returns when that key is clicked. So... Is their a substitute that I could use, a different function or something that … | |
Here's the problem: I've got a datagrid that uses a datagridviewcombobox column that I want to populate with enumerated values from a MYSQL database - specifically, when the program starts, the DataGridView is populated with the names of students (Get1Click) - I then want to add a string variable from … | |
Why do I get this error/incorrect syntax? Do you know how I can fix this? [QUOTE] comparison between signed and unsigned integer expressions [/QUOTE] [CODE=cplusplus] for ( int j = 0; j < item.length(); j++) // error ocurs here if ( item[j] == '_' ) item[j] = ' '; [/CODE] | |
Hi there, im new to VB and am trying to work out how i can check that my database connection info is correct before i connect. error example with incorrect info: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or … | |
Hi, i hope someone can help me. i want to create a forum (think i should call it a forum. it is just going to be one page where people can add their thoughts or compliments or suggestions). I'm going to use mySQL and Asp.Net C#, but don't really have … | |
Hi, I have a list page which contains few drop down lists and text boxes used for filter and a gridview. The user enters the filter criteria and then clicks on "Search" button, gridview gets loaded based on search criteria and displays it. I am using object data source with … | |
A university has few seats vacant for the new academic yea in the various departments. Students from all over the country send in their applications to the admissions department. The applications will be processed & students who have cleared the test criteria will be admitted to the department. It has … | |
Hi, I am coming up with a calendar.I am using ASP.net with C#.I am having using a .ascx file format. i am getting an error on the 10th line. it shows CS1001:identifier expected. i am not sure of what to do. Please guide me of my mistake. im using Visual … |
The End.