199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RayvenHawk

I have an assignment that asks to create a program to input students names & test scores. After which the user gets the option to calculate the average and print out which students were below, and/or print out the highest score and which students had that score. Since the total …

Member Avatar for Undertech
0
136
Member Avatar for Tootlol

Hi, recently I just started learning php as a complete beginner, and I wrote some codes that wasn't able to show up on my browser. Please check to see if there is anything wrong with it. This is the exactly what I used. <?php $prices= array( ‘Tires’=>100, ‘Oil’=>10, ‘Spark Plugs’=>4 …

Member Avatar for MVied
0
154
Member Avatar for yair7190

hi everyone, im searching for a way to insert several values i get from a command [top |grep root |awk '{print $10}'] to a variable, so that the variable will contain the sum of all values returned. (trying to calculate MEM usage by all root processes ) can anyone help? …

Member Avatar for ghostdog74
0
151
Member Avatar for RobWil

I am newbie and trying to make a data display application in VB6 with 3 forms - Form1 is background Flash animation & graphics (Interface) - Form2 is for data-1 display - Form3 is for data-2 display Form2 & Form3 will display as slides on Form1 Data is in text …

Member Avatar for technogeek_42
0
180
Member Avatar for heni_pro

I'm having a problem in displaying data from the table.I've a candidate table in the db. i 've got the problem when i try to select the place of the candidate in the main html code. the html has the place selector, frist name, middle name and partystatus of it. …

Member Avatar for langsor
0
139
Member Avatar for scorpionz

Hi this is scorpionz I need to know some information regarding Beta Testing Tools I have searched many places on the internet, but unable to figure out can any help me with this, and give some useful ingformation regarding beta testing tool? any site? and some tool ? Any response …

Member Avatar for sarehu
0
84
Member Avatar for Dekudude

[code=Python] def checkIt(arr,inp): bool = 0 for i in arr: if i in inp: bool = 1 break return bool array = ['hi','hey','hello'] string = "Hi there!" if checkIt(array,string) print "Yay!"; [/code] That's my code. It returns, "Yay!". Now... I like what it does-- it searches the string for a …

Member Avatar for shadwickman
0
125
Member Avatar for derekcpt

Hi, Could someone assist me here ;-) (Again) I am recording dates into a mysql database in the following forma: YYYY-MM-DD 2008-08-17 [code]date('Y-m-d')[/code] Now, I have to get data from my mysql database, but the data has to be filtered by the month and year. So, in other words, if …

Member Avatar for R0bb0b
0
207
Member Avatar for Chris101a

[B]Okay,[/B] here's the deal. I am designing a "Craigslist" type deal using php/MySql. I have everything down pat, EXCEPT I cannot figure out how to enter a simple search field (in HTML) where people can browse by city. I have a little, no, very little experience with PhP. So, when …

Member Avatar for langsor
0
110
Member Avatar for inoxmum

PLease help me with this? [B]SCENARIO:[/B] I have developed an application with [LIST] [*]>2 custom dlls , [*]>a .mdb file, and [*]>my exe file. [/LIST] Using C# and VIsual Studio 2005. The application requires .NET Framework 2.0 to run. The application runs fine when all files are kept in the …

Member Avatar for LizR
0
98
Member Avatar for daviddoria

I have been using vector in c++ lately, but I needed to speed up my code a bit so someone recommended I use regular arrays. My question is 2 part - 1) I thought you couldn't do this!!?? For some reason it is working with no problem? [code] int a=2; …

Member Avatar for ArkM
0
150
Member Avatar for TKSS

Hey all, Just a quick C++ question from me...I'm sure this is info that is available on the web somewhere but a couple of searches weren't very fruitful. Would it be possible for someone to provide an example of the following? [list] [*]Calling/opening and executing a batch file from within …

Member Avatar for Salem
0
234
Member Avatar for RobWil

I am newbe trying to make a data display application in VB6 with Flash Animation (Interface). My question is: When I run the application, it should opens in normal window with title bar (not maximized). But when user press a button or some thing like that, window should resize (maximize) …

