132,723 Archived Topics
Remove Filter ![]() | |
Hi guys, need some help with this. I googl'ed but found no solution. :icon_sad: [CODE=cpp] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; void createRationalNo (int, int); int RationalInfo (int []); //void printArray (int [], int); const int MAX = 20; const int setArray = 5; int initialArray [setArray][MAX]; … Software Development c++ | |
When I execute the following sql,select id from people, inside python and print the result, I get this: ((11L,), (12L,), (13L,), (14L,), (15L,), (16L,), (17L,), (18L,), (19L,), (20L,)) Why does python print L beside the numbers. Just to indicate Long type? Software Development python | |
I am getting the following error message and do not know what it means. error: Class names, 'DemoVariables' , are only accepted if annotation processing is explicitly requested. Software Development java | |
Hello guyz, Recently I am making a system monitoring tool. For that I need a class to monitor print job. Such as when a print started, is it successful or not, how many pages. I know that I can do it using winspool.drv. But dont how. I've searched extensively but … | |
[CODE]#include<stdio.h> #include<conio.h> void main() { int a; printf("\nEnter number of inputs: "); scanf("%d", &a); for( int x=1; x<=a; x++ ) { for( int y=a-x+1; y>=1; y--) { printf("%d",y); } printf("\n"); } getch(); } [/CODE] im still a noob. i know the output of this one. but i cant seem really … Software Development c++ | |
Hello, so i have a RectangularRoom, AbstractRoom (which is an abstract class) and Room (which is an interface). AbstractRoom and RectangularRoom both implement Room. Within my HomeCADengine (which is where my addRoom/removeRoom/etc. methods are kept). Now, my addRoom method seems to be a problem. I am trying to add a … Software Development java | |
Hi Expert, I already create a datasource name for my Access database. However, I failed to connect to that database using this code: Set db = DBEngine.Workspaces(0).OpenDatabase("dbsourcename", ,"DSN=dbsourcename;UID=MyUID;PWD=Mypassw") Could anyone help me please. Thank. Software Development visual-basic | |
TURBO C ++ HELP! INTERATIVE STATEMENT Im a beginner so please help me. USING FOR LOOP: write a program that will display the following pattern, given the value of n. example: of n=4 output: 1234 123 12 1 Software Development c++ | |
I am working on an application and would like to be able to calculate the efficiency of various algorithms and choose the best one. The application operates on a list of records that are stored in a file. Operations include adding records, deleting records, and searching for records based on … | |
Just started learning java and i'm having a little trouble with my compiling im supposed to give a screen shots of my outputs if it works but vista is blocking it (asks for permission and then just hangs) ive included the questions just in case its being bleh but it … | |
Hi,I'm trying to make my own simple paint application but I'm having trouble with the "openfiledialog and paint" thing. The code below draws lines when the mouse is down and moving. The problem is whenever I press the button that opens the dialogbox everything I painted on the form disappears … Software Development | |
Hello! First of all, excuse me for my bad english! Im new in C++ (altough i have to implement a mix between c and c++) and im having troubles trying to do a few things... struct nodo { Program * prog; int FB; nodo * izq; nodo * der; } … Software Development c++ | |
Could You Please Explain me what is memcmp? What does the 'size_t' means to? Software Development c | |
Hi all, Why do I get a fatal error when I try and free this memory? [CODE] char *timeBegin = (char *)malloc(sizeof(char) * 21); timeBegin = time_stamp(); sleep(1); char * test; test = calc_time_difference(timeBegin); printf("%s", test); free(timeBegin);[/CODE] time_stamp() returns a static char array. Would this be the cause? Software Development c | |
I have been trying to compile a program for school using textpad, but i am unable to find the sdk tool that is supposed to be in the tools window.i have installed the java 6 jdk/jre, then text pad ( multiple times and ended up with the same results. when … Software Development java | |
Hello, I'm working on an assignment due next week and I'm having quite a bit of trouble. The program is to ask the user for input of a double until they desire to stop. That part, I imagine will be in the Test file. The master file is to store … Software Development java | |
Hi, please i need your help, i had error while i tried to insert into my data base, here is my code: [CODE]Try 'preparer les requetes Dim sqlQRY1 As String = "INSERT INTO AUDIO Values ('" + nomAudio + "')" Dim sqlQRY2 As String = "INSERT INTO IMAGE(Nom_Img) Values ('" … | |
Hello all, I really need some help with this problem. I am writing a program that needs to count the number of words in a string display the longest word in that string display upper and lower cases and punctuations I have everything complete except displaying the longest and shortest … | |
Using the following: [CODE] protected void testDriver ( ) { String drivers = "nada"; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch ( java.lang.ClassNotFoundException e ) { System.out.println("MySQL JDBC Driver not found ... "); } catch (IllegalAccessException ex) { System.out.println("Illegal Access"); } catch (InstantiationException ex) { System.out.println("Instantiation problem"); } System.out.println("Midway drivers are " … | |
I'm in the process of coding my own OS and right now I'm working on a stdio lib but was just wondering about fputs and how it should write to the screen, which would be a better approach? Making stdout a file descriptor and having puts call fputs with the … Software Development c | |
[code] namespace sqlconnecttest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { SqlConnection myConnection = new SqlConnection("user id=name" + "password=pass;server=http://www.mywebsite.co.uk;" + "Trusted_Connection=yes;" + "database=mydb; " + "connection timeout=30"); try { myConnection.Open(); } catch (Exception f) { MessageBox.Show(f.ToString()); } } … Software Development mysql | |
I have been using textpad and Java for 3 months without trouble. We just got a new computer 64 bit Windows 7. I have downloaded Java and Textpad on the new computer but when I go to external tools to compile, the compile and run tools are missing. I have … Software Development java | |
ok guys heres the problem (by the way i am a beginner programmer so don't laugh at the code lol) i keep getting this declaration syntax error whenever i try to compile this program (i also get a declarations missing; and compound statement missing} ) but everything in my code … Software Development c++ | |
Hi! I need to make multi-user software that will allow accessing a DB from different PCs and working with this DB. Could someone pliz just generally (conceptually, but in step-wise manner) describe me how this task can be implemented? Maybe, there are some good tutorials or free examples on this … Software Development java | |
Hi! I want to run multiple threads at the same time, and each thread has foreach loop accessing a listbox, so each thread checks every item in listbox, instead that each thread checks only one item, or skip an item if it has already been checked by other thread. Now, … Software Development | |
i want to import an array, but i cant.. i have my chess class.. and one method that tries to check whether there is a check. basically like this.. [CODE] if(pieces[columnStartN][rowStartN].isMoveValid(columnStartN,rowStartN,columnEndN,rowEnd) && pieceDevour){ pieces[columnStartN][rowStartN]=null; pieces[columnStartN][rowStartN]=pieces[columnEndN][rowEnd]; } rowStartN=rowEnd; columnStart=columnEnd; int kingRow=0; int kingColumn=0; chessPiece="BKing"; int c=0; int pieceColumn=0; int pieceRow=0; for(int … Software Development java | |
Hey guys, thanks a lot for the help. Here's the code I have for going through each file in a directory I specify: [CODE] for root, dirs, files in os.walk('%s'%(DOSEnvironVar)): for this_file in files: if this_file.find('.csv')>-1: filepath = os.path.join(root, this_file) currentfile=open(filepath,'r') filelines = currentfile.readlines() [/CODE] I would like to add … Software Development python | |
How we can randomly generate and store the age of N employees in Arrays plssssss Software Development c++ | |
I'm writing a code that takes a 5-bit binary string from a file 'message.txt', converts it to integers. The encoded letters are assigned numbers starting with a=1, b=2, etc. So if the original letter is 'a' and the key(fixed number of spaces) is 2, the encoded letter is 'c' which … | |
Hi people, i work on some example with very big score (number). The double type is not enough large to store the results. Can i create some variable type and set variable scope, or what to do? tnx Software Development | |
Hey guys, I am trying to self teach C++ and I am to the point of loops. Now I was working on how to create a triangle with manipulating nested loops to create a triangle with numbers. Here is the code I have ended up with: [CODE]/* Print a number … Software Development c++ | |
Hi, Am currently creating an interactive dating sms service using vb.net.but when i get to the point for user to find requested matching records,am only able to get the first 3 records. i want it to be able to move to the next 3 and the following 3 and so … Software Development vb.net | |
Hello friends Can anyone tell me Why and How to use vector in C++ ???? Making a sudoko game in c++ | |
The program is fetching me the right output but still i am getting a warning #include<stdio.h> #include<string.h> int main() { char *p,*q; p=(char *)malloc(25); q=(char*) malloc(25); strcpy(p,"hello" ); strcpy(q,"hi"); strcat(p,q); printf("%s",p); } Warning test7.c: In function ‘main’: test7.c:6: warning: incompatible implicit declaration of built-in function ‘malloc’ wat exactly is the … Software Development c | |
Hello everyone! i need a bit of help... can you convert my picture drag and drop code so it drag and drops audio files? (.wav) My code: Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() InitializeComponent() End Sub Protected Overloads Overrides … | |
this is the exact instructions: "The program will grade a series of exams and then print a grade report for students in a course. Input: An instructor has a class of students each of whom takes a multiple-choice exam with 10 questions. For each student in the class, there is … Software Development c++ | |
pls help............ hello frnds i ma mukul i am working on a java project in netbeans i am using swing application there is a use of JTabbedPane for which i have to give the object of other class as a Parameter but when i create another class outside the previous … Software Development java java-netbeans java-swing | |
Hi, I have data coming over a socket that looks like this [code] (h)(int,char,float,int,char)(/h)(d)(2,a,1.32,45,d)(3,d,3.45,32,a)(/d) [/code] the datatype of the data arriving is dynamic and is only known when the header is received.I then have to create corresponding vectors(stl) to store the data. In this case, 2 int,2 char and one … Software Development c++ | |
Hi all. Can anyone give me the ideas how to maneuver a snake in Snake game? I currently trying to do a snake game from scratch. Hope someone can give me an idea. TQ.. :) Software Development c++ | |
short program that will build a stl::list of directory names and all the files they contain. recursively calls itself when a new directory is encountered. This has been compiled with both VC++ 6.0 and Dev-Shed compiles on MS-Windows XP Pro. It will not work on *nix or probably MAC computers. … Software Development c++ | |
Please Somoene Help Me i'm using visual basic 6 in platform windows xp how i want to use skin vista in myproject.exe? >>>can someone share with me an activex for vb6... :) :) [snipped email] Software Development visual-basic windows-vista | |
Hello, Can anyone tell me how do we validate date entered in a text box? I went to check whether the entered date in the text box is of correct date format. Please help me out!! Software Development vb.net | |
| |
Hi everyone, Just need abit of help. im studying selection sorting at the mo.....ive wrote an essay wot it and how it works but im tryin to an example in java and im having problems with that.....im not a very good java user.....ive only just started. i just wanted to … Software Development java | |
Hi all! Could someone pliz explain me how to delete a component (in my case -> JLabel that is placed on JLayeredPane), when it is double-clicked? So, as far as I understand, I must first just detect a componment that is double-clicked and then delete it. Although an idea is … Software Development java | |
Q1: design a system that will read students information, display them in a table form, and implement some operation on them. The system must show the following: ========================================================================= Do you want to add new students? Do you want to display the student information? Calculate the average of the final marks … Software Development c++ | |
hi every one,i have one problem with DateTimePicker, i am displaying only years in dtp by setting custom Format property to yyyy and dtp format to custom and showupdown property to true. the problem is when i click once down arrow or up arrow the years in dtp continuously changing … Software Development | |
Hi, I need some help from u again..... if we type: Enter Input : eee ddd cccc the result should be like this : sorting : ddd eee cccc but actual result is like this : sorting : eee eee cccc I don't know why... Can u help me ?? … Software Development c |
The End.