199,114 Archived Topics
Remove Filter ![]() | |
int test = numbers.length; if (numbers[i] = test) { } i want to find the last array in numbers then do something with it for example out put it the above code is my attepmtp at it however i am doingd something wrong and cant for the life of me … | |
Hi, i need some help to make a prograsm that will read from a file and sort the numbers in lowes to highest order. For example the file will contain 5 4 3 2 1 and i want to to come out as 1 2 3 4 5 . How … | |
I want to fetch records from database and want to show listing in xml form. e.g [CODE] <url> <loc>http://www.test.com/about-us/</loc> <priority>0.64</priority> <lastmod>2009-05-04T10:10:21+00:00</lastmod> <changefreq>daily</changefreq> </url> <url> <loc>http://www.test.com/about-us/about-factory/</loc> <priority>0.64</priority> <lastmod>2009-05-04T10:10:21+00:00</lastmod> <changefreq>daily</changefreq> </url> <url> <loc>http://www.test.com/about-us/chairman-massage/</loc> <priority>0.64</priority> <lastmod>2009-05-04T10:10:21+00:00</lastmod> <changefreq>daily</changefreq> </url> [/CODE] the urls are dynamic. I am using statically now but want to use dynamically. … | |
I am doing a project in c++. I want to open Pdf files. HOw can I do it in turbo c++. Should I have to switch to other IDE? | |
Hi All, I am facing problems with free() API of ANSI. I am using Visual Studio 2005. I am using 2 char pointers. If i copy from one to another and after if i try to free source pointer, it is giving exception. How to debug this problem? Please help … | |
Hi Guys. I've been searching the web for a solution but it seams as though I have to ask a question....LOL I have a couple of Projects consisting of a fex apps and Dll's all in one solution. One of my Classes is Called GlobalVariables which is referenced in all … | |
Hi all, Apologies to be a pain but I'm relativeley new to .net programming and I need a little assistance please. I have created a login and registration pages using the control for .net 2.0 and tested locally I can add users and login to the site. However, once published … | |
Hey, I wrote some code to send http (see below) and i get a connection error 10056 which means its already connected. However on wireshark i see rst packets from the server, and it doesnt send a packet... In my program i call connect sock then sendhttp. i only call … | |
hey..will anyone tell me how to browse files and folders in a drive using C?? | |
I am in the process of writing and debugging a Python version of Mastermind. I have to use classes, so I have them all in their own files. I have them called and such. My problem now is that a part of the code likes to repeat itself ad infinitum. … | |
I am new to ctt programming and I am having some problems trying to get an understanding of what this programming is all about. The following program is the code. Note that in the program we must include the requirement that the program end if the user inputs an invalid … | |
I *finished* my first program. Compiled it, ran it, tested it. I like it so I saved it. Now when I go into the folder i saved it to there are two files: 1 .cpp file that opens the code in my compiler. 2 .exe file that opens the program … | |
Hello! I am rather new to c, and I am having a parsing problem. What I am trying to accomplish: I have a file filled with assignment statements such as: [CODE]var1=5 var2=80[/CODE]...etc. I want to parse through the file and then do a check to see if the variables exist … | |
Hello to all, i have developed a miller rabin primality test program but return me wrong result all the time. I don't know what wrong with it after few days of debug. Code: [code=cplusplus] #include <iostream> #include <sstream> #include <string> #include <bitset> #include <vector> #include <limits> #include <algorithm> #include <functional> … | |
how do i display the path name to the bash shell? Thanks all | |
I am very new to this.. I have used a repeater control and it fetches about 100 records from the database. Inside the repeater control, I am having 4 columns and in one column, I hav used one dropdown list as [code=asp.net] <asp:DropDownList ID="st" Runat="server" AutoPostBack=true OnSelectedIndexChanged="go_change" CssClass=rtd Runat=server> <asp:ListItem … | |
hi there, i'm quite the beginner at c++, just got to my last project for my course to do. The project asks me to create a family tree using linked list. It says the tree and its components should be templated so it can have a family tree of any … | |
i have 3 tables i want to show the data from them to a page. table1 "trip" table2 "seat" table3 "user_information" show all the data of table one which is working its showing but how can i show multiple table data any ways. show all data of trip and seat … | |
Ok i know this has all sorts of issues, im getting tons of errors, any suggestion on where to start? [code=C] #include <stdio.h> #include <stdlib.h> typdef char byte; void memcopy( byte *to, byte *from, int count ) { while ( count-- > 0 ) *to++ = *from++ ; } int … | |
Hi friends, i got one query and would like to share with you, working on a tower defense type game. A while ago I posted asking about maze logic and was kindly directed towards A-star pathfinding. It is perfect. I understand the concept and it makes sense. Now the problem … | |
Hello, My brother asked me to create an application where he can save all his data and retrieve at any time, which does all the calculation. A friend of mine suggested PHP and MySQL would be a better option. I know HTML and CSS but very little of PHP. As … | |
I've worked up a site for a friend who wanted a horizontal scrolling site -I've managed to do it ([url]www.testdrive-site.co.uk/site2[/url]) for Firefox etc. but the links didn't slide the page across to the relevant 'page' in iE. I checked the site and now it validates but doesn't even load in … | |
when i install mysql, my computer keeps restarting I can't even uninstall it! i fixed it by logging into Safe Mode and do a System Restore. MSQL is now uninstalled, so it's fine now. I want to have MSQL working. - using XP SP2. | |
I am trying to greatly shorten code on my pages. Is it possible to include variables in my fetch fields? The below will all exist on same php page. Here is the code I want included in my fetch [code] // variables to include in fetch $abc = stripslashes($row->abc); $def … | |
OK so I have created by VB application I have created my setup files. I have zipped them up with winrar, selecting .Zip as the format. I have put the zipped up file on my ISP, and I have a web page with a button linking to the zipped up … | |
Hi I have a variable which contains this data : $text = [QUOTE]This is the company’s profile info, Please see this. “This is special announcement,” I have this texts.[/QUOTE] Now I want to remove the special characters from this variable. I want to remove ’ “ and some other non-standard … | |
Hello Everyone, I'm a newbie and was just trying to figure out how to get a website published. I'm on a Mac and can set the site up on it but I need a FTP. Is there any where I can get a simple website published for free. I don't … | |
[CODE]Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data. The problem I have is the first record gets processed fine where … | |
Hello everyone, I'm looking for some help with these simple tasks. I actually need this just for linguistic analysis, so I'm sorry for asking probably dumb questions. :) There is a simple code that uses grep to find lines that contain a certain word in one file. [code]linecount=`grep "someword" $1/*file.txt … | |
Hello, I am using visual webdeveloper 2008, I have created users using asp.net configuration. Now i am having 2 roles admin and users, And i am having 3 pages as login,register,secured So wen i enter the website as admin all these 3 pages must be visible to the user. Wen … | |
Hi, I would like to know whether the Data parsing can be done by perl scripting by checking the specified the webpage and fetch the data from the page and load the same i nto the sql server table. In the sql server table, it checks for a value called … | |
hi there i am trying to creat a subtotal for each row i have created and for each item in the combo box i dont know how to do this can some help plz [CODE] /* * To change this template, choose Tools | Templates * and open the template … | |
I installed it, and I'm trying to follow the tutorial but it won't work right. I made the test file, but when I type "python test.py" in command prompt it doesn't work. What am I doing wrong? | |
Hi, this is the first time I have posted a question. I'm really hoping for somebody to help me. I have a text box in a report that I need to populate via a function. The data required (OPENING BALANCE) is already in another query titled: "qryEOD Report Query". I … | |
Please can some one help me here; I have 4 questions to solve /a. Write a member function to check whether two singly Linked List have the same contents. //b.Write a member function to reverse a singly Linked List using only one pass through the list. //c.Insert a new node … | |
hello, i was wondering if there is a way to automatically crop a picture, or only show a specific part of it with javascript. i dont know if this is important or not, but i want the cropped picture to fill the div its in, no matter what size the … | |
[IMG]http://i36.tinypic.com/11rus5g.jpg[/IMG] So far i have a database with all data in it. I have the 1st text field where the user enters their postcode and then the page reloads populating the drop down menu with the corresponding suburbs. Next what i want is after a suburb has been selected in … | |
hey, got a quick question regarding template classes. I've made several data structures that I've found to be very useful (using template classes) but it's getting tiresome making a new explicit specialization every time I implement it in a new way. Such as if I want to do this in … | |
Hey guys. Trying to implement associative array with the help of libJudy. Here's small test, that doesn't work. Please, help me to find, where i did wrong? [CODE] #include <assert.h> #include <Judy.h> typedef struct { char *hash; int id; int views; } Watch_t; Pvoid_t dict = (Pvoid_t) NULL; PWord_t rcw; … | |
I need to know a way to open a notepad document from one of my programs without opening a console window. The calling program is a standard window, so it would look bad if a console widow opened. There are a couple of things you should be aware of as … | |
anyone know why this wont work? [CODE] fstream f; f.open("a.dat", ios::in | ios::out | ios::binary); [/CODE] it doesnt create a.dat... also how would i switch f from read state to write state? | |
Hi to all, I'm developing a web page and the requirements is that the page must include an iframe and the user can insert an URL address and the page will be displayed in the iframe(I write awhile a question displaying contents ion iframe and I receive an answer the … | |
I am having a lot of trouble getting this program to work properly. No compilation errors, but this is the output i get when i compile; init: deps-jar: Compiling 1 source file to /home/alias120/NetBeansProjects/createFile/build/classes compile: run: Checking to see if file already exists... true You produced the following file contents: … | |
Hi, everyone! I'm having problems with the implantation of a free camera in a 3D world. For now, I'm using the A/D/W/S keys to make the camera go right, left, forward and backward. The problem is that I don't see the effects of the forward and backward movements. Even with … | |
How would i go about storing the time it took to excecute my script into a variable? any help would be appreciated :) | |
I have problem in my project ,that is ,i want that time clock is reduced by a specific time suppose in online exam given time is alloted and after a specified time admin will block the exam ,so i want that timer is decremented . Suppose aloted time is 01:00(hh:mm) … | |
Hi, I have created an pure OOP e-commerce web site with PHP. I want to make sure that my class files cannot be seen or downloaded by anyone. What do i do now? Other files html, css, js can be seen, no problem. My hosting company provides me a folder … | |
Hello. Recently I have started to learn C++, however I ran into some problems. First of all, take a look at this part of code: [CODE] while (Uncomplete) { if(counter > 8) draw = true; if(draw == true) { PlaceCursor(0, 10); cout << "Its a draw!\n" << "continue?"; getch(); Uncomplete … | |
[B]IN JAVA!!![/B] what is this "noclassdeffounderror"??? i m getting this error at run time what should i do? while searching on Google i found this "public NoClassDefFoundError(String s) Constructs a NoClassDefFoundError with the specified detail message. [B]Parameters[/B]: s - the detail message." :confused: | |
Good day programmers I am a beginner and I am designing a game with C++ using Microsoft Office Visual Studio 2005. I need to add pictures to it, and I wonder if there could be some code to add or open a picture. Could someone please guide me? Thank you. |
The End.