Member Avatar for RobWil
0
5K
Member Avatar for nihao

Hello everyone: I want to change this date "12 Apr 2006 23:35:47" into "2006-04-12 23:35:47",I have tested lots of parameters of the command "date",but it still not execute UNDER FreeBSD,pls help me,thanks!

Member Avatar for dklima
0
560
Member Avatar for skinbug

I have a form and when someone enters incorrect information, the error is displayed. For the text fields, I have managed to sort it so the user doesn't have to re-type the information as the value is echoed back to them. But the problem I have is with an array …

Member Avatar for R0bb0b
0
131
Member Avatar for max2me99

I have a page that does load images from mysql db - but they don't go to the anchor. The first page is listings that just has text, and the second shows image(s) for those. After refresh the category page will go to the anchored link, but I've been told …

Member Avatar for langsor
0
409
Member Avatar for Lukezzz

If I have 2 Forms in my application and Form1 is my startingForm. Is it possible to make Form2 as my startingForm instead. What indicates in the code that Form1 is my startingForm. Is this possible to do ?

Member Avatar for Lukezzz
0
119
Member Avatar for madmital

Hi, Does anyone know of an easy way to make a databound gridview display multiline textboxes when editing rows instead of the standard singleline ones? I can't use predefinded edit templates, since the gridview is to be absolutely dynamic. That is, I never know how many columns wil be in …

Member Avatar for james.samek
0
675
Member Avatar for architact

Hello I have designed a website in which users can create their account and then add or delete their likings, favoorite songs, what i want is that i want them to be able to arrange their likings by moving up and down. for this i need a procedure for swapping …

Member Avatar for R0bb0b
0
220
Member Avatar for breezyy

Hey there, I am trying to make a unique ID for each of my records. So in my "First Name" and "Last Name" fields, I am trying to ADD ALL of the characters' ASCII code in both fields. AN e.g First Name : JOHN (string) Last Name : DOE(string) Member …

Member Avatar for selvaganapathy
0
117
Member Avatar for slendergreen

I'm new to Python and not anywhere near a competent programmer. Anyway, if someone could help me get over this hump, I'd appreciate it. I need to write a Python script that calls commands from the OS that may have lengthy output. Let's say I want to see the results …

Member Avatar for Gribouillis
0
127
Member Avatar for Gribouillis

In the Perl language, you can fork a child process with the following syntax [code=perl] open CHILD, " | programA | programB | program C"; print CHILD "this is an example input"; [/code] (at least, you can do this under linux). This statement starts 3 processes in fact; programA, B …

Member Avatar for slate
0
229
Member Avatar for bincy ashok

Assume that a language uses /* and */ pair for comments.Write a C program to check for balanced /* and */ pair in a given text file.Use pointer implementation of the data structure.

Member Avatar for WaltP
0
99
Member Avatar for Alex Edwards

Hello I'm reading through Scott Meyer's book Effective C++, third Edition. I'm having an issue understanding Page 14, Item 2, paragraph 4. The below is a snippet of code with an explanation quoted from his book-- [code=c++] // Author: Scott Meyers class GamePlayer{ private: static const int NumTurns = 5; …

Member Avatar for vijayan121
0
1K
Member Avatar for atplerry

I have a php webpage file that contain all the file and the code i want to edit that database content from all the file extrcted from the www folder of the wamp serve rthat will be use to connect to the database pls where will i get the database …

Member Avatar for buddylee17
0
136
Member Avatar for Umair.P

Hi there. I am new to this forum. I would like to know how can I download a file or .exe from a server on to the client machine. My software will run on the client machine. I want to know if there is some built in functionalty in windows …

Member Avatar for Umair.P
0
253
Member Avatar for Alex Edwards

I'm enjoying the book Effective C++. It has highlighted things that I've looked over, never heard of, or never even though of before! However, even with this book my understanding of C++ still doesn't seem to be solid. For some time now I've been curious about how binary data is …

Member Avatar for Alex Edwards
0
162
Member Avatar for natpu

