132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iAndrewMeyer

Am I freeing and declaring this 2d array correctly? int **ratings; ratings = (int**)malloc(sizeof(int *) * (numCouples*2)); for(i=0; i<numCouples*2*numCouples;i++) ratings[i] = (int*)malloc(sizeof(int) * numCouples); //Data is read into each array position for(i=0; i<numCouples*2;i++) for(j=0;j<numCouples;j++){ fscanf(ifp, "%d", &ratings[i][j]); //printf("%d",ratings[i][j]); } for(i=0;i<(numCouples*2);i++) free(ratings[i]); free(ratings); Thanks Drew

Software Development c
Member Avatar for Trentacle
0
141
Member Avatar for Muro29

Hi their, I am learning C and a bit stuck on pointer to strings(I now they dont really exist in c but yeah) which i saw in the absolute guide to c programmig book. I am wondering why this code below doesnt work? If you could answer this question it …

Software Development c seo
Member Avatar for Lucaci Andrew
0
135
Member Avatar for boris90

Hi, I need a program to search all lines of a file (a whole file) for a certain string. In my concrete case, I need it for login. Let me sum all of this up, so you get the whole overall point of what I have so far: - a …

Software Development algorithm c++ file-system ios visual-studio
Member Avatar for Moschops
0
664
Member Avatar for blitzkrieg64

I'm trying to access the pixel colors from a image file but can't seem to get it to work properly, my program is only accessing the pixel colors from my active window. I've been stuck on this for a few days and would really appreciate any help. I'm guessing i …

Software Development c++ image
Member Avatar for Moschops
0
282
Member Avatar for new_developer

hi everyone, I am trying to initialize array in main method, and insert value in array in another method named "popArr()", in last print array in "printArr()" method. But its not working and i am getting errors. The environment i am using borland c++. The code is as follows. #include …

Software Development c++
Member Avatar for Lucaci Andrew
0
167
Member Avatar for ckchaudhary

