132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kyakobi84

What is the code for converting from binary to decimal???????? :rolleyes:

Software Development first-post vb.net
Member Avatar for kyakobi84
0
148
Member Avatar for glamo

CAN ANYONE EXPLAIN THE OUTPUT OF THESE PROGRAMS: [code] /* Explain the output*/ #include<stdio.h> int main() { if(printf(5+"Good")>0) printf("morning"); return(0); } [/code] [code] /*Debuh as per i/p o/p*/ #include<stdio.h> int main() { long steps,fval,bstp,cnt1; int num,unit,box[2][13],cnt2,cnt3,cnt4; printf("Enter number:"); scanf("%d",&num); num=num<1?1:num>12?num:12; for(steps=1;cnt1=2;cnt1<=num;steps *= cnt1++); for(cnt1=1;cnt1<=steps;cnt1++) { for(cnt2=1;cnt2<=num;cnt2++) box[0][cnt2]=cnt2; for(fval=steps;bstp=cnt1;cnt2=1;cnt2<num;cnt2++) { if(bstp=0) …

Software Development c
Member Avatar for Narue
0
146
Member Avatar for tayspen

Ok, so in a part of my app i need the user to be able to specify a time to cound down form then when the time is hit. it fires an event. i have all that. the problem is i want to be able to see the time ticking …

Software Development
Member Avatar for tayspen
0
164
Member Avatar for jindalarpan

hi all i have installed jdk1.5.0 in gentoo linux and having the following problem can any one help me out what should be done i had just installed gentoo. i am not able to set a java heap size of more than 2600m on these machines. I m getting following …

Software Development java linux-kernel
Member Avatar for Kate Albany
0
164
Member Avatar for FinnDutch

Hello! I'm a total dummy when it comes to programming, and now I have a heck of a data extracing job to do for my graduation thesis :cry: Hopefully somebody can help me in the right direction here, because a whole day of surfing didn't get me to the right …

Software Development display hard-drive html-css python
Member Avatar for FinnDutch
0
156
Member Avatar for erikkl2000

Hello all i am in need of some help with a datatier layout. I understand the gui, bussinessRules, but i am really not making any progress on the data tier. i have been tring to get a grip on the this one for over a week. I completely understand the …

Software Development dataset gui vb.net
Member Avatar for cpopham
0
139
Member Avatar for djbsabkcb

My program is suppose to read in numbers and tokens. However, it will only read in the first number and go into a loop. Never reads the next number or does the computations. Can't figure out what's wrong. [code] #include <iostream> #include <string> #include <iomanip> #include <fstream> #include <cmath> #include …

Software Development c++ file-stream
Member Avatar for djbsabkcb
0
136
Member Avatar for SpS

Plz See [code] #include<stdio.h> #define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0])) int array[] = {23,34,12,17,204,99,16}; int main() { if(-1<= (TOTAL_ELEMENTS-2) ) printf("%s","gotcha\n"); else printf("%s","oops\n"); return 0; } [/code] why is it printing oops

Software Development c
Member Avatar for SpS
0
168
Member Avatar for SpS

From where can i find the header file unistd.h...one of my program requires it

Software Development c
Member Avatar for Narue
0
120
Member Avatar for martinr

Hi i'm a C++ Noob, i'm trying to write a c++ function to listen for snmp traffic and send back some variables to the source. i'm not 100% sure of what i'm doing :o i'm including Wsnmp.h and also linking to Wsnmp32.lib from within visual c++ however it doesn't recognise …

Software Development c++
Member Avatar for CrazyScntst
0
489
Member Avatar for Alan Lewis

Dear all, I'm developing an SNMP manager using WinSNMP API. While starting up the SNMP by calling the function SnmpStartup, it returns SNMPAPI_SUCCESS, but strangely the 5 output parameters are not defined after the function is executed. Is this normal? Why is this happenning? What should I do? Regards, Alan …

Software Development api c c# c++
Member Avatar for CrazyScntst
0
823
Member Avatar for hunanrostomyan

