199,114 Archived Topics
Remove Filter ![]() | |
| |
am trying to delete an element from my list but am having a problem..i have managed to position my pointers well but av failed to to the actual element. i.e user enters a number to be deleted from the list..here's the bit of the deleting code that i have been … | |
Hey, when I run this code: [CODE=Cplusplus]else if(strcmp(buffer,"#itemSprite") == 0) { char* sprite_filename = ""; int trans_r; int trans_g; int trans_b; int width; int height; int numFrames; int numCols; int frameChangeDelay; fscanf(file,"%s",sprite_filename); fscanf(file,"%d",&trans_r); fscanf(file,"%d",&trans_g); fscanf(file,"%d",&trans_b); fscanf(file,"%d",&width); fscanf(file,"%d",&height); fscanf(file,"%d",&numFrames); fscanf(file,"%d",&numCols); fscanf(file,"%d",&frameChangeDelay); item->SetSprite(sprite_filename,D3DCOLOR_XRGB (trans_r,trans_g,trans_b),width,height,numFrames,numCols,frameChangeDelay); }[/CODE] I get an error on this line: … | |
I want to iterate through the rows in two csv files and test values. For every row in file 1 that has the same value in Cell A as a row in file 2, I want to check to see if the file 2 value in Cell C is larger. … | |
Hello! Ive been working on a little python program on a newbie course in python and ive come this far that ive created a program that reads from a file and counts the lines of the file (each line a players name with some stats). Then it asks for how … | |
I want to change the background color of the output screen in Dev-C++. How can I do that? I searched the Internet but didn't find any. Any help on which function should I use? | |
My first function returns (a, b). The second function must control it if (a, b) are True or False. If it is False call again the first function until the user put in right numbers. It dose not work. Is it a good idea to do that in this way … | |
I wrote a spell checker function, however I could not adjust its language. Although it has an adjustment part : object objLanguage = Word.WdLanguageID.wdEnglishUS; , it is not working. I live in Turkey and it works Turkish. Can you help me ? Thanks a lot. [CODE]public string[] Suggest2(string word) { … | |
the program asks to calculate the power of a number, for eg. if 2 is entered as the base and 3 is th power it should display 8. | |
Here i have problem with ctype.h library .I think i use correctly,but i ahve an error on it. This is the code. [ICODE]#include<iostream> #include <ctype.h> using namespace std; int main(){ char letter; int num; int isdigit(int letter); int isupper (int letter); int islower( int letter); int small=0; int capital=0; int … | |
I'm new at C++ programming and am working on an assignment. I've managed to compile my codes alright but got an error while testing the program. The error surfaced halfway through viewing details of a linked list, where suddenly, the program started printing weird characters while the computer emit beeping … | |
I slacked off in class while my teacher was teaching us how to algorithms and now I have my exams coming up and require help in writing basic algorithms. Please help me understand basic algorithms daniweb community, I'm counting on you :( | |
Hai All, i am having a list view with some row values(say 10) that i populated from the DB . what i want to know is how i can get one row and and its subitems at a time one after the other and its details(items) so that based on … | |
how to check whether an integer type variable doesnt store anything? like: Dim Count As Integer If Count = NOT NULL Then ..... but in vb.net 2005,there is no NULL allowed.. Thanks for helping.. | |
Hi, I am new to asp.net development, and i'm currrently trying to develop my first web application. My question relates to making my site compliant with html coding standards. To test the generated html from an asp page I put together simple master and content pages with only some text … ![]() | |
PLese help in using crystal report in vb.net 2005 | |
How can i delete the Combobox Collections programetically?????/ | |
Hi guys! I am currently having trouble in the final stages of an assignment which involves linked lists and dynamic arrays. The assignment involves adding books to a library. This means that each record has a title and one or more authors. I have worked out what I think was … | |
I have several issues going on I have played with the code, and I have tried to follow other code snippets / tutorials as examples, but I am unable to achieve the following: 1: when the browser is closed the session is terminated or set a timeout period of inactivity? … | |
Hi, First of all I am Sorry for such a long query. I am using mysql db.I wanted to display data present in the db.I am using two functions showdiv() & hidediv(). For example,I have 26 tables in my db say from A-Z.In each table it has some info.for examp, … | |
hey Frnds I m developing the antivirus,But i do not know how to start scanning.I want that when i click on scan button C:\ Starts Scanning. Plz send me the code,I will be very thankful to you. | |
I recently deployed a program [icode]http://www.netbeans.org/kb/61/web/hibernate-vwp.html#01[/icode] in a pakage containing *.hbm.xml's and backing beans a HibernateUTIL.java class was created. in the IDE the table describes proper primatives that populate colm and rows. yet (deployed) a table displays column headers in browser with no data. an exception states HibernateUTIL [icode]System Messages … | |
Is there any way to check the first $NUM chars of a variable? For example if I have a veriable which contains VAR="LONGMORE LTD" Can i check the first character begins with L? | |
Hello all, I am not at all by no means a good scripter, I just started last week... I am using Nagios and need to write a script using wget to pull webpages and test the response time. I need to write a script that pull the response time from … | |
Can some please help me with this script.. it will not show the scrolling text in firefox browsers.. [code] <script type="text/javascript"> <!-- /* Typing Scroller */ //Secify scroller contents var line=new Array() line[1]="This is an awsome script" line[2]="It brings up the text you want..." line[3]="One letter at a time" line[4]="You … | |
Here is my problem; I do not know hwere to start. I have written pswudocode before, for a currency converstion program but I am unsure if I am doing the same thing with this one. Can someone please just tell me how to start this, do like the main module, … | |
Hello guys. I'm having a bit of difficulty with adding totals. I know how it's suppose to work but I'm not seeing what I'm doing wrong. If I want to add my total each time I hit the total button how can I do it. When I try to add … | |
Following code is implementation of stacks.. but its giving two errors [code=cplusplus] # include<iostream.h> # include<conio.h> # define SIZE 20 class stack { int a[SIZE]; int top; // Top of Stack public: stack() { top=0; } int overflow() { if(top==SIZE) { return (1); } else { return (0); } } … | |
Im currently trying to work with a program that reads raw DV and dumps each frame in the form of a PPM file. I need to read the PPM's into OpenGL Textures and display them. But that is not the problem. The program has the ability to dump all of … | |
I have a function: void CreateCostGrid(vector<ScanPoint> &Data, int whichcol, vector<LiDARScan> &LiDARGrid); That I call like this: CreateCostGrid(TestScan.getColumn(GoodCols.at(testcol)), GoodCols.at(testcol), ModelScans); But I get this: error: initial value of reference to non-const must be an lvalue CreateCostGrid(TestScan.getColumn(GoodCols.at(testcol)), GoodCols.at(testcol), ModelScans); (There is an arrow underneath the T in TestScan, i guess indicating that … | |
Hi there, how can I open recent power point presentation and recent access data base from a c# application , in other word the last opened file in both , I could do it with the word using Application.RecentFiles, but it was not for the power point any articles that … | |
hi, i have to do image read and write in Turbo C. i am very new to C. so please help me out as to how to do these operations and provide some sample code if you have any.. i have a vague idea that it can be read as … | |
can u give me da code in "c" to find the contents of floppy............... | |
Hi everyone, Can anyone tell me how you can stop users from URL Hacking your website with php (sessions)? So for example if you have a password and username form on the front of your website and only want authorised members to gain access to your web site. So for … | |
I'm trying to represent a number such as [B]1.45E-15[/B] in C... How do i do this... I know there's pow() & exp() function but i don't think they are useful here... | |
Code Should Explain It self.. [CODE=C++]#include <iostream> using namespace std; int main() { unsigned int digit; for( digit = 0; digit < 10; digit++ ) { /* I WANT THE OUTPUT TO CARRY ON UNTIL DIGIT == 10 & OUTPUT * ** *** **** ***** ****** ******* ******** ********* ********** … | |
I'm trying to add a KeyListener to my JFrame, but it doesn't seem to work when I have a JButton floating around [code=Java]import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.SwingUtilities; public class Testing extends JFrame implements KeyListener{ public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run(){ new Testing(); … | |
I'd imagine there is a much better way to do this... [code] vector<double> Model; //code to fill Model vector<double> V1; for(int i = StartModel; i <= EndModel; i++) V1.push_back( Model.at(i) ); [/code] | |
Hi, When i write any code has if else statement , and run it na error appeatrs and say that else doesn't match with if [U]or[/U] illegal else without matching if. I don't know where is the problem exctly ,and you should know that i don't put } in these … | |
Hi, I need to create list of links, like: Link1 Link2 Link3 ... which could be dynamically created during runtime. Is there any standard .Net control that can contain LinkLabel objects so that I can easily add them and remove? | |
Hi, We have developed one application which is developed in VB .Net in VS2003,VS2005 and VS2008 version. The application which is build in VS2003 and VS2005 are perfectly worked in Vista except for application developed in Visual studio 2008. This application is accessing the registry. It giving error only application … | |
Im trying to carry out input validation on a piece of code and have come across an issue. Basically for the 1st input I used getline for the string and then for the 2nd input I use cin for the integer. I am aware you can convert the integer from … | |
Hello, I am trying to output simple sound through the internal computer speaker. Is there a way to output certain sounds and control the frequency of the sound as well as the time it lasts? I'm using Windows XP Pro but is there a "standard" way to do this? Thanks … | |
Im having problems with getting the page to stop progressing to the asp one when the user enters the text outwith the limits i.e. no data entered. Could anyone give any guidance? Cheers [code= html] <html> <head> <title></title> <SCRIPT LANGUAGE="VBScript"> dim validation Function MyForm_OnSubmit validation = False MyForm_OnSubmit = False … | |
Hello, I have a relatively straight through program where I collect some integer data and pass it to an external file. The problem that I have is that what I really need to do is to pass that value divided by another integer (255 to be more exact). I tried … | |
Please everyone i need some help here, why do i keep getting this error . i want the informations submited to the database. C:\RMI\Client>javac *.java CustomerInformation.java:121: ';' expected String insertDetails(cid, name, dob, cms, address, city, state , zcode , cnum, nod); ^ | |
The problem is I am not very educated in Qbasic and my teacher has given me a project of making a hangman game. But I don't know how to so please I need your help. I need a simple hangman game with figure of a hanging man using line and … | |
I want to do something like this [code] #include <string.h> #include <iostream> using namespace std; int main() { MyFunc("test"); return 0; } void MyFunc(const char* Filename) { cout << strcat(Filename, ".tst") << endl; } [/code] but it tells me that my const char* cannot be used where it is expecting … | |
Hi all, I was wondering if somebody could help me... I have a form field which I want to lock down so users can only enter a specific combination eg. first character is a letter - can be either B,C,W,F,A,H which is followed by seven numbers. I have got some … | |
Please I need a site where i can download Visual c++ free. I prefer the offline version of this download. Or give me a guide line on how i can use borland c++ to create a form for my program. You can email me at [email removed] Thanks |
The End.