Hello i am Sarathy, I am pursuing my final year MCA, my projects are just 2 months head. I have joined in ASP.Net class before 2 months, the course comprises of C#, GUI, XML, ADO.Net, ASP.Net in the order which i specified. Just now they have completed the first module(C#). …

Member Avatar for rapture
0
268
Member Avatar for Ahsen

three questions that i need to ask. 1) i developed connection between database and Forms of c#. entries are successful.i databse i have two columns, "Date/time" and "Cash". the format of date is like "1/11/2000". Suppose i have record of 1 year. what query should i use if i complete …

Member Avatar for Ahsen
0
153
Member Avatar for Rawfel

I'm working on some C++ excercies in my book and now I'm supposed to write a program that converats a number of seconds into days, hours, minutes and seconds with the help of arithmetic operators and integer and float variables. Nothing to fancy that is. It ended up looking something …

Member Avatar for Ancient Dragon
0
176
Member Avatar for herephishy

Consider the following code: Result= input_number Mod 7 If (Result > 0) Then Cells(1,1).Value = 3 Else NextResult = input_number Mod 5 If (NextResult > 0) Then Cells(1,1).Value = 2 Else Cells(1,1).Value = 1 End If End If What will be the content of cell A1 if input_number equals 56? …

Member Avatar for aktharshaik
0
447
Member Avatar for Risame

