199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jeevsmyd

[code]for(int i=0;i<=c;i++) { l=0; if(strcmp(findedge(tst[i],dfa[0][j]),"null")!=0) { strcpy(t1,findedge(tst[i],dfa[0][j])); //l=strlen(temp); strcat(temp,","); strcat(temp,t1); //temp[l+1]='\0'; //temp[l]=','; } } [/code] When I try to append comma or some other symbol to temp, a segmentation fault occurs. If that step is omitted everything works perfectly. This is code is from my program to convert NFA to …

Member Avatar for Ancient Dragon
0
243
Member Avatar for KatseasSAvvas

I'd like to ask the user if he/she wants to rerun a script. I've thought of doing that with a while. My problem is that both [CODE] import sys rerun = "y" while rerun == "n": sys.exit() else: print("do some stuff") rerun = str(input("Would you like to start again? [y/n]: …

Member Avatar for KatseasSAvvas
0
2K
Member Avatar for lena1990

hi i work on project in java and i use tcp and after that i almost finish the project then i have to create an applet and the applet doesnot work with tcp so what can i do i need any help?

Member Avatar for NormR1
0
103
Member Avatar for crazyjdog

I have this problem that I am working on for class, I don't have the method calls in the main mostly because I'm not sure how to use them. I guess my question is what am I missing and what do I need to change to get this to run …

Member Avatar for dwarvenassassin
0
206
Member Avatar for leyla

Hello, I'm back again with the same code however I have tried everything and I am still stuck. The message box works, and all of the values are correct but the last value. I would rather not change the message box code, but maybe just the last line where the …

Member Avatar for codeorder
0
177
Member Avatar for klemme

Hi, I think by now I have the right syntax for joining 3 tables, but please correct me if it is wrong. The tables I am joining a as follows: PRODUKTER (GENERAL PRODUCT INFORMATION) VARE_TYPE (SHIRTS, JEANS ETC) SIZES (PRODUCT SIZES) What I want to do is to let the …

Member Avatar for klemme
0
203
Member Avatar for DarkMonarch

is it possible in C to do an unfix size array like in Java ? if so, howto ? thx guys Dark

Member Avatar for DarkMonarch
0
196
Member Avatar for Kycas

Hi, I want to filter .BMP image with 3x3 digit matrix. Basicly it is multiplying image pixels by numbers in matrix. Any suggestions how it should be done? I know that i have to open a file using fopen() I did that. Should I just loop through whole image and …

Member Avatar for Kycas
0
78
Member Avatar for abdulraqeeb33

Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\xampp\htdocs\xampp\display.php on line 5 Connection Failed: php is working fine, ran other simple php scripts... but this is the error when i connect to a ms …

Member Avatar for abhinav24291
0
2K
Member Avatar for bigzos

This is my login form [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:/Users/Space Era/Documents/User.mdb") Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM Users WHERE userid = '" & TextBox2.Text & "' AND password = '" & TextBox1.Text & …

Member Avatar for bigzos
0
241
Member Avatar for bflack

Hello, I am creating a site (for practice). It is a site that works like the '9gag.com' where users can see images stored on the page. So far, I have successfully retrieved and posted image files from the server but I wanted to put on a limit on how many …

Member Avatar for iamthwee
0
168
Member Avatar for tleverington1

I'm having some problems when trying to set a panel within my JFrame to visible when someone either presses enter or clicks the JButton within my two methods shown in previous post. I am getting the following error: Cannot make a static reference to the non-static field Interface.panel. The code …

Member Avatar for tleverington1
0
2K
Member Avatar for coolbeanbob

Is this a real class? I am working through a Deitel book, and they use it, but my program does not recognize it. I am importing the same libraries as the example in the book.

Member Avatar for pdeitel
0
240
Member Avatar for sanidon

hello m new here starting java can anyone guide me how ti initilize array of objects in java em receving java.lang.NULL pointer exception ` choice=Integer.parseInt(JOptionPane.showInputDialog(null,"Enter choice"));` Patient pati[]=new Patient[49]; if(choice == 1) { pati[i].setdata(); pati[i].showdata(); count++; } if(choice== 2) { pati[count].update(); pati[count].showup(); } }while(choice!=3); }

Member Avatar for richieking
0
202
Member Avatar for wallet123

hi hello! im planning to do a payroll system for our defense project,im a beginner and i want our program to be more complicated in a way that we can still be able to explain it. I want our program to be able to have multiple input boxes, because the …

Member Avatar for wallet123
0
120
Member Avatar for jyu

i store student information(name grade mark) in database....how to print student who score less than 50.0 mark and who score A ,Compute the average mark of students in the class, number of students who scored less than 50.0 marks,Print out the information for all ten students and Given a student …

Member Avatar for zeroliken
0
205
Member Avatar for Chub97

I have spent the last few days trying to optimize my site for the uploading of large video files. I have changed all the php.ini settings way over the time that it would take to upload the videos but nothing seems to work. It gets to about 30% and then …

Member Avatar for amit prm
0
465
Member Avatar for bmackkc

I have two forms; I'll call them frmReturn and frmReturnItem. FrmReturn is bound to data in a SQL table; data entered in frmReturnItem is stored as a child table in SQL. In the database, there is a one-->many between Return and ReturnItem. frmReturnItem can be opened only from frmReturn. frmReturn …

Member Avatar for major_lost
0
2K
Member Avatar for RandomIntellect

Hi, I've got two tables ina database which I'm trying to update at the same time. I'm using the code below to update: [CODE] Conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=KingfisherDB.mdb;") Conn.Open() 'Define data adaptor and fill data sets DA = New OleDbDataAdapter DS = New DataSet Cmd = New OleDbCommand Cmd.Connection …

0
127
Member Avatar for leyla

Below is the code I have been working on in VB.NET What basically happens is that when the user presses the calculate pay button, a message box is supposed to appear with all of the information in it, however the error comes up with: 'InvalidCastException: Conversion from string "Total pay: …

Member Avatar for leyla
0
360
Member Avatar for sinrtb

In your opinion what is the fastest c++ compiler? I have found the gnu's compiler on my schools linux machines tobe very fast but i personally prefer the windows enviroment, is there any fast compilers for windows , something faster then g++ and mingw?

Member Avatar for Jimmeny
0
435
Member Avatar for amir808

hey guys i just started using C# im trying to change the backcolor when the mouse if pressed and moved, it works fine when the window is small, however when i maximize the window the colors stop changing and keeps on crashing saying that Color.FromArgb(x,y,g+=1) cannot exceed 255,i tried preventing …

Member Avatar for ddanbe
0
178
Member Avatar for javalover

Hi frnds!!!!!! Am trying to crop an image using java.. If I draw a rectangle on the image it ll crop the image in the given level.. My code does it but the fact is, it is not cropping the actual part which we selected..This is my code.. [CODE] import …

Member Avatar for javalover
0
2K
Member Avatar for anthony143

[B]Hi, guys can you help on how to make a program which hotel management system using C++? I don't know where to start or could you pls post the source codes in a simple structure so that I can understand it easily I am an I.T student here in the …

Member Avatar for sawako
0
164
Member Avatar for nickliutw

I'm working on a Palindrome program. For some reason, my compare method always return zero. "c" should suppose to increment 1 when both letter are the same, but my method would not increment 1 when the letter are the same for some reason. I'm not sure where is the problem. …

Member Avatar for nickliutw
0
164
Member Avatar for coding101

im writing a chat server in c and am need help. my server can write to a socket, the client can read from the socket. How do i have the client write to the socket and have the server read from the client socket? server.c [CODE] #include <stdio.h> #include <unistd.h> …

Member Avatar for histrungalot
0
217
Member Avatar for newbie14

Dear All, I have a function with input parameter as const u_char *p. So when I write like this printf("\n\n Char value p : %.2x",(unsigned int)p[1]). It gives me a hex value. How to print the whole p value which method is best to use. I need to analyse it …

Member Avatar for newbie14
0
474
Member Avatar for rapirap

Hi! Please help me with my search functionality...searching using textbox and retrieving the data into a listview. here is my code: [CODE]openrstJCcaseInfo "select * from JCcaseInfo" If Not rstJCcaseInfo.EOF Then caseinfo.ListItems.Clear Dim m With rstJCcaseInfo While .EOF = False If LCase(txtsearch.Text) = LCase(rstJCcaseInfo.Fields("CaseTitle").Value) Then Set ls = caseinfo.ListItems.Add(, , rstJCcaseInfo.Fields("CaseStatus").Value) …

Member Avatar for Jx_Man
0
287
Member Avatar for david_r

I am trying to pull some data from a report that is simple called an API link. I am not familiar with the data format. Hopefully, I can find out the format and see if someone has already developed some PHP code to access and manipulate this. I thought it …

Member Avatar for david_r
0
113
Member Avatar for Labdabeta

How do you make shadows in OpenGL. I have been using the NeHe tutorials, but I do not understand their shadow lesson. Can anybody help?

Member Avatar for mike_2000_17
0
380
Member Avatar for hey.howdy

[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int …

Member Avatar for histrungalot
0
211
Member Avatar for Farhan_B

I sence victory been battling the this code for 2 days now. the code i have generated is [CODE] strsql = "delete from cg_security_user_right where user_id= " & TextBox1.Text & " role_id=" & TextBox2.Text & ""[/CODE] it comes up with this error Syntax error (missing operator) in query expression 'user_id= …

Member Avatar for Phasma
0
153
Member Avatar for dwarvenassassin

Again, for anyone working with ID3 version 1 or 1.1 tags. This class is used to store the tags associated with a given file. There is a default constructor in case you need to instantiate an 'empty' instance, but in 99% of cases you pass the filename of the audio …

0
193
Member Avatar for dwarvenassassin

For anyone working with ID3 version 1 or 1.1 tags in audio files, this static class may come in handy. It uses indexers to convert between the textual to the numerical representation or from numerical to textual and also accounts for unset and invalid values. Being static, it is always …

0
220
Member Avatar for Ctechnology24

Hello guys I am having a problem regarding queries in PHP because I not very familiar with queries especially inner join function, I need to make a profile page wherein it will display records from tblpatient_pass and tblpatient_info connected by (PK)MR_no from tblpatient_info and (FK)RelationMR_no from tblpatient_pass here is my …

Member Avatar for Ctechnology24
0
178
Member Avatar for evanovan

i have an "add function" that adds names alphabetically to a sorted linked list. the list is already made in this format : Dani Web Mark Markos Michael David Zebra Zebra . . etc if i add a node : adam ( it goes to the end of the list …

Member Avatar for evanovan
0
205
Member Avatar for moroccanplaya

i have random mobile number with text messages, how would i go about only viewing the numbers i want for example 1234 i have [CODE] foreach($message as $msg) echo $msg; [/CODE] which displays all the messages

Member Avatar for diafol
0
276
Member Avatar for HelpMe1234

I've got this intro C++ class and I can't figure out what the teacher is looking for, please Help Me if you can. 1) Each group turned in pseudocode for an in class project with five or six steps to run a baseball game. You are to turn the pseudocode …

Member Avatar for HelpMe1234
0
270
Member Avatar for ipodtrip

to anyone, I'm new to using C# wrote a program for a business class to calculate double-decling balance method of depreciation for years. But when I run the progam and enter the 2000 for property value, 5 for property life. I get the wrong results. for year 1 Value at …

Member Avatar for Momerath
0
550
Member Avatar for Prisms

Hey guys I'm doing a fun little program that will use the character roster from league of legends. Basically I am going to have all the champion data like health, attack power, and type (early, mid or late game) stored and then compare the characters and depending on what the …

Member Avatar for Prisms
0
204
Member Avatar for timosoft

Hello i want to have a txt file on my application final .exe the .txt is located at C:\Users\Timhook\Documents\Visual Studio 2008\Projects\WWTBAM \WWTBAM \bin\Debug\hask.txt thats my project bin\Debug folder will it include the this hask.txt file after publishing the application? thanks

Member Avatar for timosoft
0
486
Member Avatar for mjselkirk

I have been given a project to create the interface and code for a ticket seat calculator I have to produce the quantity and price which is from a text box on the main frame pass them into the seat class to create the totals then pass it into a …

Member Avatar for NormR1
0
158
Member Avatar for karoma

Hi guys, I'm trying to develop a card program, which seems to be working fine, with the exception of the dealing part. The deck is initialised, shuffled, then is supposed to deal out 5 cards without duplicates. However I keep seeing duplicates when I deal. I've ran though it countless …

Member Avatar for WaltP
0
131
Member Avatar for codemonster

Ok - so I have an object "A" that has a value (for the sake of example here, it's initialized to 0). I'm making a GUI and I've created a panel that is supposed to display the amount from object "A" in a label which shows up on the screen. …

Member Avatar for codemonster
0
214
Member Avatar for Whilliam

Hey guys. I need your advice on how to pass critical data from page to page. It's just one data. It's an ID from a list. It has to be secure because this data needs to be concealed. I've used: the anchor tag. I did it like this. anchor($link . …

Member Avatar for cereal
0
120
Member Avatar for coolbeanbob

Hello, I am trying to work through an example from a Deitel book. I keep getting a "source not found" error on line 27 of the LabelFrame class. I have put the "bug1.png" in every single directory associated with this project. I am stumped... [CODE] import java.awt.FlowLayout; import javax.swing.JFrame; import …

Member Avatar for coolbeanbob
0
187
Member Avatar for SgtMe

Hi all. I'm using DragonFireSDK to make an iPhone app, which means that I can't use any external libraries other than the SDK one. I am trying to get an integer variable for score to a function which will display text on the screen. However, that function takes a char* …

Member Avatar for Ancient Dragon
0
407
Member Avatar for benclifford

Hi, I have a task to perform which all to do with the smurfs, reading from a file and doing some simple stuff to it. The last part I need to do is print out a list of all smurfs and their corresponding role in alphabetical order. I am hoping …

0
245
Member Avatar for Sommy

Hello, I'm writing a small game for a class. The problem is when i run it it starts consuming the computers resources, i bet i've done something very wrong but i just can't find it (haven't even added bouncing back from the paddle to the code, or game over for …

Member Avatar for NormR1
0
279
Member Avatar for megaman656

for example, i want to combine two number 6 and 8 and it will equal 68. is this possible in C? [ICODE]int a = 6, b = 8,c; c=ab; [/ICODE] and c will = 68.

Member Avatar for VernonDozier
0
107

The End.