132,726 Archived Topics
Remove Filter ![]() | |
haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz Software Development java javascript | |
For the string: "Number(1234)". I am looking for to extract "1234" and "Number" I have understand that I need to know where the positions is for ex "(" and ")". The code I have done so far look like this: [code] std::string Value10 = "Number(1234)"; size_t found1; size_t found2; found1 … Software Development c++ | |
hey guys How do u define a 2by 5 array..is it mean int t [2][5].. how do u figure out how many elements in the array? Software Development c | |
i wrote a program called trivial.c that takes an integer "time" from the command line and does nothing but loop for 5 times and sleep for "time" seconds in each iteration. the loop looks something like this : for(i=0; i<5; i++) { sleep(time); } then a file trivial.data that contains … Software Development c | |
I've been having troubles in getting 2 variables from a function. I've tried to put 2 variables in a function and somewhat code it like in vb put it doesn't save it, even if i declare 2 variable as globals outside of the main. and also my loop statement is … | |
I am having a strange problem. Please help me. I have a code which tries to solve the queen's problem. It is wrong so please dont bother yourself with the code unless you are interested. The problem is that when I execute this wrong code, it goes into infinite loop. … Software Development c++ | |
Hello, When I have a created a socket (sd) connection and opened a file (fd). How can I send over a file? Create a buffer (char buf[BLOCK] ????)and send over block by block or so? And if so, what is most efficient block size? Cheers! Software Development c file-system | |
I did HANDLE hHeap = GetProcessHeap(); which gives me the handle to the heap of the process then i did DWORD dsize = 468178553; (near pointer)PBYTE pBuffer = (LPBYTE)HeapAlloc(hHeap, 0, size); but here i got pBuffer as NULL and then i did _stprintf( (TCHAR*)pBuffer,"", , ,); here my program crashes.............may … Software Development c++ | |
/*Your task is to create the special functions used by this routine, which are shown in blue in the above program. You need to write the functions so that they can be used by the main routine as shown. In other words, do not change the way the functions are … Software Development c++ | |
hello guys this is my first post. I was wondering if you guys can help me out validating this peace of my crazy programming. Just taking a class this semester, and i have looked around every where but i cant seem to find a standard it seems like there are … Software Development c++ | |
I'm not seeing my bracket problem at all! [code=java]import java.util.*; /** A class to represent an ordered list. The data is stored in a linked * list data field. * @author Koffman & Wolfgang */ public class OrderedList<E extends Comparable<E>> implements Iterable<E> { /** A linked list to contain the … Software Development java linked-list | |
how can i Enable the F2 or f3 in my keyboard when i press the F1 in my keyboard?? btw this is my code i want to enable the F2 when i press F1......I've got an error when i press the F2 first before the F1....sorry for my stupidity it … Software Development visual-basic | |
I really don't understand what I'm doing wrong. I've made windows before..and never have had this problem. The code complies fine, but when I run it I get this message.. java.lang.NoClassDefFoundError: smartMonster Exception in thread "main" right now all I want is a window to pop up with a button. … Software Development java java-swing | |
Hi All, I'm using MSFlexgrid in my program. I'm using Click event of it. But when I click on blank area after last row it still fires click event and focuses on a column. Is it possible to block the Click event when I click in blank space or block … Software Development visual-basic | |
I have a modual(Is that the right term?)called WordPlay which has severl functions for exercises in Chapter 9 of "How to Think Like a (Python) Programmer". Below is my code for Ex9.3.2, which has the user input a string letters and then searches a .txt file(Attachment) for words that do … Software Development python | |
Write a program that uses while loops and performs the following Prompts the user to input 2 integers firstNum and secondNum // Easy Output all odd numbers between firstNum and secondNum // No idea how to start that. Outputs the sum of all even numbers between firstNum and secondNum Output … Software Development c++ | |
Hey I am writing a program that will mimike a dice roll. I have the dice based on the value of a random number. the only problem is the random numbers don't change from one run to another, here is the code. #include <cstdlib> #include <iostream> using namespace std; int … Software Development c++ | |
Hi, I created a program to process the files in a directory. It also connects to the SQL server for data processing. The program catches any exception encountered. But what I would want to do is to force it to stop from processing. say if an error is encountered while … Software Development | |
hi, i'm newbie in python. i want to connect to MS SQL SERVER 7 on windows server, from Linux Slackware using python. I have install unixODBC 2.2.12 and FreeTds 0.64.. everything works fine include the tsql. but i don't know how to configure the odbc in odbc.ini and freetds.ini... need … Software Development python slackware unix windows-server | |
I am really having a tough time to update my report contents. Please help me with a project attaching with your solution. please help me quick...... Software Development visual-basic | |
hello guys, [code=c] #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <errno.h> void main(int argc, char *argv[]) { int status; char *prog = argv[0]; char *new_cmd = "/bin/echo"; char *cmd_args[] = {"echo", "hello", "world", NULL}; char *cmd_env[] = {NULL}; status = execve(new_cmd, cmd_args, cmd_env); /* * execve does not return unless … Software Development c | |
I am using istringstream to put strings separated by commas to own std::strings. I have done this wich works: [code] std::string One, Two, Three, Four, Five, Six; std::string Value = "a,b,c,d,e,f"; istringstream is(Value); while ( getline(is, One, ',') && getline(is, Two, ',') && getline(is, Three, ',') && getline(is, Four, ',') … Software Development c++ | |
Hello Everyone. I Need a code that can enable me perfom the following task as an administrator i develop a code that i can use to limit other users from perfoming certain task like deleting,inserting updating, the only previledge i can grant is just to submit to the database but … Software Development java | |
| |
I have a line in a .txt file that starts with the word "Words". What I am trying to do now is for the example below to find all the words after "Words" that is before a "(" wich in this case is "One" and "Two". As seen they are … Software Development c++ | |
Hi,I am new to VB6 and I have displayed records in a DBGrid from access using Data ctrl. I have displayed name and mailid in the grid Now,wen I click on any one record,the particular record shoul get selected and corresponding mailid and name should be displayed in another form. … Software Development visual-basic | |
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int num; int guess; int noOfGuesses; bool done; cout << "Ready to Play the Guessing Game?" << endl; cout << "Think you can beat me? You have 5 Guesses!" << endl; num = (rand() + time(0)) % 100; … Software Development c++ | |
I'm having trouble trying to figure out how to create a Cartesian Graph for the formula y=x^2 so that it looks like the following. ------* ---* --* -* * *please disregard the -* Current grid parameters: 20 X 20 array with step 1 I know I have to create a … Software Development c++ | |
Hi my name is Cristina I'm a Visual Basic newbie and my non-teaching professor at school virtually just dumped out projects for us to do without teaching anything and just giving out hand-outs.My problem is im having a hard time putting source codes in because its like hard for me … Software Development vb.net visual-basic | |
hi, I'm new to the forum and I hope that i have put this in to the right section... anyway here is my problem, i have to build an electronic device for a school project ( we have to build a device at the end of schooling to show our … Software Development c | |
Hello. I'm very new to Compuer Science, and I'm taking a class for fun but I recieved a really hard assignment for homework that I was hoping to get a little bit of help on here and there. It's only compter science for beginners, so I hope it isn't that … Software Development c++ data-science file-system | |
I am trying to use OPT++ for multidimensional optimization with Visual Studio 2005. I added the include directory to my project. I added the lib directory to my project. When I try to compile the example that ships with the package, i get 102 of the same error: NEWMAT is … Software Development c++ visual-studio | |
Hey guys, I've been working on a poker hand recognition assignment and ive been playing around with it for a week getting one problem after the next. Below is my code I have so far. [CODE=cplusplus]#include <cstdlib> #include <iostream> #include <string> #include <fstream> #define iteration_max 10000000 using std::cin; using std::cout; … Software Development c++ | |
Hello,I have this C program which is equivalent to the com port.Useful for data logging from the sensors.It consists of the .c file and two header files cport.h and xmodem.h .The code compiles fine but there are lot of linker errors.I tried a lot ,pulled my hair but no use.Can … | |
Hi, I am looking for a way to word wrap TreeView text, if this is even possible. Software Development visual-basic | |
Hai, This is something to save me and osme other people some time. Basically i need to read data from a text file and put that data in a a web form. It will be easy to read the text file but I don't know how to stuff that information … | |
Hello, I am trying to write my first ever assignment in Java and am straggling with it. I have a superclass LivingThing and two subclasses, Monster and Human. Both subclasses have an attribute 'strength', but the maximum value of it is different for each of them. In my superclass I … Software Development java | |
Please I need some help in C. I have a file with ".dat" format, how can i load it in C, into a variable, so that I can use the data for some math calculations later on? thank you. Software Development c | |
Hi, I'm experiencing an OutofMemoryError exception while recursing through a tree with a large number of branches (30) but relatively small depth (5). Here's the basic idea of the code: I start growing the tree using a depth-first method, and after I reach the leaf node, I assign a value … Software Development java | |
I have an array that I need to make into an array of pointers and return the array. [code] string words[i] = { "when", "if", "as if", "in order that", "before", "because", "as soon as", "after", "although", "as long as", "since", "unless", "even though", "so that", "while", "not even" }; … Software Development c++ | |
Hello all:) Is it possible that there is a Pythin to Delphi converter available? Thanks Nev | |
Microsoft has a program called narrator that reads text displayed on the screen. Is there a way I could use this voice? I want to create a program that makes the voice say whatever is typed. So if I type hello then press enter it will say hello. Is there … | |
hi, I was exercising package creation and its usage in Perl. I started with a simple program, 1. Created a package called A 2. Created a package called B 3. A program which includes those packages, and uses its services. [code=Perl] # A.pm package A; use warnings; my $l_var = … Software Development perl | |
I'm attempting to write a function that checks users input and verifies it's numeric. When it isn't I would like to keep the part of the string that's numeric and remove the last character after a messagebox pops up alerting the user to the violation. Here is the code I … Software Development vb.net | |
I have this project that am workng on that requres the user to write a name in a textbox and images are displayed on the picture box. So the question is how do i do this? Software Development visual-basic | |
Hi. I created 100 dummy mp3s, and I used the id3tool to change the tags on them. Each mp3 is named some number with the extension of mp3 appended to it (ex: 20.mp3). When I click on the file, the tags that I changed appear. What I'm trying to do … Software Development shell-scripting | |
hello I am trying to open a file which exists on my local PC using fopen the file is located in c:\B2B Data\files and is called file.txt When i put the above into a variable called filename, i cannot open it ie char filename[27]="c:\B2B Data\files\file.txt"; i then issue an fp … Software Development c file-system | |
I am looking for input on the best books/resources for learning Java and JavaScript. The students will be familar with programming in general but will be new to Java/JS. Thanks...DS Software Development java javascript | |
im a beginner at comp science, and my prof is using python, which is totally new tom me i had a few questions with the program im writing, im having a few problems. brief summary i have to do a project where there are nine boxes filled with number 1-8, … Software Development python | |
[url]http://www.me.metu.edu.tr/me310/section3/homeworks/homework2/m310s08h2.pdf[/url] hello guys can anyone help me about my homework i couldnt copy paste the question but i gave the link its about Gauss elimination with partial (row) pivoting by c programming. i need the source code as soon as possible. |
The End.