132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ich bin würdig

Can someone tell me what's wrong with my syntax.. THanks [CODE] #include<stdio.h> #include<conio.h> void FACTORIAL(int factorial=1, int N) {int y; {for(y==1;y<=N;y++) factorial=factorial*y; printf("The factorial of %d is %d", N,factorial);} } void main() {clrscr(); printf("Please enter a no."); scanf("%d",&N); FACTORIAL(factorial=1,N); getch(); } [/CODE]

Software Development c++
Member Avatar for Narue
0
107
Member Avatar for bpacheco1227

I need to sort three numbers that are entered in three different textboxes and display these numbers ascending and when I press a different button display them descending. Now I think that I need to put these three numbers into an array, sort and display, but I'm not really too …

Software Development vb.net
Member Avatar for Muhammad Faruqi
0
3K
Member Avatar for Tom_Weston

[CODE]#include <iostream> #include <windows.h> #include <string> using namespace std; void main() { string run; cin >> run; ShellExecute(NULL, NULL, run /*<<<the error*/, NULL, NULL, SW_SHOWNORMAL); }[/CODE] I want it so if i enter a file path, it open. If i replace run with "E:/test.exe", it works... but i want it …

Software Development c++
Member Avatar for Tom_Weston
0
176
Member Avatar for fesago90

Well, I read that endl 'flushes' the output buffer as opposed to \n. Now what does that mean (In what way could that be useful)?

Software Development c++
Member Avatar for seanwalsh1984
0
578
Member Avatar for trejorchest

I'm trying to write the code for the Game of Life program, using arrays and for loops. I based most of my code on what my teacher did in class and modified it to fit the requirements of my assignment. I've hit a wall, though. When I execute the program, …

Software Development c++ unix
Member Avatar for trejorchest
0
224
Member Avatar for hladdha.bhl2009

I am Making A program for malking a phonebook. for that i am storing a list in dictionary. Like this: [code] phbuk={} def add(): a=raw_input('Name :') b=raw_input('Email :') c=raw_input('Mobile :') name=[a,b,c] d=len(phbuk) phbuk[d+1]=name [/code] Now if i want to delete a particular record just by giving name then how can …

Software Development python
Member Avatar for JoshuaBurleson
0
257
Member Avatar for Justinedeleon

My deadlines are running @.@ please help me on how to make a curve fit for this little ballie dude i created. again as a proof of what im doing . can someone help me with this? i need to come up with something like --> ":3" thanks guys. [CODE]import …

Software Development java
Member Avatar for hfx642
0
677
Member Avatar for herstein

Hey guys. I am trying to write a programme (not using scanner class) which prints the smallest number in an external text file called README.txt. Anyway I included some explanation of what I am doing so hopefully it's clear. What this programme prints is 0.0, which is not even a …

Software Development java
Member Avatar for JamesCherrill
0
127
Member Avatar for wannas

Hi there, I tried to compile a c++ code but got a fatal error. I should include net/netdb.h into my directory,but i can't find it anywhere. is there any website to download net/netdb.h??

Software Development c++
Member Avatar for wannas
0
3K
Member Avatar for swissknife007

[CODE]#include<stdio.h> #include<conio.h> ins(int tree[15],int n,int item) {int ptr,par=0; printf("\nitem here is%d \t\n",item); n=n+1; ptr=n; while(ptr>1) {par=ptr/2; if(item<=tree[par]) {tree[ptr]=item;return;} tree[ptr]=tree[par]; ptr=par; } tree[1]=item; return; } del(int tree[15] ,int n,int item) {int last,right,left,ptr=0; item=tree[1]; last=tree[n]; ptr=1;left=2;right=3; while(right<=n) { if(last>=tree[ptr]) { tree[ptr]=last; return; } if(tree[right]<=tree[left]) { tree[ptr]=tree[left];ptr=left;} else{tree[ptr]=tree[right];ptr=right;} left=2*ptr;right=left+1; } if(left==n&&last<tree[left]) {ptr=left; } …

Software Development c
Member Avatar for swissknife007
0
158
Member Avatar for pradeep_java

How can I store a number with 10^6 digits in Java? Would BigInteger be the most appropriate while considering performance issues like memory and speed

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Justinedeleon

