199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MasterGberry

Ok, so i don't think I need to post all the code....most of you have seen a lot of it anyways, if I need to I don't mind. But anyways, I made the outFileDrs Stream, then at the end of the program it closes it. But its only 1 kb? …

Member Avatar for MasterGberry
0
134
Member Avatar for atticusr5

Hello all, So I have been trying to "redo" a c++ program in c and I am getting stuck on strings (I dont code in c never have still learning). Any who in my C++ program, I use string concationation tools to print out select output, however c does not …

Member Avatar for atticusr5
0
170
Member Avatar for lewashby

I was told that there are four python string delimiters but I can only think of three, ', ", & """. What is that last one? I searched google but with no luck.

Member Avatar for richieking
0
171
Member Avatar for flasp

The assignment says "Write a program that asks the user to type in numbers. After each entry, the program should report the cumulative sum of the entries to date. The program should terminate when the user enters 0." I have partly been succesfull I guess. But I dont know how …

Member Avatar for jonsca
0
259
Member Avatar for linux.buzz

Hi all, I am new to Linux/shell scripting having moderate knowledge. In my script, I need the execution time of command (say 'ls') in mili seconds level. For this, I would like to use 'time' command. The problem is that, how to save the output of time command in a …

Member Avatar for griswolf
0
131
Member Avatar for marufsiddiqui

i need some help/idea in coding a matrix class capable of giving its transpose matrix, inverse matrix & also the determinant of the matrix i am totally a newbie in c++; & learing all the way i just got the thought that to find the determinant it would be recursive …

Member Avatar for idriz12
0
2K
Member Avatar for darknoobie

Hello forum. I'm new to c programming. I have been reading source files from my smt32 firmware and I came across this code. In one of my books I read that you can have macro functions. Is this function testing whether I2C1 and I2C2 is enabled? [CODE]#define IS_I2C_ALL_PERIPH(PERIPH) (((PERIPH) == …

Member Avatar for darknoobie
0
202
Member Avatar for andrewkim

Hey, I'm trying to link my .c file together with the .h file and I got a C1014 error that stated that I got "too many include files : depth = 1024" I need some help with this error. Did I do something wrong here? Thanks. This is the change2.c: …

Member Avatar for mike_2000_17
0
112
Member Avatar for atzaman

Hi all. I currently have an issue where a javascript drop-down menu I have is displaying below the javascript slide show I have on the same page. I know this issue has something to do with the slideshow part having position:relative but how do I fix it? Works fine on …

Member Avatar for atzaman
0
229
Member Avatar for tushar_veer

Hi freinds, How we can do a graphics under window program as like draw a different shapes,as like Circle,REctangle etc.

Member Avatar for asma akram
0
98
Member Avatar for govinda_Alwani

Friend i m new in .net socket programing ............ i have made many management application in C#.net ......... i have tried to make chat application over local network and i have made it. but now i want to make a chat application which work over internet ............. can anyone help …

Member Avatar for govinda_Alwani
0
182
Member Avatar for Hey90

I have to create a database with the data stored in a .txt file. Each record is for a company with the following fields: Name, Place, East(km), North(km). Each record from the file needs to be read into a struct array. I have managed to read the records into a …

Member Avatar for Adak
0
257
Member Avatar for barriegrant1

hey, im currently creating an e-commerce store, im quite new to ASP.NET and C#. im trying to create a menu that is generated based on the database tables. i have created a stored procedure, which works correctly: [CODE] ALTER PROCEDURE dbo.getProductsForCat AS SELECT * FROM products_cat WHERE product_cat_id IN ( …

Member Avatar for barriegrant1
0
295
Member Avatar for AmerJamil

i had a quiz ,im confused about answer..can you please clarify which of the following is true? with reason 1. int a[ ][ ] ={{2,3},{3,4},{4,5}}; i. It will create a 3*2 matrix and initialize it ii. It will create a 3*2 empty matrix iii. It will actually create a single …

Member Avatar for VernonDozier
0
128
Member Avatar for Neversleepin

