199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bbmatten

I am very new to Python and am about three weeks behind due to textbook problems. I am having a problem with one programming exercise. I have no idea how to even begin writting a program to determine the distance to a lightning strike based on the time elapsed between …

Member Avatar for vegaseat
0
76
Member Avatar for cute121180

Problem statement: The program has to take input for DFA and for h() function that is for homomorphism. I am able to write the program in C++ only for DFA. I am unable to include the h() function. Moreover, my DFA program giving me an error. [code=cplusplus] #include <iostream> #include …

Member Avatar for cute121180
0
191
Member Avatar for atrusmre

I've got an interesting issue with a program I'm writing. I think I know kinda what is wrong, but I'm not sure about it, and I don't know how to fix it. I have the following code [CODE]. . . string strCmd = "command"; OnDataSend(strCmd); //wait for a response while …

Member Avatar for atrusmre
0
185
Member Avatar for Arne Kristoffer

Hello! :) I'm having a problem while comparing one character from a string with a ... string. This is a part of a pretty complex loop (or, it's complex for me, since I'm new to C++ and programming), but the case is that I need to compare the value of …

Member Avatar for Arne Kristoffer
0
22K
Member Avatar for dragonheart

im using crystal reports 11 in my vb project.. (vb 6.0) as i cudnt find the crystal report control in the project -.> components, i went to project -> references and tried to browse and show where the OCX file is.. it got added to the library list.. but when …

Member Avatar for dragonheart
0
276
Member Avatar for farahphp

Hi i'm trying to display a default value in a atext field then when user changes it im grabbing it in javascript and passing it as a hidden variable but it doesnt work [code] //javascript function function save() { var imp = document.getElementById('yesno').checked; document.getElementById("schdate").value = document.getElementById('nextsch').value; if(imp == false) { …

Member Avatar for farahphp
0
103
Member Avatar for ulrik04

I've made this Supaplex-like game, but I have a problem. I want to have more levels, so I've made that when moving to the next level, it clears the vectors with all the objects, and putting new objects into. this is my code for moving to level 2: [code] void …

Member Avatar for ulrik04
0
111
Member Avatar for Rotvailera

Hello. First sorry for bad english. Can somebody help me with this: Using Bisection method find one real root for f(x)=x^9-x^7+2x^2-1 xE [0;1] I have to write a program in c++ witch founds me the root. Please help me. Again sorry for the bad english

Member Avatar for Rotvailera
0
104
Member Avatar for cetan

Please help me with this... it's a nasty problem! I'm converting a DLL-test tool for the company I work for, originally build in VB6, to VB.NET In the old tool the method CallByName is used to invoke a method in the DLL: [CODE] CallByName(objDLL, strFunction, VbMethod, arrParameters) [/CODE] The arrParameters …

Member Avatar for cetan
0
218
Member Avatar for nurulshidanoni

[B]exam TStu TExam [/B] 1 91 25 2 168 20 3 2080 46 4 680 56 5 15 12 6 680 22 7 166 20 How to sort in descending order like this.. 4 680 56 3 2080 46 1 91 25 ....................................

Member Avatar for Ancient Dragon
0
113
Member Avatar for kpnprakash

hello, i am developing a c coding for comparing two txt files(one key file with the transcripted or duplicete file) to figure out the wrong text in the transcripted file.Can anyone help me that how to develop the codes.

Member Avatar for Ancient Dragon
0
132
Member Avatar for bswapnil

[code=c] #include <stdio.h> void stripnl(char *str) { while(strlen(str) && ( (str[strlen(str) - 1] == 13) || ( str[strlen(str) - 1] == 10 ))) { str[strlen(str) - 1] = 0; } } int main() { FILE *infile; char fname[40]; char line[100]; int lcount=1,i=0; char mean[100]; /* Read in the filename */ …

Member Avatar for Ancient Dragon
0
132
Member Avatar for programmer321

[code] Hello, I need my C code Exe to exit only using Cntrol + C and the cross should be disabled. Can anyone help me with this. Regards. [/code]

Member Avatar for programmer321
0
151
Member Avatar for rajeshmalla07

what do u think whether .net is easy or java which will require less time

Member Avatar for cetan
0
104
Member Avatar for sonia sardana

Hi, I want to ask,I know vb.net not vb. I want to ask is there so much difference b/w vb & Vb.Net.

Member Avatar for cetan
0
257
Member Avatar for vadiraj

Hai i am new to dis programing word anybady help me out? in my appliction i want to implement autotext functionality like in ms word. im not getting how to implement it.... plz help me thanx in advance.

Member Avatar for cetan
0
88
Member Avatar for Abu-Dina

Hi all, First post on this forum so a BIG hello from me to all you IT Gurus out there! Need some advice solving a little problem I have with my database! Current setup: I have a person table that is made up of 39 columns. I also allow for …

Member Avatar for Abu-Dina
0
145
Member Avatar for xsoniccrackersx

Hi all, I'm new here but I am in need of some desperate help. I have a program that works perfectly but here is the problem: I cannot use the function getline to get a line in the input file and turn it into a string to be manipulated by …