Oh. btw admin! sorry about my earlier thread. i promise not to do something like that ever again :) anyway. i was having trouble with my project and its about Multiplication with loops. i started with a few codes and im really frustrated with what im doing now. please let …

Software Development java programming-construct
Member Avatar for Justinedeleon
0
342
Member Avatar for josko91

hi, i am interested how is possible to work with python from dos and if somebody have some simple example.

Software Development python
Member Avatar for josko91
0
300
Member Avatar for sc0field1

I need to generate 500 random numbers from 200 to 1200 and use insertion to sort them. This is probaly simple for you guys but im confused. My problem is when i run the program all I get is 500 0's. Anyone help me out? [CODE]public class insertion{ public static …

Software Development java
Member Avatar for JamesCherrill
0
123
Member Avatar for rv1990

Please guys will you recommend any books or tutorials for C#? Thank you

Software Development c#
Member Avatar for Kekke
0
132
Member Avatar for alinutzu

Hi. I have an bounded datagridview with cell decimal different formating (N2 and N4). If I enter a 4.5265 value to a cell with N2, I formated this to appear 4.53 ... and this is wonderfull. My problem is when I try to save data ... in my sql table …

Software Development sql vb.net
Member Avatar for alinutzu
0
326
Member Avatar for devloper

Hello, is there any method by which i will get server.mappath in a class file ??

Software Development
Member Avatar for devloper
0
168
Member Avatar for davidhk35

I'm up to finish an assignment for my C++, but there must be some thing wrong with the codes.... hope someone will able to give me a hand~ so...here's the title assignment: Program generates a random math problem, dealing with the : addition, subtraction, multiplication, or division of integer values. …

Software Development c++
Member Avatar for davidhk35
0
145
Member Avatar for mukulbudania

I have made a grid and want to put text on each text block. can it be like some align command in graphics.. which allows us to align the text in each block... plz help me out with this....

Software Development c++
Member Avatar for ravenous
0
112
Member Avatar for skylinedrifter

Hey Fox... i wrote the program for finding the Mean of 4 integers (Thanks to Daniweb members) now im faced to also get the standard deviation of those numbers x=sqrt(X1+X2+X3+X4)/3 here's what i've come up with so far... [CODE]#include <iomanip> #include <iostream> #include <cmath> using namespace std; int main(void) { …

Software Development c++
Member Avatar for ravenous
0
1K
Member Avatar for angelineygrubay

need help ... i need to have a java code for the feistel block cipher .. i know you can help me ... ' please .. :p -- thank you in advance /..

Software Development java
Member Avatar for peter_budo
0
166
Member Avatar for xtinawp

Hello, I have just started in a java class and having trouble with first assignment. Our first assignment was to enter into Notepad++ and enter a java program provided to us. I did this and saved the program as Quiz1.java. The next step was to compile the file using the …

Software Development java
Member Avatar for peter_budo
0
1K
Member Avatar for gokhantiknaz

First i apologise for my english. Here is my problem... I got a web browser on my form. i'm navigatin to login page(1. Page). My user name and password comes from code. Then i click to submit button... Then navigating another page(2. page). İn the 2. page there are link. …

Software Development web-browser
Member Avatar for gokhantiknaz
0
723
Member Avatar for rohtash

How to create a simple password accepter program in C language

Software Development c
Member Avatar for Ich bin würdig
0
103
Member Avatar for aero31aero

Everytime I run this program and enter a new record, it gets terminated on these statements: [CODE] stud.pcent=((stud.mhin+stud.meng+stud.mmat+stud.msci+stud.msst)*100)/(mm.hin+mm.eng+mm.sst+mm.sci+mm.mat); fwrite(&stud,recsize,1,file); [/CODE] The whole program is this. It is only partially complete. [CODE] #include<conio.h> #include<iostream.h> #include<stdlib.h> #include<string.h> #include<stdio.h> #define UARROW 72 #define DARROW 80 #define ENTER 13 #define ESCAPE 27 int key; …

Software Development c++ file-system open-source
Member Avatar for aero31aero
0
195
Member Avatar for skylinedrifter

Hey guys... had a little problem while trying make this little program that would find the mean of 4 integers... here's what i have so far [CODE]#include <iomanip> #include <iostream> #include <cmath> using namespace std; int main(void) { int X1; int X2; int X3; int X4; int X; cout<<"Enter The …