Hi all, ok so i want to make a programme to speed up the internet, may be someting like [idm](http://www.internetdownloadmanager.com/). I googled but all i could find was download managers, nothing related to boost up the downloads or something.. I am looking for a c# solution. I am not expecting …

Software Development file-system socket-programming
Member Avatar for ckchaudhary
0
415
Member Avatar for B204

i want to send large files,,,,,this program only send upto size:1024*1024 ,,,,plz help me out!! client- import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; class ftpclient extends JFrame implements ActionListener { JButton b1,b2; JTextField t1; ftpclient() { b1 =new JButton("Select File"); b2 = new JButton("Send File to Server"); …

Software Development client-server java java-swing
Member Avatar for JamesCherrill
0
954
Member Avatar for muhammad ismail

i have set combobox displaymember and valuemember. now i want to store id in DB instead of fieldname , how?

Software Development
Member Avatar for Mitja Bonca
0
291
Member Avatar for delta_frost

I have designed a sender-reciever type program where the sender sends a file and the reciever recieves it automatically. The problem is that though I am using byte-based streams,the output in ceratin cases as follows are getting distorted: [A]: Bitmap images are getting color-inverted. [B]: Files other than text files …

Software Development java
Member Avatar for delta_frost
0
372
Member Avatar for loserspearl

I am working on a math problem generator and for the current context I'm trying to check if both of the boxes are unchecked, a user can choose 1 or both of the check boxes but I want to display an error stating that at least 1 must be chosen …

Software Development
Member Avatar for loserspearl
0
90
Member Avatar for bhagawatshinde

Hi guys, how to get textbox leave event in wpf. I want select next textbox when one textbox leave focus. How to use lostfocus event?

Software Development
Member Avatar for bhagawatshinde
0
299
Member Avatar for Mike Bishop

i am having real issues trying to build a sql string Dim SelectQry = "SELECT * FROM TblSupplierQuotes where TenderNo='" & Me.txtTenderRef.Text & "' AND KMBPartNo=" & " " & Me.lbKMBPartNo.Text & " " in SQL the TenderNo is varchar(50) = L003141T75-2012JANTEN KMBPartNO is text = 442 019 115 1 …

Software Development sql vb.net
Member Avatar for poojavb
0
97
Member Avatar for godzab

Here is the code first: People.cpp #include "People.h" #include "Birthday.h" #include<string> #include<iostream> using namespace std; People::People(string x, Birthday bo) : name(x), birth(bo) { } void People::People() { cout << name << "was born on" << birth.printDate(); } People.h #ifndef PEOPLE_H #define PEOPLE_H #include<string> #include "Birthday.h" class People { public: People(string …

Software Development c++
Member Avatar for triumphost
0
132
Member Avatar for SHAHAB UDDIN

How i take a line string input through keyboard ?. Example : I am a student .

Software Development java
Member Avatar for godzab
0
140
Member Avatar for tunisia
Member Avatar for Trentacle
0
122
Member Avatar for firdousahmad

Help me plz #include <stdio.h> int main ( int argc, char *argv[] ) { if ( argc != 2 ) { printf( "usage: %s filename", argv[0] ); } else { FILE *file = fopen( argv[1], "r" ); if ( file == 0 ) { printf( "Could not open file\n" ); …

Software Development c
Member Avatar for Trentacle
0
93
Member Avatar for pooja.shinde

Hello all, I am using Windows server 2008 OS as domain controller. When user's request comes, his id & password are verified across Active directory. If his id & password are already present in active directory then java program returns as valid user or otherwise returns as invalid user. Now, …

Software Development file-system java windows-server
Member Avatar for pooja.shinde
0
349
Member Avatar for s.mahamure

hello, i am creating client server module.i want username and password from active directory for authentication. first time when i run program it it authenticate users but when i delete user & change password policy after that created new user and run the program then i got error authentication error. …

Software Development file-system java windows-server
Member Avatar for s.mahamure
0
305
Member Avatar for G_S

Hello, I need your help with something (again): I need to control two text widgets with one scrollbar and, thanks to this website, I found some code to do it using listboxes (here: [url]http://www.daniweb.com/forums/post940371.html#post940371[/url]). I modified it, and it now works with text widgets and pyton 2.x. The problem is: …

Software Development python tkinter
Member Avatar for TrustyTony
0
3K
Member Avatar for rkelly70

I’m trying to produce this equation in VB.NET h = (sh * s + (dia / 2 (tan(ang))) + ((dia / 2 (tan(ang1))) / 3)) This is where I’d prefer to retrieve the data from. Sh = sheet height = 1 (can be variable)(data retrieved from textbox) S = sheets …

Software Development mathematics vb.net
Member Avatar for rkelly70
0
177
Member Avatar for rhowell

Hi, # Problem and Background # I'm trying to compile a program that uses some legacy c code generated using the f2c translator (*version of May 1991 13:06:06*). *decide.c* is the source that contains the translated fortran to c code and *f2c.c* is the header file. Durring compilation I get …

Software Development c seo
Member Avatar for rubberman
0
434
Member Avatar for Mikey12345

Hi Everyone I have a listbox that calculates interest rates the code is as follows:- dim amount as double = val(textbox2.text) dim counter as integer for counter = 1 to 10 listbox1.items.add(counter & " % " & formatcurrency((amount*counter)/100)) next counter This works great but i would like to use a …

Software Development listview vb.net
Member Avatar for Mikey12345
0
132
Member Avatar for ztdep

Dear friends: i have a data file, the structure of the file is as follows: // data.txt $Elements 1 1 2.5 2 2 1.0 2.0 3 2 3.0 4.0 4 4 1.0 3.2 2.7 1.6 $EndElements In the data.txt, the fisrt column is the row number, and the second column …

Software Development c++ data-structure
Member Avatar for Branickiod
0
115
Member Avatar for Gus_19

I know this is a dumb question, but I must be missing something simple and just can't figure it out. My program has a logfile to track things done with it. I'm trying to figure out what I am missing with creating the file if it does not exist. Am …

Software Development
Member Avatar for group256
0
122
Member Avatar for rokokmalboro

Hello all programmers .... need some tips which i have some issue down here... I got test the (sql1) and then the result for the records is zero (0) ...when it's run for "check manager gender" , the error appears... give me some help and i will owe u guyz …

Software Development visual-basic
Member Avatar for samsylvestertty
0
134
Member Avatar for jemz

Hi, Can i ask some help what is the best editor to use in learning C language.... By the way which is which language, should or i must to learn C or C++ ?. Thank you in advance.

Software Development c
Member Avatar for Lucaci Andrew
0
320
Member Avatar for summer_21

I want to make a simulation of logic circuits using basic logic gates in C.User will determine the types of inputs, and the gates.I want to design the circuit as a result.And simulation that produces output according to input values​​.But I can't do connections between gates.Can you give me advice …

Software Development c
Member Avatar for dheaven
0
784
Member Avatar for Rimmi90

I have databse in access 2007. my date datatype is Date/Time. I have made function to insert values to database. But it is showingd syntax error(missing operation)..." for insering date. Please help me how should i do i have tried hash in front of date and tried to save with …

Software Development
Member Avatar for Rimmi90
0
293
Member Avatar for dwhite12

>I need to take a list of files and remove a '.2' from a line in each file. I then need to rewrite the file without the '.2'. Using the code below I am >able to take a single file and do exactly what i need to but when trying …

Software Development python
Member Avatar for Lucaci Andrew
0
249
Member Avatar for Rhysorourky

ok im from C++ but no starting java this is my attempt of the password protect program which you get three try at but for some reason it dosnt compile it just gets errors import java.util.Scanner; public class password { public static void main(String args[]){ Scanner input = new Scanner(System.in); …

Software Development java
Member Avatar for JamesCherrill
0
119
Member Avatar for saybabs

I have a csv file i am submitting to database directly. I have tried many means but still not able to bulk copy into the database table. I have suggestions from people. All suggestions are welcome.

Software Development
Member Avatar for Cameronsmith63
0
404
Member Avatar for firdousahmad

how the compiler searchs for a file when we write fopen("filename","r"); please draw the flowchart of the whole process

Software Development c
Member Avatar for deceptikon
0
120
Member Avatar for firdousahmad

#include<stdio.h> #include<conio.h> #include<string.h> struct person { char name[10]; int rno; }; typedef struct person NAME; NAME stud[10], temp[10]; void main() { int no,i; void sort(int N); clrscr(); fflush(stdin); printf("Enter the number of students in the list\n"); scanf("%d",&no); for(i = 0; i < no; i++) { printf("\nEnter the name of person …

Software Development c c# c++
Member Avatar for abrarsyed
0
802
Member Avatar for karthikprs

I did a page for adding and viewing activities in a project. The table linked with that page has an UNIQUE constraint for the activity code. As a result of which when i add a new activity with existing Activity code, it is not accepted and gives a runtime error …

Software Development html-css java linked-list postgresql
Member Avatar for JamesCherrill
0
259
Member Avatar for VernonDozier

I'm getting an error that I don't understand. It's a Null Pointer Exception, but neither of my arguments in line 118 is null. According to the documentation, ImageIO.write will throw a IllegalArgumentException or an IOException, but it isn't throwing either. I'm not sure what could be null here. You can …

Software Development file-system image java java-swing
Member Avatar for JamesCherrill
0
2K
Member Avatar for dile

I'm C newbie and i'm having a tough time with my first assignment :sad: The assignment is on creating a Number Puzzle.....apparently it's the newest craze in Toronto and my prof is a big fan....unfortunately I'm trying to read in a file which looks like this: 9,8, ,5,,4,, 7,3,1, ,5 …

Software Development c puzzle
Member Avatar for Lucaci Andrew
0
10K
Member Avatar for sniper29

how can i make an array inside by a function????? so that the value i will input will change.... I am using Borland C++..... how can i start it???? 1. [SOLO] Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of …

Software Development c++
Member Avatar for YoDjinthehouse
0
592
Member Avatar for ASFtlink

This program ask user which arithmetic operation they want to play with then generates a random equation and lets the user answer it. When the user stop playing the game the program calculates the number of correct and answers and wrong answers. I need some help because the program crashes …

Software Development c++
Member Avatar for Lucaci Andrew
0
311
Member Avatar for choudhuryshouvi

hi, guys here is my question:- I've created an application for opening text files. there i got two forms.one contains the textbox where the contents of the file will be displayed. there is a button.clicking this will move me to another form which is displaying modally.in the second form i …

Software Development vb.net
Member Avatar for Luc001
0
166
Member Avatar for xzero1

i am using html agility pack to retrieve the articles from website with "p" tag, but it return all the user comments along with it. how to overcome one this. i have only one string holding all the stuff at last.

Software Development html-css
0
180
Member Avatar for karthikprs

Actually i'm planning to make a user registration page over swings and i decided that there should be a constraint that people with age below 21 cannot register. I want to make a validation of the date input of the user by calcualting the age and checking with if loop. …

Software Development html-css java
Member Avatar for karthikprs
0
2K
Member Avatar for hueikar

I am doing system using window phone 7 and sql server as database. I am using below coding to get shopping cart list at listbox. public List<Order> FindOrder(string custemail, string orderstatus) { var findorder = from r in order.Orders where (r.CustEmail == custemail && r.OrderStatus == orderstatus ) select r; …

Software Development client-server smartphone sql
0
125
Member Avatar for Azurit

Hi, I have several classes for different types of shapes (line, rectangle..etc) which all implements interface IDraw. And then I have a List<IDraw> called shapes which I want to Serialize/Deserialize. I think I got the Serialization right: [CODE] private void saveToolStripMenuItem_Click(object sender, EventArgs e) { saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.InitialDirectory …

Software Development file-stream
Member Avatar for code78
0
261
Member Avatar for enuff4life

when i do... [ICODE]String menu; Scanner keyboard = new Scanner(System.in); menu = keyboard; if (menu = "D"){ .... }[/ICODE] there is error sign under "menu = "D"" <can't convert String to boolean> why menu is boolean? I stated in String....

Software Development java
Member Avatar for matthewetaft
0
711
Member Avatar for abrarsyed

#include<conio.h> #include<stdio.h> #include<ctype.h> #include<string.h> int precedence(char c) { switch(c) { case '*': case '/': return(2); case '+': case '-': return(0); } } char *to_postfix(char *infix) { char stack[30],postfix[30]; int i=0,j=0,top=-1; while(infix[i]!=NULL) { if(isalpha(infix[i])||isdigit(infix[i])) { postfix[j++]=infix[i++]; } else if(infix[i]=='(') { stack[++top]=infix[i++]; } else if(infix[i]==')') { while(stack[top]!='(') { postfix[j++]=stack[top--]; } top--; i++; …

Software Development c
Member Avatar for abrarsyed
0
550
Member Avatar for pooh1234qwerty

why can't we take an array :- a[10000000]?? what is the alternative?

Software Development c
Member Avatar for pooh1234qwerty
0
188
Member Avatar for Leodumbi

How to maintain Zeros in incremented values ex: ECJ-00001 any help willb appreciated this is how I am icrementing Dim Separ As String() = fullString.Split("-") Dim StrPart As String = String.Format(Separ(0), "ABC", System.String.Format("SIM")) Dim intPart As Integer = Convert.ToInt32(Separ(1)) Dim Novonumero As String = String.Empty Novonumero = String.Format("{0}-{1}", Separ(0), System.Threading.Interlocked.Increment(intPart), …

Software Development vb.net
Member Avatar for Reverend Jim
0
80
Member Avatar for G_S

Hello everybody. I want to make sure about something: If I install ActivePython 3.2 as root on Linux, will it delete the distro's default Python (2.6)? I also installed Python 3.1 a long time ago, so I have Distro's Python 2.6, the official Python 3.1 and want to add this …

Software Development python
Member Avatar for G_S
0
180
Member Avatar for rkelly70

I'm new to complex maths and equations in vb, even the basic maths below does not work correctly. So can any one advise on the best data for for me to use e.g. below decimal for math calcs Help me put the below correct. Private Sub z() Dim ringheight As …

Software Development vb.net
Member Avatar for Reverend Jim
0
131
Member Avatar for G_S

Hello again. Here are the details: * My litle scripts work perfectly in my virtual Windows XP (I'm using virtualbox if that matters) as long as they are non-compiled .py or .pyw files * After compiling them, I double click on them and a DOS window comes out, then dissapears …

Software Development python
Member Avatar for G_S
0
772

The End.