132,726 Archived Topics
Remove Filter ![]() | |
Hello all, I'm trying to approximate a sine wave using bezier curves (for rendering speed over drawing many straight lines). I'm trying to follow the non-C# code specified down the page at: [url]http://commons.wikimedia.org/wiki/File:Harmonic_partials_on_strings.svg[/url] [code=C#] // Produces a sine path as flat point array {PT, PT[3], PT[3], ...} private static List<PointF> … Software Development | |
I've tried like 100 different ways but I can't figure this out. I need each of these variables initialized and defined before they are used. Here is the bit of code: [code] int i, a; char etxt[100]; HWND hwndListBox = GetDlgItem(hEdit, IDC_LIST); i = SendMessage(hwndListBox, LB_GETCOUNT, 0, 0); //gets the … Software Development c++ | |
Hello! I'm trying to make a command line program that converts Celsius to Fahrenheit, and then asks if you would like to convert another number. This is the code I have (below) however when it gets to the point of asking if you would like to convert another number, no … Software Development c++ | |
Our organization has hundreds of project numbers. I would like to create a program that will let me store the numbers along with keywords in a database, and then have the option for predictive searching. By predictive searching I mean something similar to how when you start typing something in … Software Development | |
hi. I'm a newbie in shell scripting as well as the *nix OS. I just wanna ask about the symbol [B]#![/B] that I saw in many shell script examples. For instance, [ICODE][B]#![/B]/bin/bash[/ICODE]. What does the [B]#![/B] symbol means? What's the meaning of [B]$1[/B], [B]$2[/B], [B]$3[/B] symbols? and what does the … Software Development shell-scripting | |
I use TRegExpr v.0.952 and now i want use RegexBuddy, but i can't replace code. Can u help me? [CODE] var Temp: TStringList; Index: Integer; regex: TRegExpr; begin Temp:= TStringList.Create(); regex := TRegExpr.create(); regex.Expression := '(?m)(?g)^ftp:.+'; try for Index:= 0 to FList.Count - 1 do begin regex.exec(FList[index]); if (regex.Match[0] <> … | |
Hi I am trying to teach myself C++ windows programing, ie creating windows applications (is that GUI or API or neither :P). I know the fundamentals of C++ programming but looking at some windows code it looks really difficult. [B]Can you suggest any good books or maybe some tutorial sites … Software Development api c++ gui windows-api | |
Is there a way to use the NumericUpDown control without a maximum or minimum value? Software Development | |
I know how to make random numbers. and How to make random numbers in a specific range. BUT!!! How can you display 'x' random numbers in a given range and make it so the output display lists the numbers in groups a 'y'. For example: I want to display 25 … Software Development c++ | |
hello everyone, my file has many long lines witth 12 ccolumns like: gnl|dbS|13484118 gi|62750812 100 16 .......around 12 columns gnl|dbS|13484888 gi|62750812 95 20 ....... gnl|dbS|22484118 gi|62750812 92 20 .......... I want to grab the lines where values of column 3 lies between 90 - 99.9 in the file and store … Software Development python | |
Hi All User Please Translate C++ To Delphi Thank You Very Much <snip> | |
i am wondering how to create a gui that is something like wxWidgets. I know how to use the windows api and all of that so i am not asking how to create a button or edit box but really am asking how to create a pixel on the screen … Software Development api c++ gui windows-api | |
Hi everybody, I have a problem in include path. i want to keep my all header file in folder named myInclude and include it like #include<myInclude/header.h>, Is there any possible way to do this, if there is than please tell me the step. thanks in advance........... Software Development shell-scripting | |
Hello, I have lots of xml files in the same format and I need to modify a xml tag in these files. i loop over the files and apply sed to the files to make the modification but CPU goes to %100 while doing this. I think I'm doing something … Software Development shell-scripting unix xml | |
I don't know why my interrupt handler doesn't work... can anyone of you please help me? ): Below is my code (the highlighted part is my interrupt handler): #include <hidef.h> /* for EnableInterrupts macro */ #include "derivative.h" /* include peripheral declarations */ #include "IIC.h" #include "LEDs.h" #include "ICG.h" #include "Delays.h" … Software Development c | |
um ive been asked by my prof to do a program that could possibly arrange 5numbers from lowest to highest..but im kinda new with programing can sumone pls help me THNXX Software Development visual-basic | |
Hi, I have my own widgets ( simple one) and want to put them in one file and call them from second file. This is like easygui but with pyqt4. My problem - when I call my widget from second file nothing happens. This is file with widgets (example). [code … Software Development python | |
I have to open a file named "axb.txt" I have user input a and b as strings i have concatenated the string using string str = a + "x" + b+ ".txt" now i need to open the file. it does not open with fopen(str, ios::app) because str is not … | |
Hi there I have the the following database structure: [B]Table Product[/B] Product_ID - Product_name - Product_issue_date [B]Table Sale[/B] Product_ID - amount - date Now i want to report the total of each product. The result should look like this: Product 1 - 5,000 Product 2 - 3,500 Product 3 - … Software Development vb.net | |
Okay, so I have my program almost complete. I can get it to do everything except use the computeAverage. I know it works because if I hard code the arrays, I can utilize that and it will work. However, I am having to utilize what I pull from a .txt … | |
help T_T topics regarding software driven hardware proposal for IT thesis... Software Development visual-basic | |
hi.. i need to read a file.. in tat file i ve to read all strings and compare it with the given string.. hw 2 read strings in file exculding whitespaces n compare it..? help me...!!!! Software Development c++ | |
Good afternoon, I have created a little java app in netbeans that I would like to use on a PC without netbeans. Therefore I am looking into how to make an executable out of the project, I found something called "javalauncher" that is suppose to bundle the class of my … Software Development java java-netbeans | |
[code=cplusplus] #include<iostream.h> #include<conio.h> float si(int p,int r,int t) { return(float)(p*r*t)/100; } int main() { int p,r,t,s; cout<<"enter the p,r,t"; cin>>p>>r>>t; float s=si(p,r,t); cout<<"simple interest="<<s; } getch(); } [/code] iam new to c++ and i was going through UDF's when i pondered upon this problem of calculatin the simle interest ... … Software Development c++ | |
Hello, i am working on a macro where i need to copy data from a sheet to a different sheet in the same workbook. i normally use "vlookup" or "Sumif" or "Sumproduct" formulae to do the job. the datas is quite large and it takes ages to refresh the data … Software Development visual-basic | |
How did you disable the Unicode, I used the same program and get the same errors, I tried to disable the Unicode by going to the properties of the program, and unticked the inheritance, but I still get the errors? | |
Dear Sir, Could you tell me how can I do this question? Write a program that will readin three numbers nd output a message indicating whether or not the numbers were entered in ascending numerical order. (Equal entries are regarded as being in order, e.g. 4 4 5 is OK). … Software Development pascal | |
Hii Friends, I do not know how to use FILE for writing data. I have tried something but i missed something to write and i do not know what to write now to get data inside file. Help me plz. Regards, Shivi circle.cc [code=cplusplus] #include <iostream> #include "circle.h" using namespace … Software Development c++ file-system | |
Hi I am trying to write a file writer inside my mouse event code. I am trying to use the file name that comes from JTextField and write it into a file. Here is my code:- [code] private void jButton2MouseClicked(java.awt.event.MouseEvent evt) { JFileChooser chooser = new JFileChooser(); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); chooser.showSaveDialog(this); chooser.getSelectedFile(); … Software Development file-system java | |
hi, just a quick question can somebody please tell me how to restrict the output of the code below to 2 decimal places. [code]VolumeCalc.Caption := FloatToStr(StrToFloat(EngineSizeVal.Text) / 2 / StrToFloat(CylNumVal.Text));[/code] thx for the help. Software Development pascal | |
Hi guys.... i new here... i would like now how can i do one stuff easy--- I wanna do login windows... were the user put is Name and Passoword... when he click's OK.... it send me a email whit the stuff he right..... how can i do that? thncks ;) Software Development visual-basic | |
Hey C++ guru's... I'm pretty new to the C++ world and would really appreciate some help... ... I'm trying to build a general tree (a tree with one root and N children), I've written the code and compiled it quote/un-quote successfully... ...I say that because I am faced with a … | |
hai friends, I dont know how to create database dynamically in vb.net.(if a button is clicked 4 databases in access or sql has to be created).similarly by clicking the delete button the specified database should be deleted.can you help me out with the coding. Software Development vb.net | |
Hello all, :) directly here is the issue: i want to choose the path to my database file for my DBdataset in a VB .net project during the runtime in the first form, and then i want to use that file in some other forms. the file could be on … Software Development file-system vb.net | |
I'm trying to declare a std::map that is keyed by a char and has a function pointer as a second parameter, these functions would be a member function of my class. But for some odd reason I cannot call the functions when extracted... So, I have a class A as … Software Development c++ | |
hello every1. i want the text box of form1 to be accessible in form 2 without declaring it as public. ive declared it as protected. but how do i inherit it in form 2. Software Development vb.net | |
i need ur help to write c++ porgram... this is the topic of it """"" Write a C++ program that calculates the perimeter and area of simple geometrical shapes based on the user’s selection. Let the program handle the perimeter and area calculations for circles, and Parallelograms. The program should … Software Development c++ ![]() | |
Hi All: I have a large number of elements to be stored into vector or basic string(delimited by \n). I need to search for an element and I would like to know what is faster: A:[CODE]std::string str = "\nElement1\nElement2...element1000\n" str.find("\nElement3\n");[/CODE] B: [CODE]std::vector<string> v; v.push_back("Element1"); v.push_back("Element2"); .... std::find(v.begin(), v.end(), "Element3") != … Software Development c++ ![]() | |
HEY guys, I can't figure out why my code doesn't compile, I'm trying to read a text from a file, count the words. any help would be approciate it thanks [code] #include<iostream> #include<fstream> using namespace std; // global constants const int MAX_ROW = 150 ; const int MAX_COL = 80 … Software Development c++ ![]() | |
hi! I'm trying to get the following C++ class (contained in a DLL): [code] __declspec(dllexport) class ThreadManager { public: __declspec(dllexport) static UINT32 setThreadPriority(UINT32 tPriority); __declspec(dllexport) static UINT32 setPriorityClass(UINT32 pClass); __declspec(dllexport) static UINT32 setProcessorMask(UINT32 pAffinity); __declspec(dllexport) static UINT32 changeMATLABSeed(UINT32 inputSeed); static BOOL setHandles(HANDLE* thread, HANDLE* process); __declspec(dllexport) static BOOL testFun(UINT32 testInt); … | |
Hey i m reading tutrial about rucursion and got code whish isnt complicated or anything but i dunno why it prints the way it does [code] /* recur.c -- recursion illustration */ #include <stdio.h> void up_and_down(int); int main(void) { up_and_down(1); return 0; } void up_and_down(int n) { printf("Level %d: n … Software Development c | |
i an writing a room class java code that returns the temperature status of the room and return if a lightbulb is on or off. how do i write the method for the temperature? public class SittingRoom { String SRlightBulb; int SRTemperature; public SittingRoom() {String InitialStatus = null;int InitialTemp; SRlightBulb … Software Development java | |
this program divides the array into 6 segments of two elements each.but with each iteration the new array is not overwritten and it keeps displaying the first two values of the array 'array' [CODE] class tryy { public static void main(String args[]) { double array[]={12.43,34.34,4.432,9.433,4.787,4.2987,57.93,4.279,8.379,83.472,8.9867,879.56}; for(int i=0;i<array.length;i++) { for(int j=0;j<(int)(array.length/6);j=j+2) … Software Development java | |
Dear Sir, Please find the attached document for your reference. Could you tell me what is wrong of my answer? [code] program Project1; {$APPTYPE CONSOLE} uses SysUtils; var balance, posNeg, positive, negative: integer; begin randomize; writeln('Get average balance'); balance:=random(10000); posNeg:=random(2); if posNeg=0 then begin balance:=balance*-1-30; end else begin writeln('Positive balance.'); … Software Development pascal | |
I was working on an assignment, and I had finished everything and was cleaning up the code by just adding some comments to it and everything, and when I tried to run it again afterwards, it came up with an error that said "Debug Assertion Failed!" It says "Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" … Software Development c++ | |
I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help? Software Development shell-scripting | |
what will be the initial value of the fields created in a new table(dao)? how to change it? Software Development visual-basic | |
I have been working on this program for my class and I have everything working fine it seems up until I get my New Balance output. What I get for the output is below. Date Account Type Amount New Balance 06/19 9858-5420-3025-7452 P 5500.00 -2694.35 06/19 1111-1111-1111-1111 C 430.00 -2264.35 … | |
Hello, I am currently just getting started in learning my first programming language. I searched the web and decided to start with the book "The C Programming Language". The problem is I am already lost. I have no idea how to set up the Hello World program. I have a … Software Development c | |
Hello.. How can I read a link list from a file without reading a garbage node? I don't know much about how file works.. This is my code fragment: [code=c] for(p = A; flag != 1;) { *p = (LIST) malloc(sizeof(celltype)); if((fread(*p, sizeof(celltype), 1, fp)) == 0) flag = 1; … Software Development c |
The End.