Hi, i know how to read specific line form a text file but if we want to delete lines by specifying the line number. here is the code, but it's not working: i want to delete line 1 and 2 of the text file. [CODE]import java.io.*; public class ReadSpecificLine { …

Member Avatar for Neversleepin
0
9K
Member Avatar for ryathegr8

hi i have coded for forget password module but getting an error that is attached with... dont know why its hapen....here is code [CODE]string strCon = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlConnection objcon = new SqlConnection(strCon); objcon.Open(); string str1 = "'"+txt_EmpFP_Uname.Text+"'"; string str2 = "'" + txt_EmpFP_OldPass.Text + "'"; String query = "Select * …

Member Avatar for ryathegr8
0
312
Member Avatar for leecheneler

I am in the process of writing the best first algorithm. i have not yet implemented the "best" part of it to select only the best node to expand. currently it is expanded each node created. However the while loop expanding the nodes stops executing before it should thus never …

Member Avatar for LTouch
0
2K
Member Avatar for kubic

Hi, I need to use LPT as SPI with CS DO CLK But how to setup LPT pins for SPI can I use D0 D1 D2 on lpt port for this ? is this correct ? lpt pin 2 CLK Lpt pin 3 CS Lpt pin 4 DI [CODE]Const Po378 …

Member Avatar for kubic
0
258
Member Avatar for Masood_786

Hi All i have downloaded following code from web that inputs sound samples and displays spectrum, i want to print frequencies present in each second in the spectrum.i.e when ever the spectrum is displayed i want to print those frequencies as well on the console. Below is the code i …

Member Avatar for Masood_786
0
718
Member Avatar for gopi17

hey guys, i'm designing a satellite for my project....the thing is its looks kinda plain...so i read abt texture coor....but i'm not sure how to use it....could you help me out with this.... [CODE] glColor3f(0.5f, 0.0f, 1.0f); glTranslatef(0.0f,0.0f,0.0f); gluCylinder(pObj,5.0f, 5.0f, 10.0f, 24, 24); //drawing cylinder(but got holes...=(,must cover them up) …

Member Avatar for emilo35
0
495
Member Avatar for samsambm

Hello . I'm not sure what is wrong in my code. I'm trying to expand table row to see more details from mysql query . The idea is to click 'show / hide ' link and on that onclick event the row below need to be expanded.Here is my code …

Member Avatar for samsambm
0
770
Member Avatar for flasp

The question is "write a program that request the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers. At this point, assume that the smaller integer is entered first. For example, if the user enters …

Member Avatar for kri_prasad2000
0
171
Member Avatar for PoZHx

DLL Injector coded in C: [CODE]#include <windows.h> #include <tlhelp32.h> #include <shlwapi.h> #include <conio.h> #include <stdio.h> #define WIN32_LEAN_AND_MEAN #define CREATE_THREAD_ACCESS (PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ) BOOL Inject(DWORD pID, const char * DLL_NAME); DWORD GetTargetThreadIDFromProcName(const char * ProcName); int main(int argc, char * argv[]) { // Retrieve process …

Member Avatar for sasue11
0
2K
Member Avatar for anuj_sharma