Hi everyone, I have got this code` [code]//---------------------------------------------------- #include <cstdlib> #include <iostream> #include <fstream> using namespace std; int main(int argc, char *argv[]) { start: ofstream examplefile ("example.txt"); examplefile<<""; const int SIZE = 100; char msg[SIZE]; cin.getline(msg,SIZE); examplefile << msg; examplefile.close(); cin.get(); system("cls"); goto start; return 0; } //--------------------------------------------------------[/code] And when …

Software Development c++
Member Avatar for Narue
0
167
Member Avatar for WrEcK

i'm having a little trouble grasping the concept of this. If someone could help it would be great. Its part of my assignment...no i don't want u to do it for i just need help. 1. declare an ofstream foutput in main function 2. open a file in main function …

Software Development c
Member Avatar for Narue
0
117
Member Avatar for djbsabkcb

I keep getting this error message and the code below: I can't figure out why any help would be appreciated. Line 51 is this statement in my code: Element* Stack::Element::Prev(void) error message: [code] In file included from Stack03.cpp:28: Stack03.h:81:7: warning: no newline at end of file Stack03.cpp:51: syntax error before …

Software Development c c# c++
Member Avatar for Narue
0
147
Member Avatar for mina1984

hey, um i was wondering if anyone could help me with a program where if the user inputs a number no more than 5 digits and the program tells you how many times the number 2 appears in that number. i know that the modulus and division have to be …

Software Development c++
Member Avatar for mina1984
0
229
Member Avatar for aminura

I have a doubt regarding constructor in this program-- [CODE]include<iostream.h> class A { private: int a; float b; A(int j) { a=j; cout<<"\n a is"<<a; } public: A() { cout<<"\n Default constructor invoked\n"; a++; b=0; } A(int j,float i) { a=j; b=i; cout<<"\n value"<<a<<"and"<<b<<endl; } public: void show() { int …

Software Development c++ visual-basic
Member Avatar for Narue
0
400
Member Avatar for Lunaticrr

I have 3 text boxes and one command button on this form. Users are supposed to input something into text1 and text2 and click the command button for text3 to show the results. However I would like the programme to consider the values of text1 and text2 and based the …

Software Development visual-basic
Member Avatar for jwshepherd
0
145
Member Avatar for tom_h_500

I was wondering if it was possible for me to write a simple program that either lets you use command prompt with visual basic (i.e. press a button and it does a command in CMD) if it can't be done in VB is there any other programming languages that allow …

Software Development visual-basic
Member Avatar for jwshepherd
0
190
Member Avatar for Lunaticrr

I know pictures can be added to picture boxes and backgrounds by using the "Properties" and adding something to "Picture". But I want to know how I can actually get the program to display an animation or picture say, after inputting something into an inputbox, or say after a particular …

Software Development display visual-basic
Member Avatar for jwshepherd
0
225
Member Avatar for CypriotShero

Hi... This is my first thread on this forum. I am on my final semester to be a computer engineer... Yet I can't decide a software project for my graduation, I am looking for briliant ideas with some details about acheiving them.. I am so in need for help... I …

Software Development microsoft
Member Avatar for Toulinwoek
0
190
Member Avatar for compshooter

OK, I've been banging my head against a wall for a few hours. And I need some sleep. Can someone please show my how to accept input and keep count of it so I can send WriteBytes2() the address of the buffer and the number of bytes entered? Here is …

Software Development c
Member Avatar for Narue
0
337
Member Avatar for coolgirl

Hello Can some one please explain what this statement is I am very new to C++ and VC++ statement sprintf(DirString,"%s/cl_log.csv",DirName); I could not understand what second argument Thanks in advance, Durga

Software Development c++
Member Avatar for winbatch
0
177
Member Avatar for tayspen

Is there a snippet of code that will stop the cd rom drive from being opened. if so what is it.

Software Development
Member Avatar for tayspen
0
139
Member Avatar for TennKV

Hello, I am having a problem with adding a row to my DataSet. I think I know what the problem is, but not how to correct it. I have several bound text boxes that fill from the DataSet. The first column is a numeric and the next several are text …

Software Development dataset email vb.net
Member Avatar for Bharati Krishna
0
217
Member Avatar for vegaseat

[B]Python and the JPEG Image File, Part 1, The Header[/B] [B]Intro[/B] The JPEG image file format (.jpg) is very popular on the internet because you can pack a lot of picture information into a relatively small file. There are competing file formats like GIF and PNG. GIF is rather limited …

Software Development file-system image python
0
681
Member Avatar for ashwinperti

Sir, I want to multiply a 2-D array of size 100 by 100 a[100] * b[100]; or a[100][100]; What is the way to multiply the two arrays. Ashwin Perti

Software Development c++
Member Avatar for Rashakil Fol
0
246
Member Avatar for Niklas

:mrgreen: I've just started learning and doing examples out of the book but I wanted to see if I could actually make something besides just copying stuff out of a book. So I tried to make an addition calculator. This isnt the entire source code but just a few snippets …

Software Development c++
Member Avatar for Niklas
0
257
Member Avatar for Acidburn

Can anyone help us out in this dept, everytime I go through my program when it terminates I get the famous windows: "main.exe has encountered a problem and needs to close. We are sorry for the inconvencience ........ Debug, Send Error Report, Don't Send Yep that one... Can anyone offer …

Software Development c++ oop
Member Avatar for Acidburn
0
257
Member Avatar for xinix

Hi all, I want to begin programming in either Java1 or Java2 (probably Java2 as it is the more recent). Are there any free Java2 compilers on the internet (like the Bloodshed C++ compiler) I could download? Thanks

Software Development java
Member Avatar for fiberoptik
0
178
Member Avatar for Ghost

Hi Everyone, Is there a way to make your own remote connection program (just for my use - at least fo now)? Something like goToMyPC. Any suggestions would be appreciated. Also, is this easier to do in Java/PHP? Thanks in advanced. PS: If anybody knows of a tutorial, that would …

Software Development c
Member Avatar for Narue
0
50
Member Avatar for Shun

This is begining to bug me. I have googled it. I have searched this site and I still have not managed to get the rounding to work the way I want! I have done the Math::Round() deal, I have tried System::Math::Round. I got desperate and looked to see what it …

Software Development asp.net c++ visual-studio
0
107
Member Avatar for server_crash

What's the point of a struct? I mean, isn't it basically the same thing as a class? So what it's used for?

Software Development c++
Member Avatar for server_crash
0
164
Member Avatar for rufusOT

heya folks. i'm working on an chunk of code here and i don't really understand what i am doing wrong in trying to increment and decrement a fraction. if you could provide some insight i would appreciate it. thanks. [CODE]#include <iostream.h> #include "fraction.h" void main( ) { Positive_Fraction a,b,c; int …

Software Development c++
Member Avatar for prog-bman
0
397
Member Avatar for arunmisra

i want to start the image processing in c language.but i m unable to load the any image(bmp,jpg,tif etc) in c file. any one can help me? thanking you

Software Development c image
Member Avatar for Narue
0
83
Member Avatar for Yandriel

Hello everyone out there, see the thing is that I just built my Tic Tac Toe and I want to add some color to my table, its not an assigment or anything I just want to make my different from the other kids in my class, thanks everyone :) :) …

Software Development c
Member Avatar for Narue
0
146
Member Avatar for c#dummie

hi i need to use serial port to transfer data from RFID tag to a computer. i already have these functions but i donno how to call them. please help me to call the functions so that i can use them to download data from RFID tag to computer (into …

Software Development api
0
114
Member Avatar for mina1984

hi , i had a problem with one of my programs im pretty sure everything is correct but when i run it it only asks me to input the last name but it would just print out the rest and not ask for any other input why is that? can …

Software Development c++
Member Avatar for mina1984
0
128
Member Avatar for mcupryk

I have a stored procedure and it is not saving the values in the table. How can I view that the stored procedure is saving the values. Private Sub DoSave() Dim ConnectionString As String = System.Configuration.ConfigurationSettings.AppSettings("FinSolMainDBConn") Dim connfinsol As New System.Data.SqlClient.SqlConnection(ConnectionString) Dim strsql As String Dim adapter As New SqlDataAdapter …

Software Development vb.net
Member Avatar for Letscode
0
206
Member Avatar for bops

hi guys and girls if any :P, im trying to find out how to determine the root directory of a computer, in c++ as part of a larger program im working on, im sure i heard before that there is some api call that can be used to do this, …

Software Development api c++
Member Avatar for bops
0
149
Member Avatar for Acidburn

[php] hangman::hangman( char * surname, int size) { name = new char[size]; encryption = new char[size]; strcpy(name,surname); for (int i = 0 ;i <size; i++) { encryption[i]='*'; } lives = 5; found = 0; } [/php] encryption seems to be heading over its borders!! the size = 45 ; I've …

Software Development c++ encryption
Member Avatar for Acidburn
0
161
Member Avatar for perlsu

Hi I got runtime error as "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ". How can I solve this problem? Can anyone explain me why this problem occurs? Thanks in advance.

Software Development java
Member Avatar for jwenting
0
69
Member Avatar for server_crash

Let's say I have 5 applets on the same page. How does the JVM respond to that? Will a new implementation be created for each applet, or does each applet share the jvm? Also, is there some priority, like the first applet added will be the first loaded? Hope that …

Software Development java
Member Avatar for jwenting
0
90
Member Avatar for glamo

:!: :!: :!: i am trying to make a chat applet ,first problem is that it is working for only single system,i want to know how to connect it with network and second there is some problem in my code it os showing some error which i am unable to …

Software Development java
Member Avatar for freesoft_2000
0
91
Member Avatar for Decoder

How do you time execution time?. I am writing a program in C++ to calculate Pi with a desired degree of precision/digits after the decimal point, and I have to calculate the time it takes to calculate for each desired precision. Can anyone help me? :o

Software Development c++
Member Avatar for Drowzee
0
141
Member Avatar for Acidburn

[php] #include <iostream> #include <fstream> #include <cstring> using namespace std; #include "NEW.H" int main() { return 0; } [/php] and the *.cpp file: [php] #include <iostream> #include <fstream> #include <cstring> using namespace std; #include "NEW.H" void hangman::LooseLife() { cout << "testing"<<endl; } [/php] and now the header file.... [php] #ifndef …

Software Development c++
Member Avatar for Drowzee
0
84
Member Avatar for SpS

This question was asked to me..plz see [code] #include<stdio.h> void change() { /*Write something in this function so that the output of printf in main function should give 5 . Do not change the main function */ } void main() { int i=5; change(); i=10; printf("%d",i); }[/code] and i answered …

Software Development c
Member Avatar for SpS
0
148
Member Avatar for deineMutti

Hola, I'm working on a personal-organizer applet and I'm having trouble saving my to-do lists. I want to save a vector that contains my table data as an object (don't feel like playing with text) and I'd like to save to the folder in my webspace where all of the …

Software Development file-stream hard-drive java
Member Avatar for freesoft_2000
0
247
Member Avatar for stinus

Hi all, I have a problem that is hopefully easy to solve for you guys: I have written a rather large C++ program as part of my Master's. Now, I have to use an open source C-library ([url]http://www.tbi.univie.ac.at/~ivo/RNA/RNAlib_toc.html[/url]). I have never tried to combine C and C++. To figure out …

Software Development c++ google open-source
Member Avatar for stinus
0
500
Member Avatar for Dark Master

hi forum, i m developing a simple web crawler in java.upon entering an URL, the crawler downloads the corresponding web page and continues this process.but i m having problem in accessing web pages which are redirected to a diferent URL.one such example is [URL=http://www.telegraphindia.com]www.telegraphindia.com[/URL] ,in which a new part gets …

Software Development java
Member Avatar for chrisbliss18
0
105
Member Avatar for Acidburn

[php] int j; for ( j= 0 ;j <sizeOfArray ; j++) { if( letter == array2[j] ) { ++found ; encryption[j] = array2[j]; } } if ( array2[j] =='\0' && found!=0) { cout << "not found" <<endl; --looselife; cout << "You now have" << looselife << "remianing" <<endl; } [/php] …

Software Development c++ encryption
Member Avatar for Narue
0
111

The End.