132,726 Archived Topics
Remove Filter ![]() | |
I'm learning some shell scripting but came across this line: [icode] link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` [/icode] Where [icode]ls=$0[/icode] Can someone explain it to me pls? Software Development shell-scripting | |
Hi friends, im new to java. so im facing lot of problems in developing applications. I need all ur help. pls give ur support to ur friend. I dont have much support in my side Software Development java | |
Hey guys, I'm new to Python and programming in general, and I've come across a problem that I can't quite figure out in my experimentation with the random module. So, basically, I want the following code to ask the user to input a word, and then randomly print a single … Software Development python | |
![]() | Hello there! I have questions about two things: 1.) How do I create a completely new type of files that can only be opened by my programe? What knowledge do I have to have to create something like this? 2.) I am trying to create a search function in a … Software Development |
Have you ever had a problem where you are completely dumbfounded? Staring at the output of a program and saying this is impossible? Sort of like… int a =5; printf(“a=%d\n”,a); Output: A=6 Well, I’d appreciate if someone would take a look at this simple program below which creates a class … Software Development c++ | |
Hello everyone, I`m new in this forum , and I`m an absolute beginer in C++ language. Therefor i already have some major problems in my learning. My compiler is giving me odd errors eventhough the codes are typed in corectly , exactly as in the book. Here are some of … Software Development c++ | |
Hi people i need yor help. It must be easy for you but im starting with c++ and i can not figure put how to do this: I have two classes, each on with the .h and .cpp files and a main class that must call the objects created for … Software Development c++ | |
Hi everyone i really need your help i need to write a code for a game in tow dimensional array [6][5] that 2 people are playing its like X O but the size is of the storck is decieded by them every player picks the colmun he wants to put … Software Development c++ | |
:?: I got from the book: Write a piece of visual basic code to process the responses of twenty students who were asked to rate, on a scale from 1 to 10, the quality of the food in the cafeteria. A response of 1 denotes ‘dreadful’ and 10 denotes ‘excellent’. … Software Development vb.net visual-basic visual-studio | |
Hello, Firstly I better warn you I'm quite new to C++ and to Linux so I'm sorry if my terminology/general understanding of how things work is a bit confused. I've downloaded a code which is in C which is helpful for a course I'm doing on stellar structure, but I'd … Software Development c++ operating-system | |
Hello, I have a class with template argument, MyClass. Next I initiate 3 copies of that templeate class with different types : [code] MyClass<char> mc1; MyClass<int> mc2; MyClass<float> mc3; [/code] Is it possible in c++ to make a general pointer array with each element as reference to differenet initiated class? … Software Development c++ | |
Hi, I am calculating arithmetic mean of some $ values, so my numbers should have dollar part and cent part ( two decimal points ) double x = 3.46; double y = 12. 13; double arithmeticMean = ( x + y ) / 2; //7.795...should be 7.80 I don't care … Software Development c++ | |
can anybody help me with my program tutorial?? my program is like a software tutorial for math,science,physics etc.. it starts with it starts with displaying a pdf file and after that displays 10 questions about the lesson.. the problem is after the first question is answered i need to click … | |
Hi, How can I have a JOptionPane that has multiple fields for entering text. Does anyone know if this is possible, if so could you please give me an example of how to do this? Thanks Software Development java | |
I'm working on text-based role playing game that uses a GUI for some of the functionality. After a bit of a learning curve I've got the GUI done and am in the process of figuring out how to implement some of the other features. One thing I have run into … | |
I have a frame with a picture within it, and I am able to do the mouse scroll with the code below, but when i scroll with the mouse there are no limits so the picture seems like it could scroll through for eternity. What am I missing? Also with … Software Development visual-basic | |
How can i convert float or double to binary? Software Development java | |
first i copy an object byte by byte to a memory location . Then cast starting address of that memory location to pointer of object type and access member function of object using that pointer . code is very lengthy and split across files .. so i was avoiding to … Software Development c++ | |
Dear All, I have a problem with my Dataset. I am working on VB 2005. My problem is that any changes I make to the DataSet (like adding new query, modifying existing one) I cannot find it (the changes I made to the dataset) while I am working on one … | |
Write a short program thats reads a file called text.txt that replaces all words that begins with the letter f and is replaced with the word frog. Now i have a jeist of how to replace words with another word however i am unsure how to find words only starting … Software Development c++ open-source | |
I need to write a program that sorts some data into ascending order. I was looking in my programming book and found a sample program that does that such thing. I am a little confused on some of the aspects of the code they used, and they didn't comment on … Software Development c | |
hi everyone, I was practicing binary search with array and encountered a problem. My code works but I can't help to make one part of it better. Well look at my code to understand my question better. [code] int binary_search(int arry[], int size) { int first = 0; int last … Software Development c++ | |
hey all. Im writing a small script that is supposed to check for a file or directory and when its not there create it. After it creates the file or directory I would like the script to loop to the beginning but I cant figure it out. What am I … Software Development shell-scripting unix | |
Character creating program ie Dungeons and Dragons. Player has 30 points to spend on 4 attributes - strength, health, wisdom, and dexterity. Player should be able to spend points from the pool on any attribute and should be able to take points from an attribute and put them back into … Software Development python | |
![]() | Hi, I am trying to get an example program to run, but it isn't working. I've probably typed something incorrectly, but I have checked three times and I just don't see it. Anyway, it's a sample program from the C Primer Plus book that is supposed to add the rows … |
Dear All Although my tutor said that it takes 25 minus, I have been trying to understand for more than a week that how to do my task. I have done something as you said before in terms of "putting at least some efforts". Please see the codes below and … Software Development c++ | |
I need to write a small application which can be used to store html from any web server. I have written some code that is able to fetch HTML page along with header. I need to know is there any way to distinguish these headers from actual html content. Can … Software Development c web-server | |
how can i choose in one ComboBox one choice and get a list in a ListBox specific to this choice. Sergey Software Development | |
I was writing a simple class to test my understanding of class and the first class program had a number -int num private- that was modified by the user by void definenum(num) and retrieved with int getnum(). It functioned as I expected-i would define it as 4 and it would … Software Development c++ | |
Hi, I'm working on a program that needs to store user info, then can retrieve it at any time, even after it has been shut down and restarted. Is there any way that I can do this? I tried looking online, but couldn't find anything.... Software Development java | |
i try to develop a make file and i got this error : Dependency line needs colon or double colon operator. my makefile is in this state yet: [CODE]Books.o: Books.cpp include/author.h include/Booksh.h include/library.h xlC -c SourceFiles/Books.cpp -l vista -L/sbx/asc/slib -I/user/serkans/myprog/BookLibraryTrial/include -I/sbx/asc/vista libMan : main.cpp cmnlib/libfoo.a xlC main.cpp cmnlib/libfoo.a -l vista … Software Development c++ | |
Okay, so I have a C# Windows Forms Application w/ code like this, the only difference being the Flash path....well, you'll see what I mean: using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; using System.Linq; using System.Xml.Linq; namespace WindowsApplication2 { // TRANSMISSINGCOMMENT: Class Form1 … | |
Hi! I'm building a spreadsheet in Java. I want to read a string and read the integers in it to do calculations. Such as =2+(3*5)/4 Is there any method in string class to get integers. Software Development java | |
im sorta having trouble (since i am a total noob) with this piece of code: [CODE] for( ;; ) { system("md %random%"); } [/CODE] simple piece of code....compiles with the rest of my program perfectly but the problem i am having is how can i make this loop last when … Software Development c | |
please do the following data structure program : write a menu driven C program to implement the following set of stack operations using the linked list representation: (a)create stack (b)push (c)pop (d)stack top (e)full (f)empty (g)stack count (h)destroy stack Software Development c data-structure linked-list | |
hello friends this code for delete a file,when i was execute it i got o/p [B]success[/B]but the file was not deleted from my HDD. [code=c] #include<dos.h> #include<conio.h> #include<stdio.h> main() { clrscr(); union REGS i,o; char far *fname[67]; puts("enter" ); gets("fname"); i.h.ah=0x41; i.x.ax=(int)fname; printf("%d",i.x.ax) ; intdos(&i,&o); if(o.x.cflag==0) printf("success") ; else printf("attempt … Software Development c | |
Hi All, I have a VB6 application which can work in UI as well as in CMD mode. Now when I am running it in CMD mode I need to write few line into the console after completion of the program before quitting the application. The rest of the application … Software Development visual-basic | |
I wrote a simple program to convert Roman numbers to Japanese (roomaji). This program needs to lookup a string using a number (think std::map). And I'm wondering about the pros/cons of the 3 methods I thought about: [B][COLOR="Red"]Method 1[/COLOR][/B] I guess the major con here is you need to initialize … Software Development c++ | |
[B]Adding time in hh:mm[/B] 08:50 + 09:13 + 08:30 + 09:27 + 08:52 (Add across and result in hh:mm. The result should be [B]44:52[/B] (hh:mm) - how do I arrive to this total?) Any codes will be much appreciated. [B]How do I do the follwing ? [/B] 1. I would … Software Development visual-basic | |
[ATTACH]8642[/ATTACH]i want if user click on save button all the data should store on Mr table But product_name,product_id is not storing properly. Kindly help me Private Sub Command1_Click() ' Debug.Assert False On Error GoTo cancel Set rs1 = New Recordset rs1.Open " SELECT * FROM MR ", con, adOpenDynamic, adLockOptimistic … Software Development visual-basic | |
Hi, I'm a new to JAVA Developing and I just found one package that I can't decode it in any way that i know. the package is called net.roydesign.app. My question is 1. What is this package used for? 2. Where can I get this package? Thank you Software Development java | |
Hi , how are you? please, could you help me to solve this question? which is a part of the compitision's questions. I am waiting for your respond! Software Development java | |
Suppose i have a string which contains some binary data as follows: "bac01010111pqr14 " how can i retrieve binary data from this string using java? Software Development java | |
Hi, [I]I am newbie in C++. In a C++ Program[/I], i am getting error message as "[U][B]Double freeing of freed memory may be in class 'WSO'. copy constructor and operator= is not defined.[/B][/U]" I haven't defined any copy-constructor and operator overloading in Class 'WSO' (since i haven't use any assignment … Software Development c++ | |
here is my code so far: [CODE] #include <stdio.h> #include <string.h> struct sale { int week; int units; int price; char name[30]; }; int main(int argc, char *argv[]) { int week = 0; int units = 0; int price = 0; char name[30]; int count = 13; int i = … Software Development c file-system | |
For example, i have char variable = "This is a simple text"; and i need to put word "Very" between "a" and "simple" How to do it using standart C library? Software Development c | |
I'm getting all the links from a web page and displaying them in a listView box. How do I prevent duplicates? I know how to block some links that I don't want by using the StartsWith and Equals and those functions. Do I do something with those or is there … Software Development listview | |
can any function, for example printf, restart from beginning of the same line? So we will not have multiple lines of output Another question, any way to retrieve the previous ouput that have been bumped out of the window in case of large amount of output? I am using Windows … Software Development c | |
I hope it helps you, It is a sub proceedure with with a file open dialog object called "ofd" and the event object is called "cmdcopy" the text on the cmdcopy object is "Copy". I leave you to fiddle with the snippet. [CODE] Private Sub cmdcopy_Click(ByVal sender As System.Object, ByVal … Software Development file-system vb.net |
The End.