199,114 Archived Topics
Remove Filter ![]() | |
I am trying to make a 3D Engine using OpenGL, I've got all the model loading, 3D nodes, all that stuff done, but I get linker errors when I try to compile, it.. these are the errors: ------ Build started: Project: TheAlienEngine, Configuration: Debug Win32 ------ Compiling... main.cpp core.cpp ae_3d.cpp … | |
Hello, can someone please help me with this string? Right now, it will validate keywords separated by commas, lowercase only, and any two digit numbers by themselves also separated by commas. How do I further modify it to permit /up to/ two keywords, trimming any extra spaces that might be … | |
I the following program, can someone please explain these two lines. "def __init__(self, master):, & Frame.__init__(self, master)" One other thing. Shouldn't the method "update_count" use a return to return the new count? thanks. [CODE]# Click Counter # Demonstrates binding an event with an event handler from Tkinter import * class … | |
who can tell me what the use of "\n" is? and what the difference between [CODE]scanf("%d",&j); [/CODE]and [CODE]scanf("%d\n",&j)[/CODE];? | |
Hi, I am trying to read the following information from a text file and save it a binary search tree. The data are: [CODE] Toyota 1.3 Solid 33,235.04 3300.00 Nissan1.3 Solid 38,235.04 3300.00 [/CODE] [CODE]struct Node { char model[50]; char colourType[20]; double price; double deposit; struct Node *parent; struct Node … | |
Hello. I have two questions about iText. The pdf file exactly has to be like the word file that was sent to me. In the word file; the character is Times New Roman and its 10 puntos. But in the pdf file when i try to do Times.Roman and 10 … | |
Ok i add a SplashScreen1 then i put it to show, i go to Application Events and i add this [CODE]Partial Friend Class MyApplication Protected Overrides Function OnInitialize( _ ByVal commandLineArgs As _ System.Collections.ObjectModel.ReadOnlyCollection(Of String) _ ) As Boolean My.Application.MinimumSplashScreenDisplayTime = 4000 Return MyBase.OnInitialize(commandLineArgs) End Function End Class End Namespace[/CODE] … | |
I need to find a way to parse an html file with php. the idea here is to read the file eg: [url]http://www.somesite.com/page.html[/url] Then look for a string eg: "This text is present " Then perform an action based on the whether or not that item is present. The if … | |
Hi, i have already made a user registration page and log in pages but i need to know how i can make it possible for other people to view profiles from other users on my site. | |
Can someone help me develope this program Design, document and implement a Visual Basic conversion application that will permit the following : • Enter a value • The user should be able to select one of the following options : o Convert from Fahrenheit to Celsius (temperature) o Convert from … | |
I wonder for something. If it is possible to replace for example * with any kind of variable that holds either: + - * / Something like: [code] Variable = *; double Number1 = 5; double Number2 = 10; double NewNumber = 0; NewNumber = Number1 [B]Variable[/B] Number2; [/code] | |
Heres the situation so far.I'm in 9th grade and I've been programming in python. I enjoy python however, my high school doesn't offer any courses for python. In 11th and 12th grade, I can take C++. So here's my question: Should I: A) Learn python for the next to years … | |
Hello, I've been wondering about how to make shapes out of stars (*). Like a rectangle and different stuff. Is there a way for that ? and how ? Thanks all, | |
I suppose to write a grammar file for assembly language program by using Java in ANTLR .. but I don't know from where should I start .. and what should I do.. I am lost.. any expert with this subject could help me :( I have read a lot but … | |
Hi all! Please somebody explain me how this snippet is working!! [CODE]main() { float a 4.379; char*p; int i; p=(char*)&a; for(i=1;i<=3;i++) printf("%02X",(unsigned char)p[i]); } [/CODE] | |
I am developing a website in ASP.net and I would like to be able to track the mouse movements whilst a user of the site is browsing pages on the site and be able to store the duration in seconds of how long the cursor is left in specific areas … | |
ok, so i've read most of the stuff here to help with sorting string arrays in alphabetical order, but i got more confused... i need some1 to take a look at my program and see where i went wrong. also, i need help in getting the largest,smallest,and average... yes, i'm … | |
good morning to every one....... How to use the %n in scanf () & printf()? ..explain in thoroughly with examples... thanking you for giving answer | |
Hi people... I'm still new in c++.. I got the problem with the recent assignment that i have to do... This is the assignment that i got... [ATTACH]12228[/ATTACH] my problem is i dont know how to display all the value that the user entered into a single receipt...when i tried … | |
Hi. Firstly, I am a complete noob, and cannot understand complicated answers. OK. I'm making a noobish space game, called Galactic Armageddon. I'm just testing the variables right now (for getting hit by lasers, missiles, etc.). I'm compiling using Dev-C++ and the default compiler. The program is written using the … | |
Hi Everyone, Sorry if this has a totally obvious solution. I am trying to write a simple cows and bulls game; the program generates a secret number, the player has to guess it, the program then compares the guess to the secret number and tells the player that either they … | |
[CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> int main() { //int a[10]={2,5,1,7,0,10,145,14,15,9}; int a[10]={1,2,3,4,5,6,7,8,9,10}; int tem,i=0,j,isTRUE=0; for(j=0; j<10; j++) { if(a[j]<a[j+1]) { isTRUE=1; break; } isTRUE=0; } if(isTRUE) printf("inorder\n"); else printf("ASEorder\n"); getch(); return 0; } [/CODE] Here's my source code about checking an array is ordered or not But it didn't work properly, … | |
[code] import javax.swing.*; import java.awt.GridLayout; import java.awt.event.*; import java.text.*; public class TFE extends JFrame implements ActionListener { public TFE() { str txtfNum1,txtfNum2,lblAnswer; setLayout(new GridLayout(3,2,5,5)); add(new JLabel("First Number:")); add(txtfNum1); add(new JTextField(10)); add(new JLabel("Second Number:")); add(txtfNum2); add(new JTextField(10)); add(new JLabel("Total Summation:")); add(lblAnswer); txtfNum1.addActionListener(this); txtfNum2.addActionListener(this); } public void actionPerformed(ActionEvent e) { String str; … | |
[code] #include <SDL.h> #include <iostream.h> int main(int argc, char* argv[]) { //initialize SDL and the video system. if (SDL_Init( SDL_INIT_VIDEO)<0) return -1; //signal SDL to change the text of the main window to SDL "Hello World". SDL_WM_SetCaption("Hello world","Hello World"); //Create an SDL_Surface object, which represents, the game window. SDL_Surface* screen=SDL_SetVideoMode(640,480,0,0); … | |
I'm writing code for an address book that the information will be output to a text file in alphabetical order. I have most of the code, and I have done this kind of thing before, but it has been over a year since coding. So, just a start would be … | |
Write a class Employee. An employee has a private first name (string), private last name (string), private job title (string), private employment ID (string), private monthly income (double), private joining date (string), and private mailing address (string). Provide a default constructor, a parameterized constructor, and a clone constructor. Write separate … | |
i have this code [code=Java]//***************************************************** //Angles.java // // // //***************************************************** import java.util.Scanner; public class Angles { public static void main (String[] args) { double degree=1/360; double minutes=1/60; double seconds=1/60; double PI=3.14159;; Scanner scan = new Scanner(System.in); // takes the first angles from the user System.out.print("Enter the Degrees of the first … | |
Hi, I have a simple vote up and vote down feature, which on clicking calls a js function and increments or decrements the counter variable accordingly. But i have an issue, some malicious script just executing the script to incrment the counter by vote up. I am not allowed to … | |
I have program than finds the minimum temperature of every month, but i can't find a way for it to find the minimum temperature that is higher than 0, i can't just use min() cos if the month has temperature that is lower than 0 it is also counted. | |
Hi I am developing FTP Clinet application that downloads files from the specified server i sent the LIST command and server returned a list of file names in following order: -rw-r--r-- 1 devubas devubas 24 Sep 5 2008 .bash_logout now the problem is how do i extract the filename fom … | |
I haven't used the mySQL permissions mechanism to any great degree & could use a little help while still at the design stage. Is it possible to grant certain users access only to certain RECORDS within a table (based on the value of a field in those records). If not, … | |
hello every one I need some help in image size normalization i want all images to be almost the same size.. with no content distortion..i care too much to keep to keep the features of the image the same .. thanks | |
Hello guys, how can to make correct query if in the typed values have a special chars (e.g. ' ") ? If the typed values have a one special char I know how to make the correct query, but if it have more then one special chars then I don't … | |
[code]"SELECT tbl1.staff_ic, tbl1.staff_name, tbl2.dec_status,tbl4.location, tbl3.post,tbl3.grade FROM staff_detail tbl1 INNER JOIN staff_declare tbl2 ON tbl1.staff_ic = tbl2.staff_ic INNER JOIN staff_post tbl3 ON tbl1.staff_post = tbl3.num INNER JOIN staff_department tbl4 ON tbl1.staff_dep = tbl4.no ";[/code] isn`t my coding is right?? why when i execute my command just certain data are appear and … | |
Hi all. I am writing a utility to manage virtual users on a mailserver w/ mysql backed. Unfortunately I am having performance issues when querying for the user's last access date/time. DB has this structure table [B]users[/B] [CODE]+------------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra … | |
I am planning to create a software, for my university project, which will detect whether the patient has Cataract- a form of eye disease, when we supply a photo of the eye/ or eyes. How should i go around doing it? | |
Hello guys, I have one question about Qt... I`m fairly new in Qt and... I create the application in Qt in Linux and now I want to make a version for Windows, but do not know how to do it. I have read and follow tutorials for cross-over compiling but … | |
Hi, I'm doing a matrix of array n I have to assign each column with a letter or number so that when I shuffle the letters/numbers, it will print out accordingly. this is like the transposition cipher. I have 2 problems. 1. my matrix is not printing out like i … | |
i have a homework assignment using the calculatecharges function...we use C++...but my book doesnt have the actual usage for it in it. we have to calculate parking charges for cars in a parking garage...could someone please explain exactly how you would use this function to do that ... thank you | |
hi there i have a problem where i cannot find a way to make a java program to Write a program which asks the user how many days he will be working. Then calculate and print the amount of money he will earn if he is paid £1 for day … | |
I'm developing a bluetooth messaging application which sends text messages between devices. My problem is when I connect more than 2 devices. After sending some data between them (let us say 3 devices) I get this exception: javax.bluetooth.BluetoothStateException: too mach concurent requests at com.sun.kvem.jsr082.bluetooth.ServiceSearcher.start(ServiceSearcher.java:67) at com.sun.kvem.jsr082.bluetooth.DiscoveryAgentImpl.searchServices(DiscoveryAgentImpl.java:226) at javax.bluetooth.DiscoveryAgent.searchServices(DiscoveryAgent.java:259) at BSearch.deviceDiscovered(BSearch.java:78) … | |
Hi All, I'm still exercising with that small PHP/MYSQL CMS of mine. I have a question that I need help from you guys. I see in many CMS like Drupal where there is loong articles let say 10 of them are displayed on single page. For some technique I don't … | |
Hi all, This program is compiled successfully but it does not do what it is meant to do [CODE]# include <iostream> using namespace std; int main () { double interest_py, interest_pm, month_pay, loan, interest_due=0; int counter=0; cout << "Loan amount ="; cin >> loan; cout << "Interst per year ="; … | |
If I have a function included within a page, and that function is in it's own file, in a different directory (/scripts/thefunction.php) how would I go about writing a file path to another file that is in a different directory. In a nutshell, a file in /index.php includes a file … | |
[COLOR="Green"]How can I use [U][B]wildcard/s[/B][/U] for the attachment filename. Part of the filename changes but the characters 8 and 9 (counting from the left to right) always present and always either [COLOR="Red"][B]LK[/B][/COLOR] or [COLOR="Red"][B]KL[/B][/COLOR]. Currently files are PDF type, thus with extension [COLOR="Red"][B]PDF[/B][/COLOR] but might be different in the future … | |
Ok, here's the problem [i]Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice to the screen and asking the user to type in a different piece of advice. The program then ends. The next person to run the program … | |
help me to make c/c++ for this quest... [U]THE QUESTION IS MAKE C/C++=[/U] <<Make online banking registration>> hint: ask user to enter yes 'y' or no 'n'... if 'y' user can go to the next step if 'n' user out from program... if 'y' user will go to the next … | |
I did some searching and I think it might be a buffer overflow but I'm not sure. Could someone tell me what's wrong with this? [CODE]SafeGuard:: SafeGuard(int agent) { for(int index = 0; index < 26; index++) { upperCase[index] = 'A' + index; lowerCase[index] = 'a' + index; } for(int … ![]() | |
hello every one im searching for a method to detect image concavity that is ..a concave exists in this image or not .. and its degree thanks.. | |
Hi, I'm storing base class pointers in a vector, the pointers are pointing to objects from the derived class ( Leads ). I'm unable to access the 'getter' functions of the derived class. How can this be done? I'm trying to save the derived objects in a text file (database.txt) … |
The End.