132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RisTar

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++
Member Avatar for WaltP
0
226
Member Avatar for Mpiangu

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++
Member Avatar for jwenting
0
127
Member Avatar for B.Y

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++
Member Avatar for WaltP
0
10K
Member Avatar for jack223

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
Member Avatar for Day Brown
0
2K
Member Avatar for FreeFull

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++
Member Avatar for vijayan121
0
158
Member Avatar for birdy

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
Member Avatar for Purple Avenger
0
81
Member Avatar for jerryseinfeld

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
Member Avatar for thekashyap
0
81
Member Avatar for shsh_shah

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
Member Avatar for shsh_shah
0
124
Member Avatar for chikwava

[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++
Member Avatar for naya22
0
97
Member Avatar for Gaurav arora

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++
Member Avatar for sirkraven
0
108
Member Avatar for CRD

Find out Which header or DLL files are needed for functions in C++? In other words how do you know which include headers are needed to do ferious user defined functions? Dick

Software Development c++
Member Avatar for Mpiangu
0
103
Member Avatar for nottoshabi

I wrote this code, and I'm having a little problem with it. The point of the code is for the user to enter a desired number, then that number gets subtracted by 45 then dived by the percentages and all that dived by 2. Also I dont know how to …

Software Development c++
Member Avatar for Ancient Dragon
0
325
Member Avatar for zacory

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
Member Avatar for zacory
0
90
Member Avatar for monkeytuesdays1
0
56
Member Avatar for NewKidWalking

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; …

Software Development c++ display
Member Avatar for ~s.o.s~
0
92
Member Avatar for wonder_gal

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
Member Avatar for wonder_gal
0
268
Member Avatar for grandprix

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
Member Avatar for jrcagle
0
106
Member Avatar for Osama Mehtab

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++
Member Avatar for Ancient Dragon
0
97
Member Avatar for Duki

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
Member Avatar for John A
0
103
Member Avatar for Duki

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++
Member Avatar for John A
0
244
Member Avatar for developer4321

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 …

Software Development algorithm java
Member Avatar for developer4321
0
95
Member Avatar for sirkraven

[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
Member Avatar for sirkraven
0
128
Member Avatar for Zay

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
Member Avatar for Evenbit
0
177
Member Avatar for Sebouh

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
Member Avatar for Infarction
0
117
Member Avatar for kapkan

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
Member Avatar for kapkan
0
82
Member Avatar for parul195

im facing problems installing the jdbc driver on my machine.... the OS on my machine is fedora core 6... plz help

Software Development java
Member Avatar for jbennet
0
74
Member Avatar for maverick786

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. …

Software Development c++ storage
Member Avatar for thekashyap
0
63
Member Avatar for naya22

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++
Member Avatar for thekashyap
0
105
Member Avatar for ck1212

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
Member Avatar for rowly
0
161
Member Avatar for jasssvj

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++
Member Avatar for vijayan121
0
1K
Member Avatar for EnderX

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
Member Avatar for jbennet
0
104
Member Avatar for jacsoft

[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
Member Avatar for PVBert
0
90
Member Avatar for Salim_22

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 …

Software Development email java
Member Avatar for Salim_22
0
123
Member Avatar for ahad

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
Member Avatar for Ancient Dragon
0
126
Member Avatar for sirkraven

[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++
Member Avatar for Ancient Dragon
0
106
Member Avatar for sneekula

I want to see if a certain word is in a text file, how do I go about that?

Software Development python
Member Avatar for sharma_vivek82
0
196
Member Avatar for sliver_752

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 …

Software Development algorithm python sql
Member Avatar for sharma_vivek82
0
681
Member Avatar for fredzik

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
Member Avatar for fredzik
0
162
Member Avatar for jan1024188

Hello, May I ask what extentions does boot files have?

Software Development c
Member Avatar for jan1024188
0
87
Member Avatar for IBGhost

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
Member Avatar for arjunsasidharan
0
80
Member Avatar for Riazansar

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++
Member Avatar for Riazansar
0
149
Member Avatar for Tauren

[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
Member Avatar for WaltP
0
132
Member Avatar for uswatun

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 …

Software Development gui java
Member Avatar for masijade
0
110
Member Avatar for AmyChow

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
Member Avatar for masijade
0
87
Member Avatar for Manzar

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++
Member Avatar for WaltP
0
102
Member Avatar for sap.hit21

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> …

Software Development c unix
Member Avatar for sap.hit21
0
94
Member Avatar for uaefame

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
Member Avatar for Evenbit
0
96
Member Avatar for pc0019

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 …

Software Development c c# c++
Member Avatar for pc0019
0
132
Member Avatar for alba07

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
Member Avatar for alba07
0
55
Member Avatar for Brent.tc

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++
Member Avatar for Ancient Dragon
0
115

The End.