199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) { … | |
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 … | |
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 | |
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 … | |
[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 .................................... | |
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. | |
[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 */ … | |
[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] | |
what do u think whether .net is easy or java which will require less time | |
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. | |
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. | |
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 … | |
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 … | |
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 } | |
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 … | |
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 … | |
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! | |
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 … | |
[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; ?>'; … | |
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); … | |
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 … | |
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. ![]() | |
[B]Is there is any way to copy out put in graphics into a paint file(bmp)?[/B]:) | |
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: … | |
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 … | |
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 … | |
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 | |
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 … | |
#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 < … | |
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 … | |
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 … | |
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 … | |
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, … | |
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. … | |
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 … | |
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 & … | |
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. | |
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 … | |
this is the python code [CODE]os.popen("explorer.exe " + os.getcwd())[/CODE] would jsut need a conversion to c or c++ | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.