Member Avatar for xsoniccrackersx
0
1K
Member Avatar for Kaushalya

Wish you all a good day.Currently i'm working on c++ project.I want to know how to convert string object to a character array.Also why ifstream object doesn't accept a string variable as follows, void split(String filename) { ifstream ifile; ifile.open(filename);//this fails }

Member Avatar for VernonDozier
0
103
Member Avatar for BroKeN

hi guys i want to make a tool bar wich is connected to one or more sites and links that tool bar it is kind of like a news tool bar but i want it to view some kind of website feeds and it runs a normal setup and installed …

Member Avatar for BroKeN
0
67
Member Avatar for obsolucity

I am having trouble with this assignment and was hoping I could get some help. I am not sure whether or not the output for my decomposed, unsorted, and sorted lists are correct. I'm not sure how to interpret the data in order to help justify why the big-o estimate …

Member Avatar for Laiq Ahmed
0
320
Member Avatar for lizhiyuan

dear all any one know howt to use openGL with vc++? i encountered some problem.thanks a lot. why glRectf(x1,y1,x2,y2) can draw a rectangle, here (x1,y1),(x2,y2),just two points,anone can exsplain to me? thanks. sorry to ask such question.no choice!

Member Avatar for Nick Evan
0
147
Member Avatar for GL.Za

At the moment im working on an app in vb.NET and its seems to working ok, however my client/sponsor would like a web-app with the same functions as well. So I would like to just use my vb.NET code in the ASP.NET app to save me time and stress. However …

Member Avatar for peter_budo
0
178
Member Avatar for lydia21

[CODE] <?php $hostname = "localhost"; $username = "hi"; $password = "bye"; $dbid = "jesus"; $link=mysql_connect($hostname, $username, $password); mysql_select_db($dbid) or die("unable to connect"); $name1=$_REQUEST['name1']; $result=("SELECT name FROM lydia WHERE nam='$name1'"); while($myrow = mysql_fetch_array($result)) { $first=$myrow[0]; echo $first; } ?> <html> <head> <script type="text/javascript"> function win() { var c='<?php echo $first; ?>'; …

Member Avatar for nav33n
0
81
Member Avatar for dskumar_85

hai i am using the following code to apply the watermark and save in specific location and then upload the image to database [code=asp][ byte[] img1 = new byte[fileupload1.postedfile.contentlength]; Httppostedfile image = fileupload1.postedfile; image.Inputstream.read(img1,0,(int)fileupload1.postedfile.contentlength); Bitmap bm1 = new bitmap(new system.IO.Memorystream(imd1)); Graphics grp = Graphics.FromImage(bm1); grp.smoothingMode = smoothingMode.AntiAlise; grp.Drawstring("name" ,new font("Arial",20),systemBrushes.WindowText,250,250); …

Member Avatar for peter_budo
0
81
Member Avatar for hacker9801

Hello. I'm using JS/DOM to create a map in a <div>, named map, like this: [code=javascript]var tile = document.createElement("IMG"); tile.src = "tiles/" + node.getAttribute("type"); tile.setAttribute("width", "32"); tile.setAttribute("height", "32"); tile.className = "brick"; map.appendChild(tile); [/code] It works, but the image breaks on a <br/> (screenshot: [url]http://i28.tinypic.com/6ynu3o.png[/url]) the image is a 32x32 tile …

Member Avatar for hacker9801
0
117
Member Avatar for mod_motox

Hi In my program one of my function returns a vector<int> ... I want to save it in to a vector<string>. itoa function does not seem to work here. Is there anything that can be done regarding this. Thanks in Advance.

Member Avatar for iamthwee
0
245
Member Avatar for Majestics
Member Avatar for jephthah
0
111
Member Avatar for rohit83.ken

I have a C file of the following .When I execute this in Fedora 7 version 2.6.21-1.3194.fc7 and arch =i686 I get following errors [root@kwi-11156f06184 Desktop]# cc test.c test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: …

Member Avatar for jephthah
0
576
Member Avatar for hudson5cp

Hi all, im a beginner to programming Python with Tkinter. I have a windows with 2 form: 1 Listbox and 1 Textarea that load a txt file. The Listbox contains a name of chapters. How can I make because click on the listbox scroll the text inside the textarea a …

Member Avatar for hudson5cp
0
754
Member Avatar for kpnprakash

hi, i am developing a vb application to print a bill using printer object.i have developed the whole application but while executing it showns an error(runtime error '380': invalid property value.please help me to do it. my codes are: [code=vb]Private Sub Command1_Click() MousePointer = 11 'mouse pointer busy while printing …

Member Avatar for kpnprakash
0
449
Member Avatar for soomedh

Hi I am facing a problem with listvariable of listbox. I have a global sequence is python. which I am assignning as listvarible to a listbox widget. Listbox is neither showing default nor runtime values of sequence. Can anybody help

Member Avatar for soomedh
0
180
Member Avatar for doggyx5

Hi, I am new to VB6. Currently I am suppose to write a programme for checking book stock.whenever if there is any insufficient books in the data i will have to gather all the insufficient name of any book in a msg and send out to the user. For my …

Member Avatar for debasisdas
0
260
Member Avatar for yonex

#include <string> #include <map> #include <iostream> using namespace std; struct arrtibute { const char* name; int id; }; typedef std::map <std::string, arrtibute*> AtrributMap; AtrributMap atrributeMap_g; const int MaxCount = 3; void InitData() { for (int i = 0; i < MaxCount; i++) { static arrtibute atrr; std::string str; cout < …

Member Avatar for Laiq Ahmed
0
137
Member Avatar for WonderWomen204

hey there. This is Erinn Hansen and I have a quick question about this assignment I am working on. I pretty much have it, except for it's a little backwards. This assignment is: Write a program which accepts the following user input: priceOfHouse, numMonths Print an amortization chart as shown …

Member Avatar for WonderWomen204
0
174
Member Avatar for fluidDelusions

Hello! I'm having a very difficult time with this problem. What I'm trying to do is generate a sine wave for a specific frequency and output it as raw pcm data to a file. The sine wave is generated as follows: [code] samples[i]=static_cast<int>(32767 * amplitude * sin(static_cast<double>(i)*scale) ); [/code] where …

Member Avatar for ims
0
1K
Member Avatar for christiangirl

I'm getting this error: term does not evaluate to a function taking 1 arguments on the bolded and underlined parts of this code. I know this code isnt that great...has some extra stuff it doesnt need, but I'm working on that. This is pretty much the first program I've made …

Member Avatar for christiangirl
0
119
Member Avatar for Race

I new to programming and am having troubles writing C++ programs and would really appreciate help with the following question. Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word longest length, …

Member Avatar for Race
0
76
Member Avatar for Megaz221

Hi, I'm back again. Anyways, I have been working on a little project on my own. But I have a question about something. How would jumble characters in a string around. Let's say user inputs a word computer , the program then jumbles the characters in the string to mpcotreu. …

Member Avatar for VernonDozier
0
280
Member Avatar for sreelatha

Hi, I m a newbiee to python, I would like to write one program, and i want that program should run automatically when my system time is 10 am. Is it possible to do it, if so can any one throw a light to help me Any kind of help …

Member Avatar for sreelatha
0
145
Member Avatar for adilz.cool

Hi , I am new to this community and also new to PHP. My problem is that i have installed apache 2.2.6 and also have php 5.2 version. also made all the changes in conf file of apache. I also did all the neccesary things on PHP side (placing & …

Member Avatar for adilz.cool
0
132
Member Avatar for sarojraj

hi friends, plz help me to change the Browser language/ system language. i've added the language in the browser setting but i couldn't change it from browser also.

Member Avatar for sarojraj
0
277
Member Avatar for swappy

I`m very much new with vb.net..I want to learn it so I was just doing it from VB 2005 for Dummies.I was just able to create a simple button and customize it...;) When I reached a chapter "Dynamically editing data with the Data Sources window" I was not able to …

Member Avatar for swappy
0
93
Member Avatar for iiz

this is the python code [CODE]os.popen("explorer.exe " + os.getcwd())[/CODE] would jsut need a conversion to c or c++

Member Avatar for iiz
0
98
Member Avatar for GPXtC02

i'm looking to get a first name followed by four scores and finally a last name, stored into multiple arrays (a char *array, a float array, & a char *array). getting the scores i understand however the names are pointer arrays. as far that goes what am i doing wrong …

Member Avatar for vmanes
0
495
Member Avatar for Raghavansat

Hi I am new to scripting.... i want to write a simple script file that executes the following command `java -version`.... i have to read the output given by this command inside my script.... [code] var_name=`java -version` echo $var_name [/code] just displays java -version i want the output of java …

Member Avatar for eggi
0
113
Member Avatar for leverin4

Ok, I have a program that uses three classes and a driver program, all compiled separately. One class is a Date class. The Date class header looks like this: [code=c++]#ifndef DATE_H #define DATE_H #include <iostream> using namespace std; class Date { public: // initializers Date(); Date(int day, int month, int …

Member Avatar for Lerner
0
130
Member Avatar for FallenPaladin

Hi, I am hoping someone will kindly help me out. I am new to ASP and need to create a connection to an SQL server 2005 database. I have failed misserably at web so far and is my worst subject on the course that i am doing. I understand that …

Member Avatar for techtix
0
110
Member Avatar for carly

ok....not too sure how i could do this one, i have to create a vb .net pc radio application but i have to create it so that the user can scan for radio stations. when in scan mode the radio will scan through frequencies and pause for 3 seconds when …

Member Avatar for bwkeller
0
123
Member Avatar for leroi green

Hi all, I got a code in 2 programs that allow me to open the file, write the file, then close it. BUT...I want to open it back up and read it then close it again and i don't know how to. Below is what i already have but i …

Member Avatar for leroi green
0
125

The End.