132,726 Archived Topics
Remove Filter ![]() | |
i do not want to use strcmp() so i made it myself. here is my code: [code]#include<iostream.h> #include<conio.h> #include<stdio.h> int main() { char pass[50]; int strcomp(char pass); cout<<" ENTER THE PASSWORD "; gets(pass); int m=strcomp(pass); if(m==1) cout<<" congrats! correct password "; else cout<<" sorry wrong password "; } int strcomp(char … Software Development c++ | |
What is the easiest way of installing wxPython on Mandriva LE 2005 ? I have tried it several times but didn't worked. ( I am not a Linux guru ). I just want to see if the simple programs I've made runs on linux to. Also tried Kubuntu but tha … Software Development python | |
ok, on a button click how could i have the listview selected item jump to the next. so if there was a list view with 3 items and the second was selected. On a button clickhow could i make it jump to the third? -T Software Development listview | |
[code] //Calculator Revision to say error when invalid character #include <iostream> using namespace std; int main() { cout <<"Welcome to the 1.1 calculator by Niklas Kunkel"; cout << "\nPlease enter 2 numbers and press enter after each number"; float num1; float num2; char op; float result; char again = 'y'; … Software Development c++ | |
Having strange behaving programs,at the bottom you can find them, but here is short explenation. Main program will present a menu from which you can pick operation to do. When I choose 1 it is suppouse to create file of certain name(not exactly, you have to complile score.c program and … | |
Hello all, I have posted many times questions about Java related topics. This would probably be one of my few C++ postings. The problem I am having is printing out the contents of a vector declared in a class, and inherited in other classes that need to access it. I … Software Development c++ | |
[code]#include<iostream.h> #include<conio.h> int main() { int a[10],temp,bak; cout<<" enter the elements "<<endl; for(int i=0;i<5;i++) cin>>a[i]; int m=a[0]; for(int j=0;j<5;j++) { if(a[j]>a[j+1]) { temp=a[j]; a[j]=a[j+1]; a[j+1]=temp; } } cout<<endl; for(int k=0;k<5;k++) { cout<<a[k]<<endl; } getch(); }[/code] Software Development c++ | |
I've recently swithed from borland C++ 5.5 to MinGW. When I try to compile a .c file using gcc it compiles fine, but when I try to compile a .cpp file using gcc it produces a bunch of errors with c++ specific constructs. If I compile .cpp files with g++ … Software Development c++ | |
Hi everyone, This is not exactly a question but something to lighten everyone's mood. You see some days back i had a programming program i could not solve and its rather tough as it had to do with graphic rendering. It was getting late so i decided to pack up … Software Development java | |
I wonder it it is possiblibe to write function to swap two variables like in C [code] void swap (int* x, int*y) { int temp; temp = *x; *x=*y; *y = temp; } [/code] I already tried with soemthing like this: [code] def swap (x, y): tmp = x x … Software Development python | |
I am a novice to C++ but I am trying to improve. Ive started reading quite a few books which include: Learn C++ in 10 minutes - Jesse Liberty C++ Game Programming - Michael Dawson Im still in the first 100 pages in both so im not into to advanced … Software Development c++ | |
I have found some interesgting websites which have excellent java applets that explain physics theory. I could only view those webpages when attached to the internet, but then I learned I could download the *.class file related to the applet and then I would be able to open the webpage … Software Development java | |
does the datatype float also have a over-/underflow like an integer? If yes, how can I create a float-underflow? thanks dave Software Development java | |
I am trying things with wxStaticText (a label). I can chnage background colour, but not the text colour: [code]import wx class MyPanel(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) str1 = "Camembert cheese is the best!" self.label1 = wx.StaticText(self, -1, str1 , wx.Point(15, 30)) self.label2 = wx.StaticText(self, -1, str1 , … Software Development python | |
I mam having problems doing somthing fairly simple. ;) . What i have is a listview with about 1000 items in it. All files paths that i have scanned from a directory. And there are 4 colums. First the name, then the size, extesion ect. the last is the path … Software Development listview | |
//square matrix #include<iostream.h> #include<conio.h> #include<stdio.h> int main() { void diagsum(int a[10][10],int n); void rowsum (int a[10][10],int n); void colsum (int a[10][10],int n); int a[10][10]; int n,opt; cout<<" enter the size of matrix (say 4 for 4/4etc..) "; cin>>n; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) {cin>>a[j]; } } for(int k =0;k<n;k++) { … Software Development c++ | |
i have to convert a program from c++ to C language and at one point in my program im stuck where its dealing with dynamic memory of an array. i started it but i dont know how u do dynamic memomory in c language. [code] if (reply == '1') { … Software Development c++ | |
#include<iostream.h> #include<conio.h> int main() { void sortarray(int array[15],int size); void mergearray(int ar1[15], int ar2[15], int ar3[30],int m ,int n); int m, n ,ar1[15],ar2[15],ar3[30],array[15],size; cout<<" Enter the size of the arrays "<<endl; cin>>m>>n; cout<<" Enter the elements of first array "<<endl; for(int i=0;i<m;i++) cin>>ar1; cout<<" Enter the elements of second array … Software Development c++ | |
Hi all, I've programmed [B]C[/B] & [B]C++[/B] during my college days. I understood its [I]OO model[/I] and coded many examples (this helped me in OO [I]PHP[/I] now). I used something called [I]Turbo C++[/I], a set of some confusing files, which can be carried in a floppy or two. [QUOTE]I now … Software Development apache c++ perl redhat web-server | |
I am using Tkinter as my gui programming addon for python but i think it would be better to lean something else.... do you know where there are any good pyWin32 or wxPython tutortials? Help is apprecaited. :cheesy: | |
Ok i am having alittle problem with my code, I am getting 4 errors for having these things unidetitfied but they are so I dont know what is is here is the code that I have so far. The object is to have counters that will count how many comparisions … Software Development c++ | |
Write a program that calculates the average marks of three subjects of a student, entered by the user through keyboard and store them in three different float variables having names marks_subject1, marks_subject2, marks_subject3 The formula to calculate the average is: average = (marks_subject1 + marks_subject2 + marks_subject3) / 3 Your … | |
Does any body know how to save your contacts in outlook to the harddrive. i no how to list them. but then i tried the save as methosd. oContact.SaveAs("C:\contacts\" + list.selectedItem + ".vcf", null); and that doesnt work. Any ideas? my code... [code] Outlook._Application olApp = new Outlook.ApplicationClass(); Outlook._NameSpace olNs … Software Development | |
![]() | Hi, we all know that java has a very very very ugly interface. Well the default one anyway. Is there any way to make it better. Like maybe this. If so how do you do this. But freely [url]http://www.javasoft.de/jsf/public/products/synthetica[/url] And does this mean when you make it into a jar … Software Development java |
Does anyone know wether i can convert a Java written program to C? Thank You | |
what is the target of pointer to function? when do i use pointer to function? :?: Software Development c | |
I have to develop a C++ program that reads the data records from the input file and stores them in a dynamic array of structs, which should be sized just enough for the problem. (TIP: Your program should first scan the input file to determine the number of records to … | |
[code] #include<iostream.h> #include<conio.h> #include<stdio.h> int main() { void palcheck(char str[]); char ans; char str[20]; do { cout<<"Enter the string to check if it is a palindrome. "; gets(str); palcheck(str); cout<<"\nEnter Y to continue. "; cin>>ans; }while (ans=='y'||ans=='Y'); } void palcheck(char str[]) { int l=0,k=0,flag; for(int i=0;str[i]!='\0';i++) l=l+1; k=l; for(int j=0;j<l/2;j++) … Software Development c++ | |
Need help in finishing this problem. I was doign ok at first but somehow ran into 2 compile errors. Now I'm tired and going in circles. I need a fresh pair of eyes to look it over. This is my first time doing arrays. [code]#include <iostream> #include <string> #include <iomanip> … Software Development c | |
ive made a dll in c, and it gets called with visual basic. in vb one of the parameters i pass is the address of a vb function. i can get the dll to run the function fine, but i need to put that address into a struct to pass … Software Development c visual-basic | |
Please can someone help me. i don't know where to start. i need to write a programme in c/C++. the features of the programme are stated below: Write a program for Windows XP that makes a countdown timer in your Tray (at the bottom of the screen). When you right … Software Development c++ | |
Hi, I own a multiplayer gaming site and the games on it I bought. It came with a gaming lobby and the games themselves, with the backend server stuff too. However, my knowledge of java is a bout as extensive as a three year olds knowledge of Father Christmas not … | |
I have written a binary search algorithm in java. I have a statement that when the search key is found it is printed to a terminal window. This statement when when called just keeps printing over and over and i cant figure out why :sad: . Can any one help? … | |
You created a bunch of random numbers, but say you don't want a bunch of random numbers exactly. Say you have ten members of a team and you want to give them a random position represented by 0 to 9. So you create your array and you fill it with … Software Development c++ | |
Doesn't C# support EBCDIC encoding? I'm working on a project that involves parsing Xerox Metacode print streams, encoded as variable-byte EBCDIC records. The print stream data itself is in ASCII, but the record headers and control records are in EBCDIC. I read the records in as byte arrays. I know … Software Development | |
I need help in creating a python program that plays MP3s, using the [URL=http://www.pygame.org/news.html]PyGame[/URL] package to play both MIDI files, and Ogg Vorbis files. Using a menu that would look something like this: 1. Go to new music directory. 2. Play a song or playlist. 3. Stop music. 4. Create … Software Development python | |
I am using the following class. RichTextBoxPrint.vb Option Explicit On Imports System Imports System.Windows.Forms Imports System.Drawing Imports System.Runtime.InteropServices Imports System.Drawing.Printing Public Class RichTextBoxPrint Inherits RichTextBox ' Convert the unit that is used by the .NET framework (1/100 inch) ' and the unit that is used by Win32 API calls (twips … Software Development api data-structure printer vb.net visual-studio windows-api | |
:rolleyes: I have a control that I drag and drop. I would like to use the below instead of building a dll. I want to call the subroutine. Is there a way I can do so? I am not aloud to use build any extra dlls in the project. If … Software Development api data-structure printer vb.net windows-api | |
I've written a Java application using Netbeans, and I was wondering if there is any way in which I can run this application using an executable file in windows rather then having to run it through Netbeans itself. Is this possible? Software Development java java-netbeans | |
The Internet has many animated GIF files, they are funny to watch. Does Python have a way to play those? I am asking to much? Software Development python | |
The object here is to open a selected Word file and Copy&Paste its contents into a text file. The problem seems to be with the Sendkeys commands having no effect. The project freezes, apparently because Notepad has not been closed (by Sendkeys "%FX"). Can anyone tell me what's wrong? :confused: Software Development visual-basic | |
For research, the admissions office wants to compare how well female and male students perform in certain courses. You are asked to write a program that prompts the user to enter a number of student records consisting of (a) student’s sex (‘f’ for female, ‘m’ for male) and (b) GPA … Software Development c first-post | |
Hi everyone, I have a question about Visual Basics......... When do the following events occur with a form object: Load, Unload, Activate, Deactivate, GotFocus, LostFocus? Software Development visual-basic | |
A somewhat strange find in the Pyton Code Snippets here on this site. Is the BOO language very much like Python? It seems nice that one can compile and interpret the same language. Will it be worth to translate Python code to BOO just to get a nice small exe … Software Development python | |
I have a program where I want to point the same ifstream to another file when I am done using it. Currently, I have it set up something like this (pseudocode): //Global File Name char *mmFileName[50] void calculateISI() { ifstream minmaxFS; //sets the global file name if(condition) setGlobalFileName(); while(//assume true) … Software Development c++ | |
#include<iostream.h> #include<conio.h> int main() { int a[5],loc,val,ans; do { cout<<" enter the elements "<<endl; for(int i=0;i<5;i++) cin>>a; cout<<" enter the location u want to edit with respect to zero "; cin>>loc; cout<<" enter the val to be inserted "; cin>>val; for(int j=6;j<0;j--) { if(j==loc) a[j]=val; else if(j>loc) a[j]=a[j-1]; } for(int … Software Development c++ | |
Can anyone point me in the direction of a site that has a good tutorial on using Tab Controls on a MFC program? Software Development c | |
Hi guys: I am very very new in C++. In school they required me to write a program that reads the names of the students registered for a class and output that result in a file. I got almost everything done. The only problem is with the function getline. I … Software Development c++ |
The End.