199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for esdftw

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 …

Member Avatar for esdftw
0
156
Member Avatar for C_Dannehl

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 …

Member Avatar for C_Dannehl
0
135
Member Avatar for angel6969

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

Member Avatar for jonsca
0
264
Member Avatar for ElegantElephant

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 . '"/> …

Member Avatar for ElegantElephant
0
112
Member Avatar for StaticX

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 …

Member Avatar for Lerner
0
109
Member Avatar for sniperx99

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 …

Member Avatar for sniperx99
0
84
Member Avatar for jemz

hello please help me on how to make my vb6 program to executable files...hoping for your positive responds

Member Avatar for peter_budo
0
199
Member Avatar for mikeandike

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 …

Member Avatar for StuartMillner
0
108
Member Avatar for muusa

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 …

Member Avatar for muusa
0
131
Member Avatar for muruganasm

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

Member Avatar for alza
0
228
Member Avatar for asm2hex

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

Member Avatar for JuhaW
0
118
Member Avatar for JustSuds

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

Member Avatar for Skeen
0
93
Member Avatar for corby

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

Member Avatar for corby
0
131
Member Avatar for debbier

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 …

Member Avatar for pritaeas
0
166
Member Avatar for sandorlev

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 …

Member Avatar for vmanes
0
777
Member Avatar for ElegantElephant

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 …

Member Avatar for ElegantElephant
0
86
Member Avatar for Nicholas_Roge

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 …

Member Avatar for Ancient Dragon
0
157
Member Avatar for hawkoftheeye

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 …

Member Avatar for Ancient Dragon
0
236
Member Avatar for Tommy2010

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 …

Member Avatar for Ancient Dragon
0
251
Member Avatar for supanoob

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 …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for DeepakBisht

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

Member Avatar for Ashesh Shah
0
595
Member Avatar for dude93

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 …

Member Avatar for Stefano Mtangoo
0
85
Member Avatar for Democles

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 …

Member Avatar for Ancient Dragon
0
174
Member Avatar for PhiberOptik

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 …

Member Avatar for PhiberOptik
0
84
Member Avatar for manchi

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]

Member Avatar for tanisa
0
67
Member Avatar for ssana

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 …

Member Avatar for ssana
0
195
Member Avatar for beanonymous

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? =/

0
187
Member Avatar for Ed Ashworth

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 …

Member Avatar for jonsca
0
141
Member Avatar for ryan311

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 …

Member Avatar for ryan311
0
75
Member Avatar for pavan146

Hi actually we r building a project based on mobiles so can any1 suggest me one efficient mobile simulator built on java..

Member Avatar for peter_budo
0
79
Member Avatar for spirit3ch

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

Member Avatar for jonsca
0
203
Member Avatar for mikel07

is there any difference between VB 2008 express with VB.Net??? some people says vb 2008 is the same with 2008??is it true??

Member Avatar for mikel07
0
73
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
170
Member Avatar for hermann87

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 …

Member Avatar for emilo35
0
198
Member Avatar for sidra 100

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

Member Avatar for tkud
0
114
Member Avatar for hydersha

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 …

Member Avatar for jonsca
0
853
Member Avatar for jemz

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

Member Avatar for jemz
0
168
Member Avatar for tomtetlaw

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 …

Member Avatar for mitrmkar
0
500
Member Avatar for n.utiu

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 …

Member Avatar for n.utiu
0
129
Member Avatar for lavin

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 …

Member Avatar for maba001
0
94
Member Avatar for alex-VX

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

Member Avatar for alex-VX
0
154
Member Avatar for by89

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

Member Avatar for Graphix
0
94
Member Avatar for yun

pdcurses works well with code::blocks but is there any way to use pdcurses with visual Studio, plz help.

Member Avatar for miguelbezerra
0
2K
Member Avatar for trytrytry

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 …

Member Avatar for trytrytry
0
196
Member Avatar for Zaad

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 …

0
85
Member Avatar for dumbncool

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 …

Member Avatar for kvprajapati
0
165
Member Avatar for dr.e

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

Member Avatar for kvprajapati
0
101
Member Avatar for terabithia

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 …

Member Avatar for Lerner
0
1K
Member Avatar for MDanz

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 …

Member Avatar for MDanz
0
114
Member Avatar for Stubaan

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 …

Member Avatar for Stubaan
0
5K

The End.