132,726 Archived Topics
Remove Filter ![]() | |
Can some one please recommend me a link or the code for converting binary to decimal, hexadecimal and octal. Another for converting octal to binary, decimal and hexadecimal. Thank you and please help. I really do need it. Again, thank you and have a nice day! :) Software Development c | |
Hello daniweb! i have recently started to learn c++ and have made a few programs, (a hello world and a multiplication program) following some tutorials. So i decided to try and make my own, but it did not go well. After debugging in microsoft visual c++ 2010 i got loads … Software Development c++ | |
Ahoy Sailors! So I'm making an application using py2exe, Now as we all may know files get a tad hefty, I've trimming un-needed modules, Compressed the remained and finally compressed the resulting exe with UPX. Currently I've built the file under Python2.3 (Earlier the version, The smaller the dll). However … Software Development python | |
Hello. I've just started learning Python and I have a few questions. I'm using my program to communicate with some device through serial port using serial.py library. It's all going really fine. I've got a class device, and I'm using it to communicate with a device (logical ;) ). Q: … Software Development python | |
Hi guys, i want to overload input stream for class Date_Time [CODE] class Date_Time{ //Containment class Date d; Time t; public: Date_Time(); Date_Time(short date, Date::EMonth month, CYear year, short hour, short minutes, short seconds, bool meri); Date_Time(short date, Date::EMonth, CYear year); Date_Time(short hour, short minutes, short seconds, bool meri); Date_Time(Date … Software Development c++ | |
Hi, I am a beginner with python,and have this assignment that buggs me for some while..hope smb can help me...now, the thing is that I have merged the lists of view point positions of the camera in an function:[CODE] mergeList=list() def linear_merge(list1, list2): mergelList = [] for item in list1: … | |
Hello, When I open my app an XML doc is created with several elements giving to each of them the value 0. After the XML is created I want that several labels on the form to change their text to spcific elements' values (in this case 0). Is there any … Software Development xml | |
Hi, I have 2 dialog boxes. In the first dialog i'm getting input from the user to add two numbers and in the other dialog I'm printing the value. i.e., when i click on the add button on the first dialog , the current dialog shoud close and it must … Software Development c++ | |
I can't get strcmp() to return 0 with the following code. please help.. [CODE] char quit[10] = "q"; scanf(buf, ""); fgets (buf, 100,stdin); fflush(stdin); if(strcmp(quit, buf) == 0) { printf("Quiting program\n"); ...[/CODE] when I type 'q' into the command line it should enter that if statement, but it doesn't. Software Development c | |
I cant figure out how to write the code where if the user inputs anything else than (a to h), it gives an output of Invalid Selection. Or if the user enters q, the application Quits. Here is my code so far. Please Help #include <iostream> #include <iomanip> #include <cmath> … Software Development c++ | |
[code] Error 2 Inconsistent accessibility: parameter type 'SmartBackup.SmartBackupClass' is less accessible than method 'SmartBackup.BackupConfigurationForm.SmartBackupLoad(SmartBackup.SmartBackupClass)' C:\Documents and Settings\Mantas\My Documents\Visual Studio 2008\Projects\SmartBackup\SmartBackup\BackupConfigurationForm.cs 19 21 SmartBackup [/code] Hi all, I was just wondering what the above error message means in laymans terms? It relates to this code: [code] namespace SmartBackup { public partial … Software Development visual-studio | |
Why am i getting this error? Can someone help me? You can compile it. I'll post all the necessary codes. Because i dont have enough time. Please this is really urgent. *argg my head hurts*** I put in an archive. [CODE]http://h1.ripway.com/Caterwauler/findTheCheese.rar[/CODE] Software Development java | |
hello everyone, please i wrote a perl script to run a .bat file using the syntax system 'file.bat'. this works fine when i run it from the command prompt. but i tried saving the script as .cgi and put it inside the cgi-bin so that i can call it from … Software Development perl | |
Hi Ladies and Gentlemen, Some of you may remember may, while some may not, because I wasn't that famous with you guys. So let me introduce myself before I introduce my problem. That would create a base for you. I am Shikhin Sethi, a 12 year old programmer, with expeience … Software Development assembly | |
SinglyList.h [CODE] #ifndef SINGLYLIST_H #define SINGLYLIST_H #include <iostream> #include <string> using namespace std; class Exception { private: string errMsg; public: Exception(const string& err) { errMsg = err; } }; class InvalidPositionException : public Exception { public: InvalidPositionException(const string& err) : Exception(err){} }; class EmptyException : public Exception { public: EmptyException(const … Software Development c++ linked-list queue | |
Hello, I had quite a few bugs with this program and it's fore-bearer. I got all but one of them fixed and it's in one of my if-else loops. When the program runs it runs good and then when it gets to the loop it only pulls out the first … | |
Hello. i searched for the term relocatable code and this is what i found. Definition:[I][B]A code generated by an assembler or compiler, and in which all memory references needing relocation are either specially marked or relative to the current program-counter reading. [/B][/I] Can anyone please elaborate a little more and … Software Development c++ | |
We are writing a program in JAVA that thru a series of questions helps the user build a computer. This is being done with Radio buttons. We are wanting to know if it is possible to store the selections as objects in the database. So that is the user wants … | |
Hey Everyone I looked on this site but didnt find anything good enough to help me. I have a DataTable called dt. it has 230 records in it and 16 colums. I now want to put that table in a table in ms access called weapons. I have never written … Software Development | |
please help me with my code.. :( i am suppose to enter a 4-digit number and compare it to '0000'. i don't know why my code isn't working. i am not very good in debugging.. please help me [CODE] sseg segment para stack "stack" db 4096 dup(?) sseg ends dseg … Software Development assembly | |
Hi guys, i need to make the Game of life in C++. I get a run time error when i run this program, it compiles fine. This is the .cpp file in the project. Dont know if you need the driver or header to spot my mistake. [CODE]#include <iostream> #include … Software Development c++ data-structure storage | |
If you are reading this post thanks for your help, I really do appreciate your help... Now on to my question I am trying to write a program that reads and echoes integers until the difference between two successive integers is greater than, or equal to, 10. [I'll need the … | |
I have made a project in vb with oracle 9i at back end....its almost complete... however i can't code the previous button on d form... i used rs.moveprevious property but it generates an error... help!!! Software Development oracle visual-basic | |
Hi guys, I am trying to program some sample tasks with pointers. Below is the step by step instructions that I have to follow. I am having trouble at step 10 which is to swap the values of 2 variables using pointers. please help, I have tried almost anything out … Software Development c++ | |
Hi; I have a problem with webbrowser control. Code runs ok till it gets to HtmlElement submit line where it returns a null error message Object reference not set to an instance of an object. The code works fine with the first element but not the second. I would also … Software Development | |
In a scenario that caller doesn't necessarily need callee to use memory of one of its local variables of a primitive type to track that variable later for anything, I know that when passing that variable to a callee function; it'd be done by value and that makes total sense … | |
Good morning all. I'm having some difficulty in reading from a sequential file. I think I have my code set up properly, but when ran, it throws an exception which show me the error statement I specified. When I ran a debug, it does seem to be pulling the information … Software Development gui java java-swing | |
I have written this program but for some reason it isn't appending to the file? import java.io.*; public class numbers { public static void main(String[] args) throws IOException { FileWriter grades = new FileWriter(new File("grades.txt")); String temp = ""; for (int i=0; i<=100; i+=2) { temp = String.valueOf(i); grades.write(temp); grades.write(","); … Software Development file-system java | |
I am attempting to make a class called Profile and have numerous profiles in an array (70 to be exact). [CODE]//profile.h Class Profile { int _age; string _fname; string _lname; int _height; char _gender; Profile(int val, char gender) : _age(val), _gender(gender) { } int getHeight(); int getAge(); }; [/CODE] [CODE]//profile.cpp … Software Development c++ | |
Hi, this is my first post and I need your help, I need examples of how to use methods in c, that are simple, for example do any math operation with the variables that are part of the class. And, if you can, compare the method of the class with … Software Development c++ | |
I have looked around and it seems that there are no comprehensive tutorials on integrating LUA into a C++ application. What exact files must i have/include/link etc? Most tutorials don't describe this in any detail and i am left wondering what i need where. Software Development c++ | |
//Write a C++ program to determine and print the sum of the series ( 1/6 + 1/10 + 1/14 + … + 1/(2*(2*n+1)) )for a given value of n. The value of n should be given interactively through the terminal. (Note: You will only get credit if you use a … Software Development c++ | |
Any1 know how 2 update data in a DataEnvironment? I tried to search throught the net but unable to get solution to my problem. Please guide me with some simply code. Thx in advance. Software Development visual-basic | |
Hi: I just wanted to see the capabilities of java. Can you please post your favorite project (that you've made). If you want, please also post the source code. Thanx, C++ Software Development first-post java | |
Below is my LinkedList class and also a private Node class inside it, I also write a unit test method to test if every method in LinkedList work, but the hasNext() and Next() ultimately failed. Please let me know what is wrong with the next() and hasNext() method. Here is … Software Development java | |
[CODE]/** * @(#)aboutUs.java * * * @author * @version 1.00 2010/10/7 */ import javax.swing.*; import java.awt.*; public class aboutUs extends JFrame{ private desPanel des=new desPanel(); public static void main(String args[]){ aboutUs frame=new aboutUs(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } public aboutUs() { desPanel.setTitle("About us"); String desc="This Choose Your Flavor is a shop that … Software Development java java-swing | |
Can anyone please explain why a self reference on a structure is allowed, but not a variable of that type? This is what i mean: [CODE] struct node{ int a; struct node *n1; }; /* This is allowed */[/CODE] [CODE]struct node { int a; struct node n1; }; /* But … Software Development c | |
[CODE]#include <iostream> #include <fstream> #include <cstdlib> #include <conio.h> #include <iomanip> #include <ctype.h> #include <windows.h> #include <cstring> #include <ctime> using namespace std; int main() { ofstream outputparticulars("particulars.txt",ios::out); int d,a,b,c; char ic[100],password[100],confirmpassword[100]; char info[6][101]; cin>>d; if(d==1) {cout<<"1"<<endl; } else if(d==3) { cout<<" Key in your......\n"; cout<<" First Name : "; cin.getline(info[0],100); outputparticulars<<" … | |
Im trying to learn working with text files and I been able to make a program adding text to a text file. However I have no clue how to make it so I'm able to add numbers to the text file. I want the program first ask for the name … | |
hello every boduy i need a help an i think it's the better place in the world when i can found this so my problem ; know i have a messagebox with retry and cancel but now i need a new messagebox with accept retry and cancel when i can … Software Development | |
Hi all, Can any one say how to execute the below programs .I need some packages to run the programs .Kindly specify the packages and their links. URL: [url]http://code.google.com/appengine/docs/java/xmpp/overview.html#Sending_Instant_Messages[/url] Thank you, With Regards, Premnath.M Software Development java | |
Hi I have an array which contains a number and string in each element - itemClass.itemID and itemClass.itemName. the two combined making up an inventory I am trying to build a function which uses a for loop to take each itemID and concatenate them all together to produce a string … Software Development c++ | |
Hi All, My first post here so here it goes... I am trying to do what I think should be a simple task but I cant seem to wrap my head around how to do it - any advice or help would be greatly received. I am tring to do … Software Development image | |
Hi. I have one silly problem. I'm trying to read from file with [iCODE]ReadFile.read(ReadBuff, 1);[/iCODE] char by char and i need to convert them to ascii code. With normal ascii symbols it's all right. But them i'm trying to convert extended ascii symobl to ascii code it gives me negative … Software Development c++ | |
I have to turn in a project in my beginer C++ class in two days time and I am totally stuck. The project is to promt a user for an integer (between 1>=num<1000); Tell if that number is a prime number ( if not find a way to show the … Software Development c++ | |
Hello I cannot figure out by myself these errors: error C2143: syntax error : missing ';' before 'using' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int I surfed the web but I'm still stuck; I believe my problem it's with the Windows Headers. I … | |
Hello Members, I have a JFrame, which creates a JDialog upon clicking. In the JDialog, I have a JCombobox. When I choose one of the options in the JCombobox, I should be able to change the background color of the JFrame randomly in an open ended loop. When I then … Software Development java | |
Hello Members, Is it possible to write a Client/Server program between two PCs in a LAN? If yes, besides the IP address of the two PCs, what other information would I need? Thank you!! Software Development client-server java | |
Hello I have create my program with mfc. there is text box containing default value 0. if we remove 0 from edit box, it generates error message, "Enter a Number." Can anyone tell me how can i remove this default message box from my program? I am too much frustrated … Software Development c++ |
The End.