132,723 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dexter1984

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++
Member Avatar for Maxwell175
0
141
Member Avatar for jobs

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
Member Avatar for timogoosen
0
3K
Member Avatar for NSBailey

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
Member Avatar for extemer
0
112
Member Avatar for babaidebnath

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 …

Software Development c c# c++
Member Avatar for Momerath
0
269
Member Avatar for xshinichix

[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++
Member Avatar for XMasterrrr
0
177
Member Avatar for ozlem.a17

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
Member Avatar for JamesCherrill
0
116
Member Avatar for ChristinaOrchid

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
Member Avatar for zainab saleem
0
3K
Member Avatar for xshinichix

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++
Member Avatar for xshinichix
0
400
Member Avatar for ms_farenheit1

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 …

Software Development algorithm c++ seo
Member Avatar for Ancient Dragon
0
149
Member Avatar for kimiko

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 …

Software Development java oop
Member Avatar for jon.kiparsky
0
247
Member Avatar for emc22

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
Member Avatar for emc22
0
91
Member Avatar for LuciaP

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++
Member Avatar for manojwali
0
115
Member Avatar for Uvais

Could You Please Explain me what is memcmp? What does the 'size_t' means to?

Software Development c
Member Avatar for prvnkmr449
0
157
Member Avatar for Danny_501

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
Member Avatar for Narue
0
121
Member Avatar for dpirtle83

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
Member Avatar for NormR1
0
158
Member Avatar for Iamthecheese

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
Member Avatar for NormR1
0
201
Member Avatar for lucaazori

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 ('" …

Software Development audio vb.net
Member Avatar for lucaazori
0
96
Member Avatar for KimJack

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 …

Software Development c++ display
Member Avatar for genext.brite
0
2K
Member Avatar for MonkeyCode

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 " …

Software Development java mysql
Member Avatar for peter_budo
0
850
Member Avatar for Auraomega

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
Member Avatar for Auraomega
0
102
Member Avatar for Suzie999

[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
Member Avatar for Suzie999
0
151
Member Avatar for mompoleon

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
Member Avatar for dpirtle83
0
1K
Member Avatar for ivan3510

Hi! Sorry for my bad english. How is made that toolbar on this site always stays on the botom of the page. (So, when we log in, on this site will appears toolbar. When we scroll down, this toolbar stay, it doesn't move anywhere, it stay on the bottom.)

Software Development java
Member Avatar for ivan3510
0
109
Member Avatar for evilsilver

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++
Member Avatar for az-zahra
0
377
Member Avatar for LianaN

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
Member Avatar for LianaN
0
291
Member Avatar for Erco21

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
Member Avatar for Erco21
0
111
Member Avatar for NewOrder

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
Member Avatar for NormR1
0
200
Member Avatar for PythonNewbie2

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
Member Avatar for Reverend Jim
0
289
Member Avatar for alex k

How we can randomly generate and store the age of N employees in Arrays plssssss

Software Development c++
Member Avatar for manojwali
0
121
Member Avatar for bmos31

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 …

Software Development c++ ios
Member Avatar for bmos31
0
493
Member Avatar for [csharp]

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
Member Avatar for ddanbe
0
104
Member Avatar for chubbs1900

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++
Member Avatar for usman.rose
0
311
Member Avatar for tariqi

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
Member Avatar for Alexpap
0
162
Member Avatar for johnsign11

Hello friends Can anyone tell me Why and How to use vector in C++ ???? Making a sudoko game in c++

Software Development c c# c++
Member Avatar for manojwali
0
158
Member Avatar for rahul8590

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
Member Avatar for rahul8590
0
254
Member Avatar for nv136

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 …

Software Development audio vb.net
Member Avatar for nv136
0
273
Member Avatar for jelinky

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++
Member Avatar for VernonDozier
0
192
Member Avatar for mukulnimker

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
Member Avatar for sidhu2204083
0
214
Member Avatar for AutoC

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++
Member Avatar for Ancient Dragon
0
88
Member Avatar for sudoku43

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++
Member Avatar for daviddoria
0
104
Member Avatar for Ancient Dragon

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++
Member Avatar for ll_MORTAL_ll
0
854
Member Avatar for reezox

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
Member Avatar for amit208
0
89
Member Avatar for sainiricha

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
Member Avatar for M. Ashok Reddy
0
271
Member Avatar for ssagard
Member Avatar for ssagard1
0
84
Member Avatar for dina

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
Member Avatar for javaAddict
0
486
Member Avatar for LianaN

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
Member Avatar for LianaN
0
204
Member Avatar for meer pakala

how to became as an efficient in c programming

Software Development c c# c++
Member Avatar for GreatWin-Win
0
233
Member Avatar for Babaty

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++
Member Avatar for prvnkmr449
0
125
Member Avatar for tatarao25

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
Member Avatar for tatarao25
0
105
Member Avatar for smith32

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
Member Avatar for Adak
0
222

The End.