Software Development c++
Member Avatar for brainfo
0
143
Member Avatar for Obelisk4

Hi everybody ^^ I'm quite a newbie in loading image file, so I've try to improve myself by loading the TGA image structure (You can found it at [url]http://en.wikipedia.org/wiki/Truevision_TGA[/url], I'm quite believe in the information there) My problem is after loading and draw it onto the screen using OpenGL ES, …

Software Development c++ image opengl
Member Avatar for Greywolf333
0
978
Member Avatar for Captain_Jack

I'm writing a small app to collect IE command diag. The problem is it's not waiting till the process finishes and it's errors out in the next line. My goal is to copy the log and paste it under a folder in Desktop [CODE]Try Process.Start("C:\Program Files\Internet Explorer\iediagcmd.exe") My.Computer.FileSystem.CopyFile(USERPROFILE & "\Desktop\IEDiag.cab", …

Software Development vb.net
Member Avatar for Captain_Jack
0
1K
Member Avatar for brainfo

I am a beginner in c++ and now i reached in array processing binary search. my program is being compiled but it is not showing any result. Please help me out. [ICODE] #include<iostream.h> #include<conio.h> const int n=10; void main(){ int a[n] , l , initial, final, mid,data; for(l=0; l<n; l++) …

Software Development c++
Member Avatar for brainfo
0
132
Member Avatar for ckwolfe

Hello everyone, I've been doing a project for class in Haskell. Basically I've completed my program except some parts in my lexer function. I have functions marked undefined where I haven't completed it. [CODE]lexer :: String -> Pos -> [Token] lexer str pos = case str of x:xs | isSpace …

Software Development
Member Avatar for Rashakil Fol
0
395
Member Avatar for gogic

Am creating small aplication like a phonebook, but i dont know which database to use ? any sugestions? I wont something that is free, easy to implement with c#, and just a local database not some big server staff

Software Development
Member Avatar for kasun757
0
629
Member Avatar for syjytg

I have the code [CODE] import sound def rem_vocals(snd): '''Return a copy of the original sound with vocals removed. The original sound is unmodified. The number of samples in the copied sound is the same as the original file.''' new_song=sound.copy(snd) for samp in new_song: left=(sound.get_left(samp)) right=(sound.get_right(samp)) result=(left-right)/2.0 Left=sound.set_left(samp, int (result)) …

Software Development python
Member Avatar for syjytg
0
343
Member Avatar for RenanLazarotto

Hello guys! This is my current code: [CODE]using System; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; namespace Finalizador_de_Processos { public partial class Form1 : Form { int IndexProcesso = 0; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ListaProcessos(""); } private void ListaProcessos(string name) { if (textBox1.Text …

Software Development listview
Member Avatar for RenanLazarotto
0
118
Member Avatar for inspek

I got a matrix adjency that i want to transform in an adjency list and i got this error that i cant figure out... main.cpp|65|error: cannot convert 'int (*)[25]' to 'int**' for argument '1' to 'Ville** conversion(int**, Ville**, int) main.cpp|70|error: cannot convert 'int (*)[25]' to 'int**' for argument '1' to …

Software Development algorithm c++
Member Avatar for inspek
0
173
Member Avatar for tootiemae

How can i write a java program that will read the radius and height of a cylinder and compute the volume using the formulas Area= raduis*raduis*3.14159 and Volume= area*height, and have the program report the area of the bottom of the cylinder and the voulme of the cylinder.

Software Development java
Member Avatar for k-broxe
0
246
Member Avatar for Sai Sotes

Guys please help me make a simple code for this!!

Software Development gui java
Member Avatar for Sai Sotes
0
344
Member Avatar for mhamy

Can you explain to me what's the meaning of the algorithm of SHA-1? ========================================================================== [CODE]package Finals; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA { private static String convertToHex(byte[] data) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < data.length; i++) { int halfbyte = …

Software Development algorithm java
Member Avatar for JeffGrigg
0
176
Member Avatar for theju112

[CODE] #include<stdio.h> #include<stdlib.h> typedef struct a { int data; struct a* next; }node; void addatbeg(); void delete(); void display(); node *first=NULL; int main() { int ch; while(1) { printf("\n1:to add elements \n2:to delete elements\n 3:to display elements"); scanf("%d",&ch); switch(ch) { case 1:addatbeg(); break; case 2:delete(); break; case 3:display(); break; default:printf("\n …

Software Development c
Member Avatar for theju112
0
395
Member Avatar for mps727

I keep seeing a private assembly being defined as an assembly used by only one application, existing in the same directory or a subdirectory. Does this mean that if I have two applications in the same directory they can actually both use the private assembly? Or do I need to …

Software Development assembly
Member Avatar for mps727
0
147
Member Avatar for muzhdah

How i can add data to database through combobox but the data is foreign key please help me.....

Software Development vb.net
Member Avatar for Netcode
0
66
Member Avatar for d3fined

[CODE]s = raw_input("Enter a string: ") a = 0 i = 0 for i in range(len(s)): if s[i] == ' ': a = a + 1 print str(a) + '. ' + 'There was a space in position ' + str(i) + '.' [/CODE] i keep on trying to sub …

Software Development python
Member Avatar for ScottieF
0
113
Member Avatar for asd1234

HI, At the moment I'm facing a problem. I have a datagridview1 in FORM1 and datagridview2 in FORM2. I want to duplicate the data in datagridview1 to datqagridview2 in another form. The code I used is: FORM1: [CODE] OdbcCommand bcCom2 = new OdbcCommand(); bcCom2.CommandText = "" + content + ""; …

Software Development dataset
Member Avatar for Mitja Bonca
0
126
Member Avatar for Tyler212

I have been working with python for about a month now, but today I came across a problem I have yet to see; multiplication tables. I have absolutely no idea where to start or how to begin to format said table. The problem will be listed below, and if anyone …

Software Development python
Member Avatar for ScottieF
0
2K
Member Avatar for Ryden

Hello, I was asked to write a program that starts with a JFileChooser, the user is asked to choose a file. If at anytime during any part of this program, the user hits "cancel" or "yes" when the dialog shows "do you want to continue?" the program will return back …

Software Development file-system java java-swing
Member Avatar for Taywin
0
343
Member Avatar for Laxman2809

Ok thank you for that explanations, but now I have an issue with my code. My remove function doesn't see to be working. Now I think it has to do with the fact it is not setting that CDs information back to empty or 0. Also it only stores 1 …

Software Development java legal
Member Avatar for Laxman2809
0
148
Member Avatar for Cross213

What's wrong with this code, I'm getting LNK errors [CODE]#include "Queue.h" int main() { Queue <int> q; // q is an object q.showQ(); q.insert(72); q.insert(36); q.insert(43); q.showQ(); q.remove(); q.showQ(); return 0; } [/CODE]

Software Development c++ queue
Member Avatar for Cross213
0
153
Member Avatar for nousername19

hi everyone i have to write c++ code to implement a disjoint set class to make a maze generator. i have the disjoint set class working fine. my code for the maze generator is not working.. kindly help [code] #include <iostream> #include <stdlib.h> #include <stdio.h> #include <time.h> #include "djset.h" using …

Software Development c++
Member Avatar for WaltP
0
425
Member Avatar for danthevan

I am a student and we are working on a project in Access database but in windows. When I go back home I tried to run and edit the project but it didn't work. Notice that I don't have Access installed on my mac. My questions: 1- do I have …

Software Development java microsoft-access
Member Avatar for Ezzaral
0
145
Member Avatar for liphoso

i have the code below, i want to use a switch-case to check the grade of the student, my problem is that the compiler tells me that swithc only takes intergers as arguments. i had thought i cud have a statement like case a > b where a and b …

Software Development java
Member Avatar for JamesCherrill
0
167
Member Avatar for chinesethunda

How do I convert this to assembly? [CODE=c]static unsigned char i, j, aResult[15]; /* Define Vars */ static const unsigned char aData[]={0xA0,0x1F,0xA5,0xB2,0x00} ; /* Define Data */ /* Initialize aResult array to all zeros */ for(i=0;i<15;i++){ aResult[i] = 0; } i=0; /* Set index for aData array */ while(aData[i] != …

Software Development assembly c c# c++
Member Avatar for skaa
0
169

The End.