Hi everyone, I'm new and hope someone can help with my problem. First of all English is not my first languaje so I hope you all can be a little patient with my writing :icon_cheesygrin: Here's the thing. I'm new to C++, and I'm using Borland 3.1 (this is the …

Member Avatar for Radical Edward
0
253
Member Avatar for ichigoSJ

Hi im trying to make a maths program and im having trouble with one of my sections where im currently just using '+' incorporated in to a do while loop until the score = 10 though i'm stuck on how to make it randomly change the question between + or …

Member Avatar for Radical Edward
0
116
Member Avatar for gpdrums

Hi All: I have an extensive website in which I would like to echo the name of the company various pages after the user logs in. I think I should be using the $_SESSION global, but I'm having difficulty implementing it, placing it in my code, and knowing what php …

Member Avatar for MVied
0
201
Member Avatar for agibbons

I am making my own file manager for linux, hopefully it will be cross platform, and I am trying to identify different file types, in particular folders. I have already searched google but I could only find a way of identifying text files. Does anyone have any advice on identifying …

Member Avatar for slate
0
318
Member Avatar for Ved_TheOne

Hi, i m currently working in autoCAD Can anyone provide me syntax for multidimensional array in VB6.0 for VBA whn i declare by following syntax it gives me error [CODE]dim arra(,) as Long[/CODE] Any help would be appreciated I want to declare a multidemsional array row is of long data …

Member Avatar for aktharshaik
0
747
Member Avatar for magicMan123

Hey everyone, I am a beginner at python, and on these forums (even though I have lurked here quite a bit). Anyway, I really need some help with recursive functions. I don't exactly know how they work, and I have to be able to answer the following questions: [code] Turn …

Member Avatar for slate
0
187
Member Avatar for magicMan123

I need to do the following question: [code]Turn a line of input containing matching pairs of round (()) or curly ({}) brackets into a mountain range. The height of the mountain should indicate how deeply nested the brackets are. For example, given this input: {({(){}()}{(){}()})({(){}()}{(){}()})({(){}()}{(){}()})} Your program should output: (){}() …

Member Avatar for slate
0
318
Member Avatar for A_Obrzut

[code] void HandleTCPClient(int clntSocket) { int recvMsgSize; char echoBuffer[32]; char test[32]; char reply[32]; memset(&echoBuffer,0,sizeof(echoBuffer)); memset(&test,0,sizeof(test)); memset(&reply,0,sizeof(reply)); if((recvMsgSize = recv(clntSocket, echoBuffer, 32, 0)) <0) { DieWithError("recv() failed."); } while (recvMsgSize > 0) { if(send(clntSocket, echoBuffer, recvMsgSize, 0) != recvMsgSize) { DieWithError("send() failed."); } if((recvMsgSize = recv(clntSocket, echoBuffer, 32, 0)) <0) { …

Member Avatar for A_Obrzut
0
112
Member Avatar for dmlandrum

I'm trying to create a table of values based upon tanh(x) (nevermind the cubic function for the moment): [code=python]#!/usr/bin/python import math def cubic(y0, y1, y2, y3, mu): a0 = y3 - y2 - y0 + y1 a1 = y0 - y1 - a0 a2 = y2 - y0 a3 = …

Member Avatar for dmlandrum
0
114
Member Avatar for JA5ONS

I have created a program that records my input through the python command line, it asks for ie, name, favourite food, (they are examples only) it than writes the inputs to a text file, and calls the text file by one of the inputs (eg, name) i now want it …

Member Avatar for slate
0
105
Member Avatar for nasnoma

I want someone to help me write a program to read the integer elements of two arrays A and B of different size from the user. And use link list to save this elements instead of arrays. And then do the following to the link lists given: 1. Sort link …

Member Avatar for Ancient Dragon
0
112
Member Avatar for joeduffy10001

I am not really an asp developer but I am technical. I am making changes to an existing script. Very simply, I have added an additional link on a webpage. I want this link to easy display the contents of a word document. I am not that particular about details. …

Member Avatar for vicky_rawat
0
244
Member Avatar for dinilkarun

Hi, I am using a dialog box where user selects a XML file from the local drive. The selected file along with the folder path is displayed in a textbox on the form. The user can now edit the textbox. On click on 'Proceed' button, I am parsing that xml …

Member Avatar for dinilkarun
0
120
Member Avatar for bimaljr

Hi I just want to count files of particular type (like *.txt) in a folder. I searched net and found this for all files count : file_count = len(os.walk(valid_path).next()[2]) But I need perticuler type like *.txt . (means how many .txt files in folder) How to do this ? Thanks …

Member Avatar for bimaljr
0
8K
Member Avatar for FTProtocol

Main.cpp [code=cpp] #include <stdio.h> #include "CServer.cpp" class EventReceiver: public CServer { void OnClientReceive(CServer* SVR) { char* Packet = SVR->GetReceivedBuffer(); int packetsize = SVR->GetReceivedSize(); PCLIENT_HANDLE clientthatsent = SVR->GetLatestReadClient(); printf("\n Packet Recieved - %s", Packet); CLIENT_LIST_LOOP(SVR) if(CUR_CLIENT_SOCKETID != clientthatsent->sSocketId) { SVR->SendPacketToClient(Packet,packetsize,CUR_CLIENT); Sleep(250); } CLIENT_LIST_END_LOOP(SVR); } void OnClientConnection(CServer* SVR) { PCLIENT_HANDLE ConnectedClient = …

Member Avatar for mahlerfive
0
116
Member Avatar for FTProtocol

Im looking for a way to "ping" an ip and if it replies back then its "on" so it returns true else it returns false. If anyone can either show me a way to do this or point me in the right direction i would appreciate it.

Member Avatar for FTProtocol
0
90
Member Avatar for FTProtocol

im just wondering how you use send() and recv() like: [code=cpp] bool blah() { if(recv(send("10.1.1.1", "HI"), szBuffer, sizeof(szBuffer)) { MessageBox(NULL, "WORKED", "??", MB_OK); return true; } else { MessageBox(NULL, "FAIL", "??", MB_OK); return false; } } [/code] i know that wouldnt compile but you get the point?

Member Avatar for FTProtocol
0
167
Member Avatar for boradbhavesh

I got following algorithm for finding permutation but I can't code it. Can any one can code this permutation algorithm in c++ using recursive method as below [I]bool nextPermutation(int array[])[/I] 1. The first permutation is the permutation represented by the sequence (1, 2, …, n). 2. The last permutation is …

Member Avatar for Salem
0
88
Member Avatar for monochrome89

hi all,i'm still new to asp.net and i'm having some difficulties. i have an asp page where it will display the result of a select count(*) result if the user clicks on a button control. i have bind the sqldatasource to the gridview. the problem is i need to get …

Member Avatar for b4rbs
0
119

The End.