199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I did a search on this site to find threads where people were talking about finding a variable length number in a text file and came up with no results. So, I'm asking :) I have a text file with hundreds of lines of data in it. One … | |
Ok so a little bit of background, I am trying to write a boggle solver, I had everything working until I tried to implement a Binary Search Tree for storing the words found on the board, when I tried to do this I got the following errors: Error 1 error … | |
//Define a function that takes a partially filled array of numbers //as its argument and returns the standard deviation of the numbers in //the partially filled array. Since the partially filled array requires //two arguments, the function will have two formal parameters: an array //parameter and a formal parameter of … | |
I have a section in my PHP page containing this bit of code: [CODE] echo '<div style="float:left;"><h3><strong>Edit User Account</strong></h3> Date Registered: ' . $db_regdate . '<br> User Type: ' . $usertype . '<br><br> <form class="right_aligned" id="form1" name="form1" method="post" action=""> <label>First Name*</label> <input name="firstname" type="text" id="firstname" value="' . $db_firstname . '"/> … | |
Hi, Can anyone help me with this problem.For example i have a text file called food.txt with contents 1 apples 2 oranges 3 mango 4 bananna What i would like to do is enter the choice of fruit into a string and loop through the file until the word is … | |
Hello all, I am completely new to python, but unfortunately a professor I am working for needs some code done in it. Basically, I need to look through a file for the word "DATA" and then perform some manipulations (simple algebra) do a long list of numbers (3900 to be … | |
hello please help me on how to make my vb6 program to executable files...hoping for your positive responds | |
Hi, I'm trying to store a new value within a variable and then compare it to the previous value of that variable using the Math.Min method. I have created two seperate variable 1 for the previous and one for the new but I can't seem to store it. They both … | |
hi friends, i am doin a project named online compiler. the basic idea is to compile a program online. i am well acquinted with core java but not with web technologies. i know the basics of jsp n planning to do the project in jsp. i know how to compile … | |
hi. i am senthilmurugan. i am learning to php language. one error occur. i try to connect to database. [B]Can't connect to MySQL server on 'localhost' (10061)[/B]. how to correct the error . please reply the answer... | |
Hello, I'm having quite a hard time getting around this access violation error I keep getting. Every time I declare a character string in a structure I can never access it. Here's a small example of my code that keeps giving me a error no matter what I try. [CODE] … | |
Hi everyone, I just can't seem to find an explanation for using this "->" in code, in C++. I've migrated from Java and C#, and haven't seen this notation before. Basic example: [CODE]CMesh *pMesh = WorldObjects[i]->m_pMesh;[/CODE] As best as I can tell, this is the C++ equivalent of C#'s [CODE]WorldObjects[i].m_pMesh;[/CODE]. … | |
[U]for[/U] i<-1 [U]to[/U] n [U]do[/U] [INDENT][U]for[/U] j<-1 [U]to[/U] n^2 [U]do[/U][/INDENT] [INDENT][INDENT]write(i*j)[/INDENT][/INDENT] [INDENT][U]end-for[/U][/INDENT] [U]end-for[/U] | |
I'm using simplexml_load_string to extract a node from an xml filen xml file. It works most of the time, but not all, and when it fails, it gives the error: "call to a member function xpath() on a non-object" I suspect it's because the $menuXML isn't fully loaded? It is … | |
Hello! I've started programming C++ a week ago, so I cannot solve my problems easily. I've started a small project for learning classes, it's about encryption and stuff. I don't really get pointers, although I've read some about them. My problem is that when I use the cipher, it replaces … | |
I am currently working on a client management system for my Computing Coursework and I've come to the "Client Details" section, which allows staff and admin to view personal information about each client. I've successfully coded the query and everything else around it, I'm just a but stuck on how … | |
In the code below, I check if test.dll has been loaded, and it always returns false... I can't figure out what I'm doing wrong. Can anyone give me a hand? P.S.: I've triple checked that the DLL is in the running directory. [code=c++]#include <iostream> #include <windows.h> typedef int (*AddFunc)(int,int); typedef … | |
Hiya. Many apologies if the question I am about to ask has already been answered. I searched the forum, and found a couple of threads that seemed to be relevant to my problem, but none seemed to describe the problem fully. I'm fairly new to C++, having only been using … | |
Hi! I've been searching for reading number in a string containing mix of number and char for hours, but I've found the right code. The string has the format q23 - q3 (or q23-q3) I'd like to read the number '23' and store it in x, '3' --> y, and … | |
Well, I just wrote the first of my test / learn scripts with TKinter, and they work well (well they do not really do something but this without any errors) So Id thought you also have to learn to make biniarys and have installed py2exe for this job. Well at … | |
hi all, Is this is there any way in asp.net to create object of a web form in any other web form to access its member function ?? | |
See I've made a short little login that works with a dictionary, but I don't know how to add something to the dictionary while the program is running, so if you know how to fix this can you please help. Much apperciated.[code]database = {'name1': '1234', 'name2': '5678', 'name3': '9012'} name … | |
I am currently having somewhat of a brain stump here. I am programming in a larger project and well, it's on the move to c++. the source code is all c we compile by using a makefile. There is a file with several functions we are taking one removing everything … | |
Hey guys, I am making a block breaker type game. One panel houses the background, and one panel has the bricks, paddle, and such. and the other has the background. In my main class when I add the panels in this order: [CODE=java] add(new BrickBoard()); add(panelbg); [/CODE] the background image … | |
code for adding item in combobox and also want to show two fields in display properties of combobox by concatenate this two fields[code][/code] | |
hi , please can any body help me. i am making a website so i am using the combination of mysql and php.there is a error in fetching the field from url.i have made a hypertext as C LANGUAGE and behind this url is <a href="indexblank.php?course=C LANGUAGE">C language</a> now on … | |
OK here is a piece of code I've been working on that actually logs you in and returns what ever Curl sees except i have no idea how to make Curl function correctly with websites that require cookie authentication correctly, can anyone help? =/ | |
I wrote some C++ programs and classes a few years ago using Visual C++ 6.0 as my editor/compiler. Recently I replaced the 6.0 with Visual C++ 2008 Express. Now, none of my older code will compile. I read that there were some changes to the C++ standard library some time … | |
theres nothing happen everytime i click delete. here's my code admin.php [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $result = mysql_query("SELECT * FROM guest order by code asc"); mysql_close($con); <script> del=function(code){ m = confirm("Are you sure you want to delete this … | |
Hi actually we r building a project based on mobiles so can any1 suggest me one efficient mobile simulator built on java.. | |
Hi I am trying to implement a sequence using a linked list. I need to have the following functionalities: insert, remove and concatenate. The concatenate should not be destructive and the function call should be like. That is Seq1 and Seq2 should be preserved post function call. [code=c++] Seq3 = … | |
is there any difference between VB 2008 express with VB.Net??? some people says vb 2008 is the same with 2008??is it true?? | |
Hi all, My code lists items based on the logged in users id. when listed these items have an edit function. When the use clicks edit, the url holds the id for that item. My problem is that its possible to change the url to show details of something thats … | |
Greetings all, I'd like to ask a couple questions... For starters... Is it possible to use OpenGL on my Borland C++ Builder 6? If so, what files do I need to have/download? I've tried various examples of starting a OpenGL supporting window through Borland but nothing seems to work, so … | |
plz chk my code i m having error at line 35 and 36[CODE]#include <iostream> #include <cstring> using namespace std; class strng { char s[30]; public: strng() { strcpy(s,""); } string getstring() { cout<<"enter the sting:"; cin>>s; return s; } void displaystring() { cout <<"the string is:"<<s<<endl; } const strng &operator+= … | |
hey guys.. greetings to all please help me regarding my problem i want to find how many times a digit has occurred in a number. for example i have an array which consists of numbers 1011 1022 1033 number of 1's= 5 number of 2's= 2 number of 3's= 2 … | |
hello please help me on this i don't know what is the meaning of this movenext,movefirst, ,adoptimistic,aduserclient....please help me on this and how to use on this and the meaning of this...hoping for your positive responds..thanks in advance... | |
When I compile my code, I get these errors: [code] ------ Build started: Project: engine, Configuration: Debug Win32 ------ Compiling... baseanimating.cpp c:\program files\microsoft visual studio 9.0\vc\include\time.h(39) : error C2143: syntax error : missing ';' before 'string' c:\program files\microsoft visual studio 9.0\vc\include\time.h(39) : error C2059: syntax error : 'string' c:\program files\microsoft … | |
I have recently installed Code:Blocks 8.02 for Windows, but I have a problem with my debugger. Every time I try to debug I get an error that says I haven't set my debugger executable yet. I selected the mingw c++ compiler included in the install, and set the debugger exe … | |
Hi coders, I want to find the network ipaddress of a person who visits my site. How can i do this. any idea?? I tot of using javascripts. storing the ip in a variable and save it in the db. I have not created the site yet. I know a … | |
hello I created a simple program that login then the program gets some data from a file. I logged in but then a error message pops out error cant read file cause it is used by another process. The weird thing is that it can be open in the notepad. … | |
![]() | function updatesum() { document.form1.totalfat.value = (document.form1.satfat.value -0) + (document.form1.monofat.value -0) + (document.form1.polyfat.value -0); } <body onload="updatesum()"> <form name="form1" method="post" action="./submitFood"> <table width="520" border="0"> <% int count=0; if(request.getAttribute("foodList")!=null) { ArrayList al = (ArrayList)request.getAttribute("foodList"); Iterator itr = al.iterator(); while(itr.hasNext()) { if((count%2)==0) { } else { } count++; ArrayList foodList = (ArrayList)itr.next(); %> … |
pdcurses works well with code::blocks but is there any way to use pdcurses with visual Studio, plz help. | |
i have to make a program with only COMBO BOX and FORM and BUTTON. the form should have 1-combo box (having many options) and 1-Button when user selects one option from combo box and presses button the form assign to that option should execute. for eg. a combo box (options … | |
Hi; I have a problem which involves the road map of a certain country is given and I have to find the best solution to find a best solution for the map by demolishing the extra roads in the map and keep the roads that would make it possible for … | |
Hi, I have a gridview to which I'm adding template fields programmatically. Each of the template fields have a textbox. I would like to make this text box have 2-way binding to a database column. Please see below code. [CODE]public class CustomEditItemTemplate : ITemplate { private DataControlRowType templateType; private string … | |
Hello! Can someone tell me how can i do following... I would like to load a file from www and save it to folder. I am using Visual studio 2008 an VB in form aplication. So how to load a file from example [url]www.test.gg[/url] and saving it to c:/myfolder/ THX | |
So i suppose to do some Matrix calculator and perform some calculation by using classes. But we need to copy the square matrixes to other matrix to perform the calculation without changing the actual value. So we can use the same matrix and just changing the form to upper or … | |
i have multiple entries with starting with the letter 'a' .. but the query below only displays one result. [CODE]<?php mysql_connect("localhost", "Master", "pword"); mysql_select_db("db"); $letter = htmlentities($_GET['search']); $user = mysql_query("SELECT DISTINCT keywords FROM Stacks WHERE keywords LIKE '$letter%' ORDER BY keywords")or die (mysql_error()); while($rowz = mysql_fetch_array($user)){ $keyword = $rowz['keywords']; $name … | |
Hi folks I feel like this is a simple task, but being so new to python and not having the time to fully come to grips with it I am utterly overwhelmed... I simply want to replace whatever text is at a particular position in a particular line with the … |
The End.