Hi, Can anyone tell me what is the problem with the below code: [CODE] String eleSrc=srcEle.toString(); String srcdata_list[]=eleSrc.split("-"); String eleDest=destEle.toString(); String destdata_list[]=eleDest.split("-"); int found=0; for(int i=0;i<srcdata_list.length;i++) { for(int j=0;j<destdata_list.length;i++) { if(srcdata_list[i].equals(destdata_list[j])) { found++; System.out.println("matches"); System.out.println("after matches"); break; } else { System.out.println("in else"); } } System.out.println("out of first for lopp"); if(found==0) …

Member Avatar for anuj_sharma
0
340
Member Avatar for mbox_96

Hello python experts! I have a simple script that sends an email with no problem, in order to interface with vb6 I'm tried to modify the entire code into COM service...but I'm having trouble with this error..global name 'MIMEMultipart' is not defined which is on the send_email method. any help …

Member Avatar for mbox_96
0
4K
Member Avatar for tux4life

Hi, please don't blame me for reinventing the wheel, I was bored and had nothing to do, so I thought: what would I write? And apparently this code is the result :P

Member Avatar for Ancient Dragon
0
205
Member Avatar for mith_cool

I have created a jsp page with some credentials of the user and this time i dont want it to pass to the validation form servlet through doGet() but through doPost(). I am facing some problem while doing this validation of none of the field could be left blank. [CODE] …

Member Avatar for mith_cool
0
511
Member Avatar for rubik-pypol

Hi, I am a new user and I want to show you my Python library. [B][I][U][COLOR="Red"]pypol[/COLOR][/U][/I][/B] pypol is a Python library that allows you to manipulate monomials, polynomials and algebraic fractions. An example: [CODE]>>> import pypol >>> a = pypol.polynomial('3xy - 3a^2 + 2b') >>> a - 3a² + 3xy …

Member Avatar for rubik-pypol
0
409
Member Avatar for Majabat

Dear All, I’m implementing a vector class that allows me to do vector arithmetic. What I’ve implemented is the following: [CODE]class mVec { private: float vec[3]; public: mVec(); mVec(const float * const parray); mVec(const float a, const float b, const float c); ~mVec(); mVec operator+(const mVec& param); mVec operator-(const mVec& …

Member Avatar for Majabat
0
159
Member Avatar for ctkam

hi, I want to import a text file which delimited by tab to mysql. 1) using phpmyadmin => results ( exceed time limit even i've extend) 2) open using excel file save to .csv but still couldn't save all the record 3) using ms access with odbc connection => almost …

Member Avatar for ctkam
0
1K
Member Avatar for -ordi-

Hei, I tried to find "dynamic programming" algorithms in Python. If anyone has examples of what it means a dynamic programming, it's would be nice. (Please not post Wikipedia links). Google -> c++, java and other, not Python. Thanks!

Member Avatar for richieking
0
175
Member Avatar for LiQuid.Ace

So basically what im trying to do is pass a variable from a JS function to PHP variable. Currently the onClick code is: [code] <?php include('onload.php'); ?> <body> <br /><br /><br /><br /> <center><font color="black" size=20><a style="text-decoration:none" href="#" onClick="showpopupshare()"> [/code] ShowpopupShare(): [code] function showpopupshare() { document.getElementById('mmpopup').style.display='block'; document.getElementById('mmpopup1').style.display='block'; window.setTimeout("StartTheTimer()",30000); } [/code] …

Member Avatar for blocblue
0
147
Member Avatar for brothaofdes

Hello all: I have a small script that will present options to a user, and from those options will export data into an Excel spreadsheet. This seems to work correctly, but the problem is that the user interface page does not get updated after the download. Here is an example: …

Member Avatar for jkon
0
884
Member Avatar for kirtan_thakkar

I have created my personal login system. I am kinda newbee here. When user log in it creates cookie as 'user'. I've seen some sites to which creates password cookies too. So i need to verify both the cookies in mysql database every time with the every page loads? And …

Member Avatar for jkon
0
105
Member Avatar for waveydaveywaves

I've been trying to get this code to work for hours can anyone spot the mistake i made? its a code to edit the contents of a database field calling it by its primary key. my error code is Parse error: syntax error, unexpected T_VARIABLE in E:\xampp\htdocs\php\databaseview\records.php on line 103 …

Member Avatar for pritaeas
0
348
Member Avatar for anita_86

Hi! I am getting message #1052 - Column 'userlevel' in where clause is ambiguous while running following query: [CODE]<?PHP $query=mysql_query("SELECT mssgs.start_date, mssgs.task, mssgs.status, mssgs.timestamp, mssgs.due_on, mssgs.id, users.fname FROM mssgs INNER JOIN users ON mssgs.uid=users.uid AND mssgs.userlevel=users.userlevel WHERE status=0 AND userlevel=1 OR userlevel=3"); if(mysql_num_rows($query) > 0) { while($row=mysql_fetch_array($query)) { if($row!=0) { …

Member Avatar for pritaeas
0
111
Member Avatar for HelloPeople1

Hi guys I just started writing in c++ yesterday, although I did write in visual basic before. After watching some basic c++ youtube video's i decided i wanted to make my first game, tic tac toe. So as a warning i did this without using anyone else's code or any …

Member Avatar for jonsca
0
170
Member Avatar for i4ba1

Hai all, I'm being create a dictionary. In the dictionary have feature search the word. if user entering the character "g" the word view in JList will show the word begin with "g". i try this first using Linier Search, it found the word, but linier. i mean if i …

Member Avatar for i4ba1
0
1K
Member Avatar for Deepak Agarwal

Hi, I am working on a java servlet (abc.java) in Web Application Project in Eclipse. The code works fine and the server is running on [url]http://localhost:8080/[/url] . But when I connect to this localhost server from other C# application using [url]http://localhost:8080/abc[/url] It says "Error 404 and no file found : …

Member Avatar for masijade
0
114
Member Avatar for raymondchew2007

Consider and ADT list of integers. Write a function that computes the sum of the integers in the list aList. The definition of your function should be independent of the list’s implementation. may i know how to do this type of question?

Member Avatar for kernel>panic
0
133
Member Avatar for tarbeux

Hello, I could use some help in making a program that computes the volume of either a cube, a cyliner, or box. The user enters the shape (strings) they want (ex: cube. Then the program asks to enter the values such as side length, radius, etc. The program then displays …

Member Avatar for kernel>panic
0
91
Member Avatar for chandaboy

Hi, guys I made a web application and run in local host in Mac, but the problem is that when I copy that folder and paste in my system (xp) then it is not working, I don't know what is the problem ....??? can any buddy know this problem then …

Member Avatar for chandaboy
0
86
Member Avatar for register86

Hi all, I installed jdk 6_23 and set the path of jdk in system path properly. And then I could run any jar file by command line, but when i double-clicked on the jar file, a message of Java Virtual Machine Launcher occured : " could not find the main …

Member Avatar for kvprajapati
0
270
Member Avatar for AA54377

Hi all, I need help with the save button of my java inventory program part 6. It compiles and runs but then it get the error message stating C:\data\inventory.dat"(access denied) and then general output field shows: [code=text] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at …

0
115
Member Avatar for toadzky

I am trying to modify and recompile a dll file. I disassembled it so I have the C# code. I also have the .resources file that is a Pack URI. I want my version to have it's own resources file, but I need parts from the original. How can I …

Member Avatar for toadzky
0
213
Member Avatar for nathanw

What the code does: accept a stock ticker eg AAPL as text input. It assigns it a number if it hasn't already been assigned a number. Then returns the number associated with that ticker. Part of a larger program. The code for int gethandle worked fine when it was in …

Member Avatar for jonsca
0
214
Member Avatar for nidhinpjustine
Member Avatar for lochnessmonster

i have a question about casting for pointers! int *pointer = 30000; store address 30000 into pointer int *pointer2 = pointer; // store address 30000 into pointer2 the above 2 statements are equivalent to.... int *pointer = (int*)30000; is this statement correct? if not whats the difference! thx

Member Avatar for Trentacle
0
153
Member Avatar for MasterGberry

I am trying to do the following in C++, the C# code is here test is a string btw. [CODE]if (test == null || !test.Equals("Item Name\t")) return data;[/CODE] I did this in C++, but its crashing the program [CODE] if (test.compare(NULL) == 0 || test.compare("Item Name\t") != 0) return data;[/CODE]

Member Avatar for MasterGberry
0
650
Member Avatar for ben.marks

Hello, I am trying to get the MySQL id field to auto update itself when an item is deleted. However the below doesnt work. When a user searches by name, then I need to grab the id of that name before I delete it and minus 1. [CODE]$name = $_POST['name']; …

Member Avatar for waveydaveywaves
0
163

The End.