132,726 Archived Topics
Remove Filter ![]() | |
Hi , im trying to create a simple code that generate random numbers Im having two problem , 1. For some reason randomize() function does not work on VisualC++6 2. I didnt really got the idea on how to set the range of the numbers that will be generated using … Software Development c++ | |
It appears every one is Usung Standard C++, Am using Borland and in my college we are stil stading borland can any one brief me about standard an may be is there need for me to switch to standard Software Development c++ | |
I have a s1.txt like this : 3,R,G,T 1,E 9,T,U,Y,O Now I want to read each character of a each line ...do some analysis and then read each character of the next line ...do some analysis ...so on till EOF. How do I go abt this? Well ...I jus wrote … Software Development c++ | |
sorry, i don't know which forum i should post this question. Q) a machine language program to input 2 numbers then adds 2 numbers then output the single-character result. this is what i got so far but it doesn't work..any help plz~~ [code] 0000 4900FE ;Get input from the user … Software Development assembly first-post | |
I tried to write a program that uses if loops to check if a char variable had certain value: [code=c++] /* FreeFull Software */ #include <iostream> using namespace std; float dark_rays; float light_rays; float ball; float universe; float matter; char menu; char darkmenu; char lightmenu; int main() { cout << … Software Development c++ | |
Hi guys, im currently programming in 16bit dos for my class.. Is there a better technique (as to saving space/memory) to writing what i have down here, or that is the best it will get? [code] mov dx, ' ' int 21h mov dx, '|' int 21h mov dx, ' … Software Development assembly | |
I mean I can change [code] double d; d= atof("99.0"); [/code] this with %.2f to ---- 99.0 to 99.00 but how can I take from user an integer and change it %.2f??? what should I write in atof ???? anyone to understand ??? :) Software Development c | |
Hi, Is there anyway i can put my every entry of username in a file like this e.g. using any auto number generation with every entry 1. Test 2. Hello After i put them in a file like this i want to search and delete based on the numbers. e.g. … Software Development | |
[b][/b][u][/u]my Question Is: Design And Implement A Programme That Helps To Analyse The Flow Of Patients Into The Emergency Room. Enter The Integers That Represents The Number Of Patients That Entered The Emergency Room During Each Hour Of The Day For Four Weeks In A Three-dimensional Array Then Analyze The … Software Development c++ | |
hi all! i m trying to input an array of strings same as we input array of integers. by declaring a 2 dimensianal array runnig 2 for loops like [code] for(i=0;i<m;i++) for(j=0;j<n;j++) cin>>arr[i,j] [/code] plz help me i m in great confusion because by doing in this way, i m … Software Development c++ | |
I'm trying to make a simple IM program. I created a server and client that connects specifically to my computer using Winsock2.h I tested it and it works from my computer to my server, from my roommates computer to my server, the library computer to my server, but I had … Software Development c client-server | |
Hello, I'm new... And this is my first code display. [code] [code=Language] #include <iostream.h> #include <iomanip.h> #include <ctype.h> #include <stdio.h> main() { struct figure_info { int a = 1; int who = 2; int where = 3; int when = 4; int how = 5; int why = 7; return; … | |
Hi, I am writing a function to unzip a zipped file. But I'm getting this error, "Cast from string "C:\temp\FileName.zip" to type 'Integer' is not valid." Below is my coding, I got this error in the bold line. May I know what does the casting error mean here? Why do … Software Development vb.net | |
hello all, i need to write a script for windows server 2003 that will allow me to add new users to the Active Directory, but not conventionally, as i will soon explain. This is a full command right now: dsadd user "CN=ATEST001,OU=local-admins,DC=red,DC=qumranet,DC=com" -display "ATEST001 FAMILYNAME" -pwd 123456 -u RED\administrator -p … Software Development python windows-server | |
I've so far studied C++ through Robert Lafore's Book but to understand more variations of recursion I need some example codes for recursions hoping good from u :mrgreen: Software Development c++ | |
Hey everyone, I'm working on this program for class but I'm getting an error in the [I]sumGrades[/I] function saying 'inp' is undeclared. Could someone give me a hand? #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; // initializes count of females, count of males, female GPA sum, … Software Development c++ file-stream | |
Hey, I'm working on another program for class which is to determine the day of the year given the date the user inputs. The date will be input in the xx-xx-xxxx format. Is there a way I can cin Mon, skip char, cin Day, skip char, cin Year ? How … Software Development c++ | |
I need help coming up with an algorithm to determine if the user clicks on any point of a line. A line is given by two points. So you have x1, y1 positions of the first point, and x2,y2 positions of the second point. I need to determine in the … | |
[COLOR=#555555]Hey, [/COLOR] [COLOR=#555555]I have a singly linked list that has a show all function that looks like this[/COLOR] [code] [COLOR=#555555]virtual void Show()[/COLOR] [COLOR=#555555] {[/COLOR] [COLOR=#555555] myObject->Show(); myNext->Show();[/COLOR] [COLOR=#555555] } [/COLOR] [/code] [COLOR=#555555]Where myObject is a class ordered by an int. This function prints out all information in the list.[/COLOR] [COLOR=#555555]I … Software Development c++ linked-list | |
Hello; can any one help me to know how to check that my code is corrsct in Textpad ? there is no output like C++ ;so it make proplem fpr me . this is the code : [code];Assi#1 .model small .stack 100h .data F1 sword 12 dup(12,4,7,-8,1,10,8,-4,20,44,3,-9) F2 sword 12 … Software Development assembly | |
Hi all. This is my first post here, and i need urgent help with a programming assignment. I am working on an assignment which requires me to build a simple shell. My shell must handle simple commands with arguements and ones with piping and I/O redirection. The problem is i … Software Development c first-post | |
Again i (= As though authorization, i check on presence of record in db. Why that i do not receive the necessary result. Prompt in what a problem. Thankful in advance. In db the table users a kind: |id|acc|pswd |...| [code] ================== public class DrugstoreFrame extends JFrame { MsAcDatabase database; … Software Development java | |
im facing problems installing the jdbc driver on my machine.... the OS on my machine is fedora core 6... plz help Software Development java | |
I have created a project with about 7 files including 3 header files and 3 implementation files. I am getting a multiple definition error when compiling for one specific file of class. I have checked that if there is more than one allocation of storage for identifiers, this error arises. … | |
Hi. I am trying to write a program that asks for the wholesale cost of an item and its markup percentage, and displays the retail price. Well, I did that the regular way, but... My instructions require for me to: *Create a function that accepts the wholesale cost and markup … Software Development c++ | |
i need ur help to complete this assignment Write a C program which, reads from standard input, replaces all the occurrences of the characters supplied by the 1st command line argument, with the corresponding characters supplied by the 2nd command line argument, and writes the output to a file supplied … Software Development c | |
Hi! How can I read all files in a directory, when I don't know which files are there? Sincerely Jasmina Jeleva! Software Development c++ | |
I'm trying to figure out how to work with an operating system called GS-DOS. (Full name appears to be 'General Software Embedded[v2]'). It is being used in a handheld barcode scanner I have been asked to work with, in the hopes that I can figure out how to program it. … Software Development operating-system | |
[COLOR=#444444]Hi, I want to make a program that copy’s itself while running[/COLOR] [COLOR=#444444]Can you please help!!!!? [/COLOR] [COLOR=#444444][/COLOR] [COLOR=#444444]Visual basic 8.0[/COLOR] Software Development visual-basic | |
hello there i need help on encrypting and decrypting words. this is my task i have to do: [COLOR=#000000]Implement a piece of software that can be used to encrypt and decrypt words. At its simplest, the software could use a simple translation process that replaces each letter with a different … | |
Hi During writing a code, I need to define dynamic arrays several times, so I wrote the following simple function for defining a double 1D array: [code=c] /*---------------------------------------------------------------------------- Function for Difining 1-D Dynaimcs Arrays for Storing Double Values ------------------------------------------------------------------------------*/ double *allocation_1d_double(int size) { double *array; if ( (array = (double … Software Development c | |
[COLOR=#555555]Hi, I’m new to c++ and am looking for some help. I’ve searched through most of the site but cant find exactly what I need, so thought I’d ask. [/COLOR] [COLOR=#555555]I need to read in strings (arrays of char) from a text file in a function then pass them back … Software Development c++ | |
I want to see if a certain word is in a text file, how do I go about that? Software Development python | |
Hello all, Is there any algorithm to convert a python tuple to MySql query. Ex: [B] ('*','name','sliver')[/B] should convert to [B] select [Pri_Key] from [All Tables] where 'name' = 'sliver';[/B] I have been able to do so ... but my algorithm looks very ugly and have to process everything bit … | |
G'day, I've been googling for the last three weeks :eek: trying to get an example of a program larger than a simple "Hello World" that works inside it's own GUI. I've been working on the "GUI with calculator" in this same section of Daniweb, but as soon as I put … Software Development first-post gui python | |
Hi everyone! I am new with this site so I try to explain my problem. I have a code in VB, how can I change the code to give me the ouput in text file(exel favorite)??? Software Development vb.net | |
dear people i have an assignment due in one hour and its not working. i have to write a program with four functions that finds out and print the twin prime numbers. i followed every step in the assignment and its not giving any error but i dont have any … Software Development c++ | |
[code=c]cout << "\nYou trade your sword for a battle axe."; inventory[0] = "battle axe"; cout << "\nYour items:\n"; for (int i = 0; i < numItems; ++i) cout << inventory[i] << endl; [/code] Uhh well the question is that I really dont get the ++i Why would you use the … Software Development c c# c++ first-post | |
import java.applet.*; import java.awt.*; import java.awt.event.*; [B]public class MathApplet extends Applet implements ActionListener [/B]{ private Label lblPrompt,lblNom1,lblNom2,lblCampur; private TextField txtNom1,txtNom2; private Button btnKira; //isytiharkan button public void init() { lblPrompt=new Label("masukkan 2 nombor integer"); lblNom1=new Label("nombor Pertama:"); lblNom2=new Label("nombor kedua:"); txtNom1=new TextField("0"); txtNom2=new TextField("0"); lblCampur=new Label("Hasil campur:0"); btnKira=new Button("Kira");//objek btn … | |
Hi every1, i have trouble doing my homework. Could anyone help. the probelm is everytime when i set the degree and it prints out the last degree i entered. when i use the default constructor (withour entering any infomation) to create the UndergradStudent instance, it doesn't allow me to set … Software Development java | |
Write a C/C++ program which consists of a user-define function Prime. This function will take a number and check that the number is prime or not if the number is prime Display The number is Prime other wise display The number is not Prime Call this function in main program. Software Development c++ | |
Hi all, I have faced some problem ina coding. What I have to do is just to replace all "big" with "small" from the string " The world is big. there are big cities. Bigger city mean bigger population. Towns are getting smaller". My code is [code=c] #include<stdlib.h> #include<stdio.h> #include<string.h> … | |
I am using HLA to learn assembly. I choosen HLA because of different reason. Main topic: I try to do a HLA script using try..exception..endtry statement but i have error... can u tell me where i mixed up[CODE] program driver; #include("stdlib.hhf"); #include("excepts.hhf"); static goodinteger: int32; i:int32; begin driver; repeat mov(false,goodinteger); … Software Development assembly | |
Hi I've just picked up a copy of SAMS teach yourself C in 21 days (I dont think Ill finish it that quickly) because I wanted to get into programming. I've worked through the first chapter, but keep enountering a problem: my programs exit before I can see what they … | |
Can someone help me fix this? After I compile I get ilegal start of expression for the line that says public String getBook(). I cannot see why this is not allowed. My output should be as follows: Jane Doe Long night 12.5 Long Night by Jane Doe I am supposed … Software Development java | |
How do i find the dimensions of a button? Example: I want to find the width of the start button, and the height and then assign them to seperate ints. int width=WindowWidth(Start); int height=WindowHeight(Start); The abbove functions are totally made up, so they are just examples... Software Development c++ |
The End.