199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bufospro

Hi all, I am new in shell scripting and I would like to make a bash script which will inform me if one of my friend is already logeed in. If a friend is logged in I want to take as output USER1 : is in. else USER1 : last …

Member Avatar for ghostdog74
0
139
Member Avatar for vinod_javas
Member Avatar for vinod_javas
0
110
Member Avatar for Colin Mac
Member Avatar for John A
0
133
Member Avatar for Colin Mac

I'm having a bit of trouble understanding what [B]glLoadIdentity[/B](); does in OpenGL . This is a quote from the Redbook. "Recall that the viewing transformation is analogous to positioning and aiming a camera. In this code example, before the viewing transformation can be specified, the current matrix is set to …

Member Avatar for Grigor
0
134
Member Avatar for push
Member Avatar for push
0
112
Member Avatar for squinx22

Gud day, Suppose I have these files: hello.h hello.cpp main.cpp in what directory will I put the hello.o and hello.hpp so that I will only type $ g++ main.cpp -o main not, $ g++ main.cpp hello.cpp -I. -o main.cpp in the terminal.. thanks.... I will highly appreciate youre response....

Member Avatar for squinx22
0
100
Member Avatar for Gumster

Well im having a little problem with some tuples or more so about defining which tuple [CODE=python] #Start of my tuples Rock = ("Scissors","Fire","Snake","Human","Wolf","Sponge","Tree") Fire = ("Scissors","Paper","Snake","Human","Tree","Wolf","Sponge") Scissors = ("Air","Tree","Paper","Snake","Human","Wolf","Sponge") Snake = ("Human","Wolf", "Sponge", "Tree","Paper","Air","Water") Human = ("Tree","Wolf","Sponge","Paper","Air","Water","Dragon") Tree = ("Wolf","Dragon","Sponge","Paper","Air","Water","Devil") Wolf = ("Sponge","Paper","Air","Water","Dragon","Lightning","Devil") Sponge = ("Paper","Air","Water","Devil","Dragon","Gun","Lightning") Paper = ("Air","Rock", …

Member Avatar for jrcagle
0
104
Member Avatar for mandy2612

hi i'm an absolute fresher in DBMS and our teacher gave us an assignment in this there are two questions, we have to draw the UML diagram, find the association, ER diagram,and then to write SQL queries the problem is that i'm little bit confused about the attributes i think …

Member Avatar for SkinHead
0
193
Member Avatar for Monyet

