132,726 Archived Topics
Remove Filter ![]() | |
Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards. Software Development pascal | |
I am trying to time the execution of a quicksort algorithm in C++ but for some reason it constantly returns 0 for me, which clearly can't be right! I don't know where I am gooing wrong, so any help would be greatly appreciated!I have the code done for arrays of … | |
Hello, I am looking into the matplotlib module to plot my data. The graph that I am interested is in the following code. Now I want to mention some labels over the each bar plot mentioning some string and values is there any function to do? Also I want to … Software Development python | |
Thanks for helping me out with my coding last time. Now I have an error with a class not found for my servlet. In the log, the following shows up: [CODE]SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@1c0e45a cart.CartServlet java.lang.ClassNotFoundException: cart.CartServlet[/CODE] I've compiled all of the … | |
hi, i have a small problem with the rand operator. at first i tried using it without srand but gave me the same value each time. i have inserted srand(time(0)); but my compiler throws me up these errors: 1>c:\users\ben\documents\university work\year 2\c++\code\myc++\spritelab\asteroidsgame.cpp(17): error C4430: missing type specifier - int assumed. Note: … Software Development c++ gaming visual-studio | |
Hi friends, I was trying out some inheritance related stuff and found something. I just want to know the reason why. I have a ParentClass and a ChildClass. Both have an integer named [B]commonVar1[/B]. Also both have a getter method of the same name. Here goes the code. [CODE]class ParentClassOT … Software Development c++ | |
The problem is: Given two sorted lists, L1 and L2, then how i write a procedure to compute L1 n L2 (intersection) ? can anyone help me , please? Software Development | |
I'm working on a program using heaps and I have a few errors that I can't quite figure out. The first is error C2143: syntax error : missing ';' before 'using' line 2 and the second is error C2011: 'Heap' : 'class' type redefinition line 8 [CODE]#include <iostream> using namespace … Software Development c++ | |
Hi, I am trying to create an editor using JTextpane. Now I need to show a dynamic pop up menu while pressing Ctrl + space. But the problem is that I can trigger the pop up menu only by right click of mouse. The code snippet that I used is … Software Development java | |
I have a little program that I was testing strings with, for some reason when I add to much to a string variable, and run the program, the console cursor just flits around the screen (and the console doesn't clear, which is before any output was even supposed to happen), … Software Development assembly | |
Hi, I don't understand the need for the while statement. Any help would be greatly appreciated. [CODE]double michel() { double x, y; do // The loop computes points on the graph of y against x. { x = 53.0*rand()/RAND_MAX; // x is the momentum. x is randomly generated. Min x … Software Development c++ | |
Okay, So I'm currently working on my A2 computing project, and I am having slight difficulties updating and saving the data in my database when it is entered on a form in VB. I cannot find any reason why it wouldn't work, but if someone could suggest a better way … Software Development dataset open-source sql vb.net | |
I have a foreign key linking two models. One is called ZumaDirectors, the other ZumaConsolidated. For some reason I cannot access fields on ZumaConsolidated from ZumaDirectors using foreign key. I can do this without a problem on ZumaDirectors with a foreign key linked to another table. I want to be … Software Development python python-django | |
Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments … | |
What free C++ programming tools do people recommend? And just to check I would be able to run my programme from this tool? Software Development c++ | |
please help me to create a student information portal using stucture and union program in c.it should contain five sudents. *for inputs we should use struct and for output we should use union and it also should have a controls...previous page, next page and escape for exit. i don't know … Software Development c | |
In my class there are 2 objects, I have to get the one which has the smallest size with a method that begins with [CODE]public String smallest()[/CODE] so what I've been trying to do is roughly the following... [CODE]if (object1.getSize() < object2.getSize) { return object1.getName; } } if (object2.getSize() < … Software Development java | |
[COLOR="Green"][B]hi everyone .. I hope to help me :) .. i have java code.. the main idea of it the user selected from menu the equation (liner - Cubic - Quadratic ) need of them and then user enter the value of x and y and then draw the main … Software Development java java-swing | |
I want to write a program that asks the user to enter his date of birth and print the zodiac sign on the screen. The program should allow the user to enter his date of birth in the MM/DD/YYYY format. The program should also print the user's age on the … Software Development c++ | |
Hello, It seems like a simple task, but I can't find a simple answer. How do you find out how much extra space you have on drive "X:\". Is there any simple command like; [ICODE]Size(X:\);[/ICODE]? Or can someone just give me a few lines of code, NOT 53! I just … Software Development c++ | |
hi all.. how i can check there are palindrome in textbox. e.g : i input "daniweb a bewinad" thanks and please help. Software Development mathematics visual-basic | |
[ICODE]Dim li As ListItem Dim dTotal As Integer For Each li In ListView1.ListItems dTotal = Val(dTotal + CInt(li.SubItems(3))) Next txtgrade.Text = CStr(dTotal) 'returns the total value [/ICODE] data in LIST VIEW: 90 8 50 45 I used the codes above but I can only retrieve the values (45) ?? what … Software Development listview visual-basic | |
I have problems to play video files from different cameras with the media player supplied with Delphi. Does anyone know of a free compnent that I could test in stead? | |
Hello Coders Need help I want to remove the lines that contain specific text. (Whole Line) Eg: Textbox1.Text = [code]learn lines dani knows everything web knows lines lines knows daniweb everything dani everything lines [/code] So textbox1.text will become and remove whole line that contains the word "daniweb" [code]learn lines … Software Development vb.net | |
i am trying to build a replay feature to my chess game. The way the chess program works in a nutshell. is that i have an array of the chess pieces that are printed on a board in winforms. here is a function: [CODE] public void PrintPieces(Pieces [,] pieces) { … Software Development | |
How to display images from a folder along with image names in C#?? Plzz help Software Development c# | |
Is there any way to overload the assigment operator or it is not possible in java? Thank you very much Software Development java | |
Hello, I have this code: [code] void GetProcId(char* ProcName) { PROCESSENTRY32 pe32; HANDLE hSnapshot = NULL; pe32.dwSize = sizeof( PROCESSENTRY32 ); hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); if( Process32First( hSnapshot, &pe32 ) ) { do{ if( _stricmp( pe32.szExeFile, ProcName ) == 0 ) break; }while( Process32Next( hSnapshot, &pe32 ) ); … Software Development c++ | |
Hi, I wanna ask.. I want to make a procedure of 1 second delay for 8088 so far here what I have [CODE]debounce: PROC NEAR PUSH CX delay: MOV CX, 6000H ;24576 in decimal L1: LOOP L1 ; POP CX RET debounce ENDP[/CODE] so, can someone please help me..I don't … Software Development assembly | |
I have a DataGridView on a form that updates the datagridview automatically and will allow the user to manually edit the information. I need to save the information in the DataGridView somehow. I don't know what the best option would be. I could of course use a file to store … Software Development | |
![]() | Is it possible to do that? If so,can anyone give a theory or something? Thanks :) By the way I am using turbo compiler 3.0 Software Development c++ ![]() |
I would really want some advanced C++ programmer to answer me this question, so please help me I really need this answer. How can I really start programming with C++? Of course, I still have a lot to lean. I just learned classes and SOME of inheritance features, I write … | |
Sir, how to take input from user as large as 2^64 and the perform its calculation. Please help me. Software Development c | |
I have found numerous examples involving only arithmetic operations but mine requires to deal with functions - min(x, y), max(x, y), sqrt(x), abs(x), fact(x). What I don't understand is how my program can interpret those functions and set the precedence for them. Examples: 4 + 5 -> 4 5 + … Software Development c | |
This snippet is to create a user control that will only take numbers. Numbers will accept decimal values, for which the NumberBox is validated to take only one. The implementation for the control is the same as it is for the TextBox, since it is inherited from this class and … Software Development vb.net | |
And sorry for double-posting...It's years of frustration and waiting that's compelling me to desperately get an answer here. Thanks for all who are even willing to try and help because I've asked for some tips about this on countless other sites like this and no one has actually helped. I … | |
Not really understanding the concept, why did they use "Person *pPerson = new Person("Susan Wu", 32);" and where did ".length();" come from? Also when "Rectangle *pRect" is put into a parameter, pRect is pointing at the address of the object rect, right? [CODE] #include <iostream> #include <string> using namespace std; … Software Development c++ | |
Hey guys, I got this code to upload an FTP file which works great, but what do I do when I wnat to upload the contents of an entire folder? I mean, I could make a for-each but that would mean disconnecting and reconnecting to the FTP server alot of … Software Development file-stream vb.net visual-basic | |
I do not understand why the pointer addition is failing. [CODE] char *pipebuf=new char[40001]; CommandRobot *cr= (CommandRobot*)pipebuf; cr->command=2; DWORD *rooms=(DWORD*)(cr+1); *rooms=100;[/CODE] For some reason after executing the value of pipebuf only contains the value of command, it does not contain the value of 100; Yet, when I remove the new … Software Development c++ | |
I am trying to add two numerical char arrays such as: [CODE]"124" and "589"[/CODE] I wrote functions to reverse the string and add the strings, and it works for strings like "123" and "456", but when the last digits are greater than 10, I don't know how to carry it, … Software Development c++ | |
Hi everybody, I have a connection in my database, in this I have an interface which checks if a record has already been inserted in a database or not, when I implement this in a result set, it throws an illegalState Exception, I also have another result set doing a … Software Development java | |
Write a Python function that will take a string of the form “4/11/2010” and print the corresponding date in the form “Apr 11, 2010”. Make use of strings, lists, and appropriate operators/methods. In particular, define a list that contains the month abbreviations so that you can convert without needing any … Software Development python | |
I am working on a project and coding in Python 3.1 where I need to find a string in a file. I have already considered reading the file to a string and then using rfind() on it, but that does not seem to be efficient, seeing as how I expect … Software Development file-system python seo | |
hello all, I am trying to make a menu driven program that uses a while loop and a switch in main. When i choose #1, the code seems to work. However when I type in #2, and enter data, the program goes into an infinite loop, because the menu is … | |
What happens when I set the value of an integer to NULL? I print it out / debug it, i get the value zero. Even I can use the NULL assigned integer to initiate another integer. Well, then what is the point of being NULL? Why set it to zero? … Software Development c++ | |
can u help me in my assignment: [B]make a program that would display the figure as shown. use a WHILE structure and a method to implement a task.[/B] this is the one i made: please help me what are the missing codes there.. #include <iostream.h> #include <stdio.h> #include <conio.h> using … Software Development c++ | |
Hi.. i am getting authentication error while sending mail from my java application.. my java application makes use of SMTP server.. how to solve this..???? Software Development java | |
i created a class that i want to serialize each time a move is made on the chessboard. [CODE] class ClassMoveToSerialize { int[] StartPosition; int[] EndPosition; Dictionary<int[], int[]> serialized; public void DataToSerialize(int rowStartSerialize, int columnStartSerialize, int rowEndSerialize, int columnEndSerialize) { MessageBox.Show("" + (number = int rowEndSerialize+columnEndSerialize)); //it isnt finished, i … Software Development |
The End.