132,726 Archived Topics
Remove Filter ![]() | |
I'm using Borland Builder C++ 6 (my tutors force me to) and I want to make a TImage full screen. I don't think there's any specific function for this, the only way I can see doing it is possibly manipulating the Height and Width properties, but then again I can't … Software Development c++ | |
I realize that kprint takes a pointer as a parameter. I don't understand how it loops through each character when you do something like kprint("HELLO WORLD"); Can you really just increment *s to get to the next char like: s++; char c = *s; Software Development c | |
hi all! Till now i have made simple applications in C# that dont make use of Database. But now i wanna make a simple projects that keep records of employee i.e. their name,ids,emails,addresses etc. For that purpose i need database connectivy code in C#. Another problem is this that i … Software Development visual-studio | |
[code=c++] #include<iostream.h> #include<stdio.h> #include<io.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<string.h> void minmax(int); float max[13],min[13],array[13][270]; void main() { FILE *fp; char line[100]; char symptom[10]; float f; fp=fopen("input.txt","r"); int i=0,j=0,k,l=0; int rw_cnt = 0; int cl_cnt = 0; int len; while(!feof(fp)) { //i=0; //l=0; fgets(line,99,fp); printf("%s \n",line); // getch(); rw_cnt++; // len=strlen(line)+; // line[len]='\0'; … Software Development c | |
Vb 2005 problem Is there a way to search for identical items in a listbox en count them ? Software Development vb.net | |
hi, i am unable to read the newline using stream reader from a text file where it contains some names and their account ids. i need to copy each line to a string how can i change to next line. how can i know when end of file is reached??????? Software Development file-stream | |
Hi everyone, This is just a short description on the various classes & interfaces that help you write an application, which can parse an XML document. The SAX API consists of the foll. packages :- [I]org.xml.sax[/I] - This package contains the basic interfaces of the SAX API. Some of the … | |
Hey, I've never done any programming in my life and would greatly appreciate some help :) I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays … Software Development vb.net | |
I'm experimenting with fgets because I heard it's better for dealing with memory buffer overflow but I am not sure of the [B]sizeof[/B] component and how to the [B]stdin[/B] part helps it to work. Is [B]METHOD 1[/B] or [B]METHOD 2[/B] in the following code the correct implementation of [B]sizeof [/B]and … Software Development c data-structure perl | |
Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content, [code] mov ax,07c00h mov ds,ax lgdt [ds:descr] ;switch to pmode by setting bit … | |
Hello, for a University assignment I am attempting to use a brute force search to generate all possible combinations of a list of numbers. This is only a small part of what I must do. I realise that a Brute Force Search would be extremely computationally expensive but it is … Software Development java | |
SO, I'm playing around with an idea. I'm trying to convert primitives to and from a char array for file logging. I've got all the details worked out, but I don't understand something.. Take the following case, for example: [CODE]public static byte[] ToByta (short data) { return new byte[]{ (byte)(data … Software Development java | |
my administrator at school blocked commands for command prompt so I can't use system pause or system color commands....anyone know a way around this? Software Development c++ | |
help please, i have to generate a funciton which generates the squareroot of any real number! I don't know what else I can do :( [code] #include <stdio.h> #include <math.h> double squareroot(double number) { double x[20]; int count,count2; x[0] = 1; for (count = 0;count <= 20;count++) { while ((abs(x[(count2)-1]) … Software Development c | |
Hi guys, Ok so once again, I have pretty much the whole code written, but something is not working right! When I run it and select "add record", it works up until the user inputs price, then it just prints a ton of numbers and basically crashes. Please help me … Software Development c | |
Hello, I'm new to this site and programming in general, so bear with me :$ . I've been downloading source code like crazy to reference, however I have yet to find a single project file for large projects (such as, for example, Half Life 2) that SHOULD compile correctly. Surprisingly … Software Development c++ | |
Does one exist? Like the Glade Interface Designer and wxGlade, only to build Tkinker UIs. This would need to be run on Linux/UNIX. | |
i have a homework assignment asking me to pick the highest and lowest number out of a group of 4 numbers? How would i set that up? Software Development c++ | |
Hi guys I'm trying to do a while loop since this afternoon for the code below but was unsuccessful. I'm reading from a file A family name and the number then the names belong to the family which will be like this JAMES SMITH MARY SMITH JOHN SMITH ROBERT JOHNSON … Software Development c++ | |
Hey guys, I'm taking a beginner's VB/.NET class. Today we started working on a project involving a simple login form, e.g.: [code]Public Class Form1 Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click If txtUsername.Text.ToUpper <> "JOHNDOE" Then MessageBox.Show("Error: Username doesn't exist.") Exit Sub End If If … | |
is it possible for me to call a static method if all I know is the class? Software Development java | |
please see my code : there are something wrong?how i can check if stack is empty?? NB : isi = content of stack atas = top of stack tumpukan is stack [CODE]function POP (var T : Tumpukan) : integer; begin POP := T.Isi[T.Atas]; T.Atas := dec[T.Atas]; end;[/CODE] anyhelp will be … Software Development pascal | |
Hi all, ain't been here in a while, busy busy busy with college... I have an assignment on threads for Operating Systems, I can't actually see how it relates to OS but it is thread based, I haven't worked with threads before, but I have it finished to the best … Software Development java operating-system | |
When you are writing a whilestatment like this you have ',' as a delimiter. What I wonder is if it is possible to have more than only one delimiter as I also want at the same time use " " and ")". [I](a blank space and a ")" )[/I] Is … Software Development c++ | |
Would someone please help me learn how to create a 2d map using python with arrays or something ? I have been trying to find out for days and haven't found anything. I found this on the internet... [QUOTE] self.map = ( "::::::XXXXXXXXXXXXXX", "::::::..::::XX::::::", "::Z:+:XX::::..::M:::", "::::::XXX.XXXX::::::", "XXX.XXXXX.XXXXXX.XXX", "XXX.XXX/:::::XXX....", "XXX.XXX::&:::XXX.XXX", "XXX....::::M:XXX.XXX", … Software Development python | |
Hi, I'm trying to build a simple python program that will total how many hours a worker has worked based on a start time and end time entry but the problem is this "simple" problem is becoming very complicated and i'm affraid i'm way off base and digging deeper and … Software Development python | |
Hi, I am pretty new with assembly so please bear with me if this question sounds stupid :) I am teaching myself OS development from resources of the web. I came across this tutorial [URL="http://osdever.net/bkerndev/Docs/gdt.htm"]here[/URL] which talks about setting up GDT. I don't really get it when it is to … Software Development assembly | |
Hello, I have done some research on playing .wav files in C++(As you can only play .wav files) and I've been having some trouble. The coding below works, it just doesn't play the whole song. It plays around 10 seconds of it, then stops. Does anyone have any suggestions? I … Software Development c++ | |
Greetings everyone... :) I'm new to the DaniWeb community & it looks like a great place to learn from others. As a programmer with very little experience, other than textbooks & class, I'm looking for help in learning to code real world problems effectively. I'm currently reading: "Teach Yourself Java … Software Development java | |
I am trying to read lines from a .txt file and put them to a vector like this but when I run the program, the computer get stuck. The file is only about 50 lines. I wonder what could be wrong with this code. [code] ifstream File("C:\\Gli\\temp\\File1.txt"); std::vector<string> For; std::string … Software Development c++ file-system | |
Okay, i've been working on this assignment for hours. I'm a total python newb but i've done pretty well so far. I'm stumped now though. I was hoping someone could point me in the right direction as to why i'm getting the error message below. The program is supposed to … Software Development python | |
Just for the heck of it I'm building a graphic editor, mainly to see how far I can take it and how much I can learn as I go. I'm having a problem with Image.Save. First I have an MDI parent form from which graphic files can be opened. After … Software Development file-stream image vb.net | |
I'm trying to create a function that uses loops to determine the roots of an equation using the Newton-Raphson method. I have my Newton function set up to take the input from my main prog, calculate the roots, and then return them back into the main prog. Somewhere along the … Software Development c++ | |
hello I have an error with template class and I can not understand what is the problem? the code illustrate the arrangement of many of books by its publishers' names and if the books have same publisher arrange them by the title of the book . [COLOR="Red"]the error is instantiated … Software Development c++ linked-list | |
Hello all, I am having a bit of a problem with a part of my assignment I hope you can help me out with. I created an abstract baseclass called Geometry and 3 derived classes called Box, Sphere, and Cylinder. I am having a few problems though and I hope … | |
I'm making a "simple" two-form Windows app. In the first form, when a button is hit, I'm trying to instantiate the second form and pass a variable to it. That variable is valid (and a watch indicates no changes) until I get into the button_click routine, then suddenly it's null! … Software Development | |
Well another problem, sorry for constantly asking. My program is coming along well i think, it creates the file writes the data to it but it crashes when i try to view the information. i'm not sure if its an error with my loaddata() function or my viewcharacter() function [code=c] … Software Development c data-structure | |
HOW CAN I MAKE A SCORING PROGRAM WHERE IN WHEN A GAME IS PLAYED THERE IS A PART WHERE THE TOP 3 PLAYERS WILL BE DISPLAYED, FOR EXAMPLE WHEN A PROGRAM IS RUNNING 3 PLAYERS WILL PLAY ONE AFTER ANOTHER, SO THE SCORES WILL BE STORED IN AN ARRAY OR … Software Development c++ | |
Hi, I have a two dimensional vector and I am trying to access all the elements of one row at a time. I am getting a syntax error. Following is my code : std::vector<int> row; std::vector<std::vector<int> > event(5,row); for(lv = 0; lv < 5; lv++) { for(int gno=event[lv].begin; gno != … Software Development c++ | |
Hi ... Can u plzz help me .. i want to put maximum validation for each control on my form.. it contain a textbox(input only alphabets), a combo box(display only Mr,Mrs, Miss), a datagrid.. and also how do i put a tool tip text on a textbox.. Note for the … Software Development vb.net | |
Hi, I have generated random unit vector. I would like to rotate it around the axes X,Y,Z in a random way. I thought that I generate 3 random numbers, e.g. 0,1,2. And if the random number is 0, then rotate the vector around X, And if the random number is … Software Development c++ | |
What ho Boys and Girls, I'm attempting to make a login page in a windows application in this loverly C# visual studio express 2008 and the problem is I'm a right dimbo,lol. Thus far I have created a SQL Database of 3 columns and a pretty form with username and … Software Development visual-studio | |
I am working on a home work assignment which is: "Write a program that will allow the user to enter an infix expression terminated by '=' your program will convert to Postfix notation" enter 3+7-6/2*8+7= prints 3 7 + 6 2 / 8 * - 7 + I have written … Software Development c++ | |
If anyone has a minute, I could use some help. Been working on this program all day. I know it's hard trying to understand someone's code and logic...but I'm hoping there is an easy solution here. My program needs to be able to read and write files at the push … Software Development java java-swing | |
Is there a way to set exact coordinates for background image or it is limited to layout options? Software Development image | |
Dear all I am still bit new in shell script area.I am writing down a shell script which I guess somewhere wrong so please kindly correct it. I would be greatful for that. What I actually want from this shell script is that it will move all the files one … Software Development shell-scripting windows-server | |
Hi. I'm trying to write a program that prompts the user of a message at a particular date. For example, a memorable date is set, and the program recognises this date from the code and lists a message. I would like to know how to make something that can capture … Software Development c++ | |
Hi guys, Okay so lets say I've got a functions program that asks the user for a product quantity, the cost to make the product, and the selling price of the product. I want to make a function called total() to receive either the quantity and cost, or the quantity … Software Development c |
The End.