[code=java] import java.util.Random; public class CardDeck { private String deck[] = new String[52]; private String shapes[] = {"heart", "club", "spade", "diamond"}; private String numbers[] = {"ace", "deuce", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "jack", "queen", "king"}; public void CreateDeck() { for(int s =0; s < shapes.length; s++) { …

Member Avatar for Johnbull
0
129
Member Avatar for ptaylor965

I am using an MSAccess 2007 database file to retrive some info The tables look like this tblIncome Date | Takings 12/05/2007 | 10 12/05/2007 | 20 13/05/2007 | 10 16/05/2007 | 40 tblExpence Date | Takings 12/05/2007 | 10 13/05/2007 | 20 14/05/2007 | 50 When running the code …

0
67
Member Avatar for ndeniche

[U][B]Dear poster:[/B][/U] we don't actually have any issues with answering your doubts/questions or solving your problems, but it would be very time saving for us (problem solvers) if you could please mark your threads as solved when your problem has been solved, since, when you don't do that, we read …

Member Avatar for ndeniche
0
504
Member Avatar for JaksLax

I am getting a Segmentation fault when I run my code. It is happening right now when the 100,000th array location is being populated. But it has been at different spots when I ran it before. Any ideas?? [code] /** * @author Jason Mejak * * This program uses the …

Member Avatar for Salem
0
145
Member Avatar for senthil_yoga

dear friends, i am able to get a bunch of datas from select box , but while inserting into database , only one data had been getting inserted, how to insert all the datas... i will show the code, please give ur valuable suggestions <% String s1=(String)session.getAttribute("eid"); String s3[]=request.getParameterValues("language"); int …

Member Avatar for ~s.o.s~
0
108
Member Avatar for mevanga

I'm new with VB and I need to write a code that will calculate days starting from a start date (x), adding (y) days per month till the present date (z), subtracting given days (i) and finally giving remain days (j). Can anyone please given some examples.

Member Avatar for WaltP
0
338
Member Avatar for ally1002

hello, i'm studying files and streams in java from JAVA how to program - Deitel but it's so not clear,,, is there another book or a website that explains this better? i could really really use it. thanx ally:icon_biggrin:

Member Avatar for ~s.o.s~
0
81
Member Avatar for Riazansar

dear members ! In my job i jst face this problem with one of our PHP based sites. what this script does is that asks users for some inoformation when they want to have a folder in one of our web servers. now the problem is that when they submit …

Member Avatar for Riazansar
0
222
Member Avatar for Dageki

I have been tasked with cleaning up some daily backups and I want to automate this. I have decided that Perl might just do the trick except up until about a week ago I did not know much about it. I have been doing some homework but I am stuck …

Member Avatar for Dageki
0
98
Member Avatar for venuaccha

I want to pass a 2D matrix to a function in C which modifies the elements of the matrix and the modifications should be effective in the calling function. How to achieve this in C.

Member Avatar for Salem
0
838
Member Avatar for popson

I'm Using Microsoft Visual Web Developer 2005 Express Edition to design a web site, and it displaying this error " Saver Disabled" any time that i try to run the programm , pls what is d couse of this problem and how can i solve it. am using SQL Server …

Member Avatar for Dani
0
76
Member Avatar for ajaxjinx

Hi , I need to Assign 4 bits to unsigned char: I am using, unsigned short Ver : 4 ; My ques is ... howw do I initialize Ver , coz Ver=5 is not working.. If i need a type cast.. what will it be???

Member Avatar for ajaxjinx
0
194
Member Avatar for quintoncoert

I am new to c++ and I am using visual c++ express edition. I am spending quite a lot of my time doing excercises and am using the command line to compile them. I have now reach the stage where I am seperating the header files and the .cpp files …

Member Avatar for Ancient Dragon
0
157
Member Avatar for sibotho

Hi All I have a dropdownlist in one page, now I want to display the contents of that dropdownlist in a different page, can someone help me with this. Thanks in advance

Member Avatar for pygmalion
0
95
Member Avatar for iam_rob

Hi all, I'm currently building a login page for a JSP application, I've realised that im going to need to use sessions to recall the username on the login screen for other functionality. Unfortunately i'm very new to the whole web development approach and i've tried searching for guides on …

Member Avatar for iam_rob
0
229
Member Avatar for ashkash

I need to write a program in MIPS that will find the saddle points of a 4x4 matrix. It will print the value of the saddle points and if there is no saddle points it will print a message that says so. A saddle point is a value which is …

Member Avatar for andor
0
147
Member Avatar for nkhosinathie

hello everyone. i'm calculating certain 100 people that have completed a questionnaire and my program has to dertermine the number of males between20-30 and their highest grade which is grade 12,also the program has to determine the number of people above 32 and their highest grade which is tertiary as …

Member Avatar for nkhosinathie
0
113
Member Avatar for assoora

[COLOR=#000000]Hi all,[/COLOR] [COLOR=#000000] <br>[/COLOR] [COLOR=#000000]I've a JSP page that has 2 buttons one to bring data from database via a servlet & a java Bean, and the other is a next button.[/COLOR] [COLOR=#000000][COLOR=#000000] <br>[/COLOR] [/COLOR] [COLOR=#000000]i want to show the data from the database 4 rows per a page, i.e. …

Member Avatar for jwenting
0
142
Member Avatar for somita1

if anybody wantt to help plz give me email that i can ask my problem with detail for solving

Member Avatar for WaltP
0
129
Member Avatar for Mac.Z

Hi everyone, Sorry for the long title! What I want to know is whether it's possible to convert specified elements of array of char to int using some fuction ? let's say we have char x[10], x[0] = '9', x[1] = '2' so I want to have 92 in a …

Member Avatar for WaltP
0
84
Member Avatar for ghadahelal

is there is any fun in the c++ library that takes a dec and return hex

Member Avatar for WaltP
0
219
Member Avatar for sInFuL69er

Hello, iam having trouble with reading a text file that contains , [ ] eg. 3715,4[9] 4356,3[7,3] [code] char c; int events[12][12];//[row][col] ifstream infile; infile.open("test.txt"); while (!infile.eof()) { for(int j=0;j<12;j++) { for(int k=0; k<12;k++) { if(c!=']') { infile >> events[j][k]; infile.get(c); } else events[j][k] = -1; } } infile.get(c); } …

Member Avatar for WaltP
0
100
Member Avatar for mathgirl

I am trying to write a program that will prompt the user for six grades to be entered (one at a time), read in each grade entered by the user, and store them in an array of six elements. Grades should be on a 0 to 4.0 (inclusive) scale, and …

Member Avatar for ndeniche
0
116
Member Avatar for rockthrower

Hello, I am trying to read data from a text file in the following format: 05 mike smith 30.00 2 1 so the format is: int, character[21] = max size of array, double, int, int I am trying to read the values into an array of objects. I can read …

Member Avatar for WaltP
0
245
Member Avatar for squinx22

Hi gud day! Anybody who knows how to save a file to [U]/usr/include[/U] in the terminal? Suppose I will save a file named hello.h to the said directory, what would I do in the terminal? thank you very much....

Member Avatar for ndeniche
0
94
Member Avatar for Covinus

[code] a=(char*) malloc(sizeof(15)); b= bmfh.bfType; sprintf(a, "bfType: %d", b); TextOut (hdc, 0, 0,a , strlen(a)) ; delete[] a; a=(char*) malloc(sizeof(15)); b=bmih.biBitCount; sprintf(a, "bitCount: %d", b); TextOut (hdc, 0, 20,a , strlen(a)) ; [/code] is it necessary to leave the a undeleted when i gave it another value or i should …

Member Avatar for Covinus
0
122
Member Avatar for therwi

[COLOR=#000000]Your assignment is to write an assembly program that takes a series of characters from the keyboard until a '$' character is entered. These characters must be saved in a stack. Then the program is to print all these characters backwards.[/COLOR]

Member Avatar for qrius
0
122
Member Avatar for Covinus

what is the equivalent of javas repaint() method to win32s? i was now able to load a bitmap into a window but sadly you have to minimize or maximes the window before the bmp appears. any suggestions how to solve this one?? any help with be greatly appreciated.. thanks

Member Avatar for Covinus
0
76
Member Avatar for LyddieFrog

I'm currently writing a program that acts as an application for a store manager, sorting, searching, reading in, etc. products. This program has two classes: one to handle the GUI and another to handle the actual calculations. I am completely done coding this, save for one requirement: I need to …

Member Avatar for LyddieFrog
0
154
Member Avatar for ghadahelal

hi all, i have a caputure file ( *.cap) i open it in binary mode , now i nead 2 make an outfile , also *.cap i gave the outfile 2 my prog. out.cap, it works and i became no errors, but when i tried 2 open it , it …

Member Avatar for ghadahelal
0
110
Member Avatar for Rikardsen02754

Need help with a program that represents names The rubric is found here: [URL]ftp://ftp.aw.com/cseng/authors/lewis/jss3/HTML_Labs/ch4/Names.html[/URL] this is what I have done right now, but my lab partner and I are STUCK, any help we receive would be appreciated [code=language] // **************************************************************** // Name.java // **************************************************************** import cs1.Keyboard; public class Name { …

Member Avatar for peter_budo
0
162
Member Avatar for MarzenaM

I have to write programm to sort numbers from in ascending order, using vector (C++ language) I did this using array, and it works perfect. Please could you help me replace array to vector. It's very urgent. :'( My code is: [code=c] #include <iostream> void fill_array(int a[], int size, int& …

Member Avatar for Lerner
0
112
Member Avatar for Kees Baltus

Windows Explorer gives extended information of pictures such as Width, Height, Manufacturer, Cameramodel, Exposuretime, Picture made on, Date created, Date changed and so on. How to get access to these parameters in VB6.0? Thanks in advance Kees Baltus

Member Avatar for PVBert
0
124
Member Avatar for hbk619

Card game (again, or still). This one's got a GUI. Problem is, the draw and stick method need the total value that is made in start. So when call draw() or stick() from the actionPerformed method it needs a value or it won't compile [COLOR=red](stick(int) in game1 cannot be applied …

Member Avatar for hbk619
0
133
Member Avatar for gparadox

[code] TITLE Proj2 PAGE 56,90 ; I used your Lab05 as a template for this ; ---------------------------------------- ; ; ; This program will take a name entered by the user ; and display it backwards. It will also tell the ; user whether the word is a palindrome or not. …

Member Avatar for gparadox
0
154
Member Avatar for kissiwat

I've gotten myself a bit confused here. :'( I've created two linked lists called 'competitors' and 'races'. I'm able to add, append and display info in both files but unable to delete or update the information contained in either. I've started the coding for both functions but have got totally …

Member Avatar for Ancient Dragon
0
183
Member Avatar for Upon1

I am currently using the PHPNuke portal (7.9) and I've been having some problems lately with my phpBB forums. I installed the system in January and have been tinkering around with it since. Everything has been running smoothly until a few weeks ago; my forums quit working. For no apparent, …

Member Avatar for Upon1
0
229
Member Avatar for isitintheback

No they're not mental. Well, maybe partially. It's 1:47am I'm tired as hell, but won't rest until I complete this. I know this is right in my face, and it's something stupid but I'm just not picking it up for some reason. Here's the code: [code] if(g1 == true){ total …

Member Avatar for isitintheback
0
172
Member Avatar for enggars

Hi i have a script like this : function add() { c=document.form1.status1.checked; d=document.form1.status2.checked; if(c!=1) document.form1.hidsum1.value=0; else document.form1.hidsum1.value=document.form1.sum1.value if(d!=1) document.form1.hidsum2.value=0; else document.form1.hidsum2.value=document.form1.sum2.value a=document.form1.hidsum1.value; b=document.form1.hidsum2.value; var e = parseInt(a)+parseInt(b); document.form1.total.value=e; } And it works though. But i want to use looping to simplify the code. Anybody can helps? i have no idea …

Member Avatar for MidiMagic
0
147
Member Avatar for jk_bscomp

Gud day everyone........I just want to ask if anyone here knows how to compile java using the terminal in ubuntu if your sourcecode has many classes.. I tried already how to compile java in terminal using ubuntu like this one javac hworld.java and this command creates Begin.class(the name of the …

Member Avatar for jwenting
0
99
Member Avatar for IwalkAlone

Q.Write a program to input data in an array.Compute the sum and average.Then count the number of values greater than the average and lesser than the average.Print the average,sum and the two counts. Solution I tried [CODE] #include<stdio.h> int main(void) { int X[10],i,lesser=0,greater=0,sum=0; float avg=0; for(i=0;i<10;i++) { printf("Enter number\n"); scanf("%d",&X[i]); …

Member Avatar for Salem
0
120
Member Avatar for Tauren

Greetings! I just have a question is the book C++ Programming Primer By D.S. Malik a book worth getting? What stage is it: Beginner, Professional What does it teach me up to: What the last topics in book Will I need more books after this regarding the topic? And is …

Member Avatar for Narue
0
267

The End.