43,549 Solved Topics
Remove Filter ![]() | |
Hi, Im new to JAVA and i have a question. The following code compiles fine and executes fine. But if you assign [icode]c = '\29' [/icode], in the following code, the compilation fails. 1. How does JAVA interpret [icode]char c = '\21';[/icode] and [icode]char c = '\29';[/icode], as escape sequence … Software Development java | |
hi everyone. i'm try to load an image by clicking on a botton insert imag but the problem thata i having with this is that the image is not being insert it just appear and disappear immediately. can anyone tell me what is wrong with my codes and tel me … | |
could any 1 tell me why this code isnt working right?? two.txt is not wriiten good... this is the code [code=c] #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #define LEN 30 #define LENST 6 int *saveid[5]; char *savename[5]; unsigned *savegrd[5]; unsigned *saveavg[5]; int j=0,k=0; int min=0; int skip[6] = … Software Development c file-system | |
Hey guys, I got another stupid question. For my last assignment, I have to take a .txt file that has contacts in it, import it into python (already did that) and use it to search with. the file goes last name first name number # repeats about 4 more times. … Software Development python | |
Hello, I am trying to send directory names through the command line to program I am writing. This works perfectly until I add a space to the directory. I have tried adding Quotes around the directories and everything. The problem is then with the \ at the end of the … Software Development c++ | |
someone showed me their code for their conversion program and left before I could ask question about how his program works q1:how exactly does "*" this work when not applied for mutipling? q2:does "a_base" and "b_base" work with this function unsigned long base2dec(char str[],int base) and does it have to … Software Development c++ | |
Hey, I'm new to Socket Programming, and i've only learned C recently so probably what i'm asking will be very obvious, sorry in advance (= ok Here's my code [code=C] /* * File: Inside_Client.c * Author: Ghaith Hachem and Adel Youssef * * Created on March 17, 2008, 6:12 AM … Software Development c socket-programming | |
This is the program and I have 5 errors that I can't seem to get rid of, it was a Fortran 95 program that I had to translate into C++. could somone please help me. [code=cplusplus] #include <iostream> using namespace std; int main() { //Declaration and Intialization float XL = … Software Development c++ | |
[B]a. Write a pseudo-code that prompt the user to input number of sold items and then receive the sold value for each item, calculate the average value, display the items numbers associated with its values and display also the calculated average value on the screen. b. write down the C++ … Software Development c++ | |
Hi I am wondering why size_t is used when it has the same functionality as an int and assigning size_t type variable to int works fine. Any one ? Thanks Software Development c++ | |
Hi all when i trying to convert a string to date and store in data base it shows type cast error code is as follows: dim s_date1 as string dim s_date as date s_date1 = s_mon & "/" & s_day & "/" & s_year s_date = CType(s_date1, Date) Software Development vb.net | |
hi I designed simple program of computing the petrol bill and save it into MSACCESS data base. This bill included decimal places. But everytime I check my msaccess database. The number is automatically rounding up or down. I try to set standard settings with two decimal places but the number … Software Development visual-basic | |
How i can get path of StratUp folder?? i m really didn't have any idea for this. please help me. any help will be appreciated. Software Development visual-basic | |
Last week I asked about this so I tried to write another example to try it out. I have a Line class which needs to have and members of type Point and member functions that return type Point. The Point class needs to have member functions that return type Line … Software Development c++ | |
Hi, I'm trying to create 6 buttons in a for loop using tkinter, each button's command points at the same function, but passes a variable (the loop counter.. in this case i) now for some reason.. when i run it, and click on each button, the function is supposed to … | |
Hello VB Experts, Can anyone show me how I can sort items in a datalist alphabetically? I bounded the data using ADODC and Microsoft Jet 4.0 ole db connecting string. I would appreciate it much if anyone could help me solve this problem. Thanks in advance Software Development visual-basic | |
i want to get all running process... how a can do this? anybody know how to do this? please help. thanks in advance... Software Development visual-basic | |
Hi all, I am fairly new to java, as well as netbeans, but I come from a VB background. I am wanting to build platform independant aps and find the need to cross over into this world of Java, and netbeans (so far) is the best visual ide I have … Software Development gui ide java java-netbeans java-swing | |
I am getting compiler output that makes me think I have some sort of syntax error like a missing ';' or misaligned (). But I've checked my code thoroughly and can't find anything wrong. What else could cause this kind of error? I included the compiler output along with my … Software Development c++ | |
I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private: … | |
How can I declare the txt.InitialValue.text, txtSalvageValue.Text and TxtAssetLife.Text part of this code? Thanks in advance for any help. [code] msngInitialValue = ToSingle(txtInitialValue.Text) msngSalvageValue = ToSingle(txtSalvageValue.Text) mintAssetLife = ToInt32(txtAssetLife.Text) [/code] Software Development vb.net | |
Can an Interface file contain multiple classes? If so how would one implement this interface file (what specifications do you need to use to specify which class you are using)? If this is not legal or is a bad programming practice then please explain why. Thank you, Arielle | |
Hi all, just a quick question.... is there ever a need to implement an infinite loop? in what situations would it be a good idea to use one (if any)? thanks for your time! Software Development java | |
Hello, I would like to apply object-orientated programming in C++ to sets of 3D images. I would like to do 4 classes: -dataset:an array of 3D images, contain the nb of 3Dimages as an object -3Dimage:an array of 2D images, contain the nb of 2D images as an object -2Dimage:an … | |
I'm trying to create a program where it takes the first character of the Last name and place the person in a group due to the name. I tried comparing the words to numbers i.e. a=1, s=19, etc. any help at all would be appreciated [code] package GroupAssignment; import System.*; … Software Development java | |
i need to bind socket address and port for ipv6 programming... i canoot able to bind global ipv6 address by using normal bind command.... help me to bind ipv6 address and port number Software Development c socket-programming | |
[code] #include <iostream> using namespace std; class fibonacci { private: int num; public: long fibNum(int n); fibArr(); }; //============================ long fibonacci::fibNum(int n) { n=num; if (n<0) { return 0; } if (n<2) { return n; } else { return fibNum(n-1) + fibNum(n-2); } } //============================ fibonacci::fibArr() { int *Arr; Arr=new … Software Development c++ | |
can any one knows how to convert a number to word like this 192 to one hundred ninety two i can't get the logic of that who can suggest of that i can't solve that.. plz help me Software Development c++ | |
Hi buddies, I m facing some difficulties while setting system date and time?..Can anyone help to set System date & time? Thanks Software Development java | |
how i get computer name with vb 6? any help will be appreciated thanks :) Software Development visual-basic | |
I am working with a function declaration of: int func1(char *, unsigned int) to the best of my understanding, I am not allowed to modify this. Now my question is that when I actually write this program what is the name of argument 1 and 2 for example [code]int intToHexStr(char … Software Development c++ | |
I am trying to resize a panel through a if-statement like this but am a bit unsure how the if-statement should look like. I am trying to put if size is (0, 694) for the panel1. [code] if ( panel1->Size() == System:: Drawing:: Size(0, 694) ) { this->panel1->Size = System:: … Software Development c++ | |
Hi, I am working in an application that uses Drag & Drop in VB6, and I need to determine which type of control is the user dragging. I have in the form several controls: PictureBox, TextBox and ListBox. I know that I can use TypeOf() in VB .Net, but, what … Software Development vb.net visual-basic | |
I just started using C++ and have a practice exercise, can anybody do this? It seems complicated. You have been requested by “Honest Dave’s Used Cars” to write a program to calculate the monthly car payment for their customers.. As much as possible you are to develop the code as … Software Development c++ | |
I have a little wondering what the third element "0" stands for in the accumulate function. [code] std::vector<double> vec(10); double sum = std::accumulate( vec.begin() + 1, vec.begin() + 5, 0); [/code] Software Development c++ | |
[CODE]In relation to another post, I did enroll in the Game Institute. [URL="http://www.gameinstitute.com/"]http://www.gameinstitute.com/[/URL] Thanx for the input Thanx for the help "lAmoebal". It actually is helping more then when I was following along with other tutorials I have tried. Maybe it 's the structure. I still find C++ difficult. for … Software Development c++ | |
ive ben asked to make a program where the user inputs a floating number eg.(2.5) and the program displays the 2 alone and the .5 alone ive ben trying for a while but gone nowhere Software Development python | |
Please help, I do not understand the correlation between the function definition and the call in main. My program is receiving build errors- please assist with determining what the definition of this program should be. Thank you! [code=c++] #include <iostream> using namespace std; void yrCalc(int totalDays, int& year, int& month, … Software Development c++ | |
Hello, everyone, This program is supposed to read roman numerals from a file and convert them to ints using functions. My functions work fine as standalone programs, but they aren't giving me the results I'm expecting. The weird results point to problem with my do/while loop. The goal is to … Software Development c++ | |
how to generate random numbers between a and b? is there any in-built function? Software Development c++ | |
k hi every1, im kinda new to C++, anyways..this is an assignment for my college. im supposed create a program that displays the username in a "creative" way. so first thing is do i use the get and ignore functions to get the initial if the user enters the whole … | |
i have had a busy day and its late in the uk? I have with a little help earlier on here combined lots of snippets orf old code and tutorials into a app that works and is all new code. problem I have run into is that I want to … Software Development python | |
I'm pretty sure the answer is a definite no if it is a pointer to a primitive type, but I have created classes called "network", "path", and "node" and I want them all to be able to refer to each other. These are not primitive types, so I hope I … Software Development java | |
i am doing a decimal to binary conversion and i have figure out how to do the conversion i just don't know how to make it cout so that it is in reverse.... i was also told that it could done in a while loop here is the code [code] … Software Development c++ | |
Hi all, I am wanting to display an image that is aligned so that the centre of a string of text is in line with the centre of the image. I know the image's dimensions and the length of the string, as well as the font I am using to … | |
I am supposed to draw a box with coordinates UpperLeft(5,70) UpperRight(5,10), LowerRight(20,10) LowerLeft(20,70). I can't figure out what I am doing wrong. HERE IS ME CODE. [ICODE]TITLE BOX INCLUDE Irvine32.inc .code main PROC COORDS BYTE 5,10,20,70 UL BYTE 0DAh UR BYTE 0BFh LL BYTE 0C0h LR BYTE 0Dh VERT BYTE … Software Development assembly | |
I'm extremely new to c++- this is a homework question- I do not understand how to write my program for this problem: Write a function named yrCalc() that has an interger parameter representing the total number of days since the turn of the last century (1/1/1900) and reference parameters named … Software Development c++ | |
Hi, I need help with Listbox. I have two listboxes and when one selects from the listboxLeft it should go to listboxRight and that seems to be working fine. However, when I tried to remove the content from listboxRight and add it to the listboxLeft. The remove function is working, … Software Development vb.net | |
Received some prior help to clean up my code and get this to compile which, it does in fact compile, but it seems to end after the int main(). I have tried several other possibilities with moving code around for the various functions, and I still cannot seem to get … Software Development c++ |
The End.