199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for archduke83

hello, im just trying to translate a 1d TV denoising function for matlab, which can be found here [URL="http://cnx.org/content/m31292/latest/"]http://cnx.org/content/m31292/latest/[/URL], to C++. Here's my attempt: [CODE] inline vector<double> tvDenoising(vector<double> data, double lambda, int Nit) { vector<double> J (Nit); int N = data.size(); vector<double> z (N-1); fill (z.begin(),z.end(), double(0)); vector<double> diffZ (N-1); …

Member Avatar for archduke83
0
259
Member Avatar for hi102

Can someone please help fix this program? I'm pretty new in Python. Every time I run this program it says : Traceback (most recent call last): File "E:/Python/delin.py", line 38, in <module> discounted_total = regular_total - full_discount TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' def find_discount(total): if total …

Member Avatar for hi102
0
11K
Member Avatar for Rogue Hermit

Hello, I am working on a program that requires the splitting of a string (the string in question is "BSHDDBDSBSHHSBH") so that it can count the occurrences of each separate letter. The code I currently have is: [CODE] public static void countPercent(Scanner input) { String nucl = input.next(); int[] count …

Member Avatar for joehms22
0
106
Member Avatar for Shlesh

hi!!!!! any body tell me what is command line argument with example. Thank's in advance.

Member Avatar for ashishkumar008
0
207
Member Avatar for Medalgod

I am designing an instant messanger and I am using tabs to allow for multiple chats to be taking place in the same windows form. When a new chat is opened, a new tab is added, using a User Control to make the new tab contain all of the required …

Member Avatar for nick.crane
0
1K
Member Avatar for adarbyem

Hi all, the search function failed to yield any results for me so I come here to create a new thread. I'm learning C++ on my own (sort of a weird hobby of mine to learn code, don't ask) and had an interesting question... Consider the following: Ingredients.h [code=c] #ifndef …

Member Avatar for adarbyem
0
277
Member Avatar for localp

I need some help to write to a MySQL database using C++. any basic tutorial will be appreciated. I did google but couldn't find a beginner tutorial. I am sort of lost here. :(

Member Avatar for Isaac Remuant
0
83
Member Avatar for deucalion0

Hey guys I was hoping some of you here may know how to help me with this problem I'm having where I have created picture boxes that are aliens in a game of space invaders and they move from left to right down once then right to left just like …

Member Avatar for Momerath
0
130
Member Avatar for gpjacks

This is a program which declares two vectors of 6 elements each of type double. One vector is named weight and the other is named rate. The program uses a loop to prompt the user for a weight in ounces and a postage rate for that weight and then stores …

0
255
Member Avatar for format_c

can any one identify any problems in my code? it keeps crashing once it reaches the else condition. [CODE]void path(char paths[][70], int sROW, int sCOL, int fROW , int fCOL) //recursive path function { if (paths[sROW][sCOL]=='E') { for(int i=0; i<20; i++) { cout<<endl; for(int j=0;j<70; j++) { cout<<paths[i][j]; // display …

Member Avatar for VernonDozier
0
101
Member Avatar for tearose49

I finally have it so that when I click the submit button, I do get an email, but all that shows up is: "Name:". It doesn't tell me what the name is, or show the other two fields. (It does go to the Thank You page OK.) What am I …

Member Avatar for tearose49
0
196
Member Avatar for methuselah90

good day everyone, i just wanted to ask for some help in using block ui for forms. i have a form with 3 values. once the form is submitted then block ui will appear with all the information from the form "echoed" within the div. but the problem is each …

Member Avatar for methuselah90
0
1K
Member Avatar for Hayzam_#include

Hi i wanted to make a software that can "Off" and "On" a computer fan connected with a usb can i make it in c++?? i have 1 year experience doing C++ Thanks,

Member Avatar for Hayzam_#include
0
141
Member Avatar for balle

How would I make a code that dynamicly gets MySQL and makes it like ?UserID=54556 :-/?

Member Avatar for johnmaguire2013
0
143
Member Avatar for Defoe

Hey guys. I'm learning by myself the C Development... But I've got a serious problem with one my application. The exercice is: Create a board of 10 lines and 3 columns. Scanf this board. Check the 3 highest numbers of each line, add them And just printf the highest sum …

Member Avatar for Defoe
0
109
Member Avatar for SkyVValker

[ICODE]CR.Reset CR.ReportFileName = "StudentInformation.rpt" CR.SelectionFormula = "{SPINF.GRNO}=" & Me.txtGRNo.Text & "" And "{SPINF.CMBCAT}=" & Me.cmbCat.Text & "" CR.Action = 1[/ICODE] [I]m trying to passing two parameter for cr..! bt it always shows the error type mis match.! plz help me[/I]

Member Avatar for AndreRet
0
219
Member Avatar for plasticfood

for example, i have a txt file that reads: number of items: 2 number of zombies: 3 .... i want to write a method that increments just the numbers, and leave the "number of items" and "number of zombies" alone. is there any way to do this? i can easily …

Member Avatar for plasticfood
0
114
Member Avatar for salamjamal10

Hello all, Please help me if you can: my question is [B]what is the efficiency of the queue's insertion and deletion operations when the ADT list's implemetnation is a. Array-based b. Pointer-based[/B] Give me a hint if you can. I am new to the C++ world so please forgive me …

Member Avatar for VernonDozier
0
205
Member Avatar for jasleen12345

[CODE] #include<iostream> #include<cstring> using namespace std; class city { protected: char *name; int len; public: void getname(void) { char *s; s= new char[30]; cout<<"Enter city name: "; cin>>s; len= strlen(s); name= new char[len+1]; strcpy(name,s); } void printname() { cout<<name<<"\n"; } }; int main() { city *cptr[10]; int n=1; int option; …

Member Avatar for MattyRobot
0
107
Member Avatar for Dhirajseo

Hi Guys, i want to submit daily news for my company peoples, i need similar templates like Code: [url]http://alltop.com/[/url] and [url]http://mashable.com/[/url] can you suggest me which template is similar to above sites? suggest me wordpress and joomla templates

Member Avatar for diafol
0
72
Member Avatar for cossay

I am in my final year in the university and about to do my final year project. I would be very happy if anyone of you can suggest an idea that I can implement with PHP. Thanks in advance.

Member Avatar for diafol
0
126
Member Avatar for d5e5

I know next to nothing about statistics so tried Statistics::Basic because it seemed easy to use. Then I tried Statistics::Descriptive because it has functions that Statistics::Basic lacks. What I did not expect was to get a different result when calculating Standard Deviation using Statistics::Descriptive than when using the other module …

Member Avatar for d5e5
0
410
Member Avatar for stangn99

Hi guys/gals, I'm looking for a CMS Photo management site. Kind of like a Stock photography site, only I don't want to sell, I just want display images/EPS files. I REALLY like [url]www.istockphoto.com's[/url] layout and functionality. It gives previews for EPS files, which is what I need. I'm currently using …

Member Avatar for stangn99
0
181
Member Avatar for minskypooh

The problem is to create a console-based program that prompts the user for name, student number, course, and grade (50-100 whole number only). After the input, a message should be displayed depending on the grade. The program should display an error message and terminate immediately if there is an invalid …

Member Avatar for minskypooh
0
199
Member Avatar for ktimov1

In my C# winforms project I have a DataGridView which is displaying a View of two SQL tables. Is there a workaround for Updating the View from the DataGridView. Using a Save button on my form, At first I assumed I could update the View like this: [CODE]this.DataSet.EndInit(); this.ViewTableAdapter.Update(this.DataSet.View);[/CODE] Did …

Member Avatar for Mitja Bonca
0
577
Member Avatar for Mike Bishop

Morning all, Hope you can help. I normally use VB6 for my projects but thought i would look at Visual studio 2010. I have a windows form with a connection to my sql database which is working fine. i want to be to select data and input that data into …

Member Avatar for Mike Bishop
0
2K
Member Avatar for gokulprema

hello, can tel me easy and fastest method for fetch data value from database to gridview using asp.net with c#

Member Avatar for Mitja Bonca
0
163
Member Avatar for nssltd

Hey, During my development of web browser i have encountered a problem. The problem is that on my bookmarks panel if a user adds a bookmark that's already on the panel, the application gets an error and has to quit. I tried surrounding the code with a try catch statement …

Member Avatar for Mitja Bonca
0
140
Member Avatar for vskumar19

Hi all, I have a structure for which array of objects are created Now i want to return that array of objects to a function just like below: struct mystruct s[5]; . . code . return s; in the function i captured using *s void myfun(mystruct *s) but i am …

Member Avatar for Isaac Remuant
0
108
Member Avatar for zikalkis

Who shall and in which language convert this VBA UDF Code to be applicable for the application forms? [CODE=text]Function Tryme(mycell) mylen = Len(mycell) For j = 1 To mylen mytest = UCase(Mid(mycell, j, 1)) If InStr(1, "AIJQY", mytest) > 0 Then mysum = mysum + 1 ElseIf InStr(1, "BKR", mytest) …

Member Avatar for zikalkis
0
113
Member Avatar for vishalkhialani

Hi, I have the below code and it works fine except the part where I need to access data.Picture. I know its a syntax error but I can't seem to understand what. [CODE]$.post("rpc.php",arr, function(data) { $('#dorants').append(data); $('#dorants').append(data.Picture); [/CODE] Like always appreciate the help :)

Member Avatar for vishalkhialani
0
108
Member Avatar for dhawalruud

[code] #include<iostream.h> #include<conio.h> #include<iomanip.h> #include<stdio.h> #include<stdlib.h> #include<fstream.h> #include<string.h> int n=0; // current no. of players ( to add to next one) int num=0; // total number of players class date { public: int dd; int mm; int yy; }; class players { public: char name[30]; date dob; char userid[30]; char …

Member Avatar for jonsca
0
691
Member Avatar for Hayzam_#include

Hi i am new to qt but i have programing experience in c++ in dev - c++ after i moved to qt i thought i could start like this if i press a button it should output hello world it is just showing me 1 error system was not declared …

Member Avatar for Hayzam_#include
0
100
Member Avatar for georgy9002

Hi all; I need help with a program, where its a game where users are to guess a randomly selected number. The user has a max of 1 - 100. [code] class CScoreboard { private: string players_name; int round; int guess_avg; int total_score; public: CScoreboard() { players_name =""; round = …

Member Avatar for gio.perez13
0
153
Member Avatar for bouncycastle

Hello, My website contains many php pages that extract the content of a database according to a selected geographical area (regions and cities in the UK). To help google index all my pages, I have included all those php links in my sitemap. An example is [url]http://www.chinesetutorscentre.co.uk/UK/oxford.php[/url] Typing "Chinese tutor …

Member Avatar for Borzoi
0
118
Member Avatar for Codeslinger

/*THIS PROGRAM PROMPTS THE USE TO INPUT ROOM NUMBERS AND THE FIRST INPUTTED NUMBER WILL BE "OCCUPIED" , AND IF THE ROOM NUMBER(IN THE FIRST INPUT) IS INPUTTED AGAIN AT THE SECOND INPUT IT WILL SAY THAT IT IS "NOT AVAILABLE" . . */ //Here is my code : [CODE]import …

Member Avatar for apines
0
108
Member Avatar for apanimesh061

I wish to delete all the tables that I have made so far........What should I do ???? Please help !!!

Member Avatar for debasisdas
0
93
Member Avatar for socheata

Hello everyone there. I have a problem with java exercise so can you help me? I would like you to show me detail and clear about all these exercise. 1. Write a console program to define and initialize a variable of type byte to 1, and then successively multiply it …

Member Avatar for apines
0
156
Member Avatar for Wattsits

is there an event where when the listview box is updated/changed i can call a function where i can do some calculations on the changed data. the listview is updated from textboxes and a button and the calculated result is shown in a text box thanks steve

Member Avatar for Mitja Bonca
0
173
Member Avatar for Wattsits

Hi ppl. Im a bit of a newbee when it comes to coding but having a problem adding a text file to a listview box. My code sort of works as far as putting data in the first collum goes. [CODE]// Set variables int collum = 0; int arraySize = …

Member Avatar for Wattsits
0
121
Member Avatar for ajst

Hi there I'm writing to a file so that it creates a back log of the data and time i did something. I've got the program so it writes the data that is needed and also the date and time. the problem is if you use the program more then …

Member Avatar for ajst
0
190
Member Avatar for mdew_47

Dear All, This website has taught me lot of things since i was an engineering student. Now again i am back with a new question...... I need to read the contents of the jsp page that is using JSF framework through the Javascript. Any help for starting the thing will …

Member Avatar for mdew_47
0
236
Member Avatar for fussballer

Hi, I am developing some code to run on hardware and I am using the sin() and cos() functions inside the standard math.h many times, which slows the program down dramatically. I was wondering if there is a way to "approximate" the sine and cosine of a value (angle is …

Member Avatar for Adak
0
238
Member Avatar for ajst

I currently have a program that takes a URL edits it and then opens IE with the new URL. What I also want is it to log in to that webpage once it is opened, but i cant seem to find a way to interact with the browser so the …

Member Avatar for ajst
0
141
Member Avatar for taufiqbzz

Hello, my code is [code]import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class LoadDriver { public static void main(String[] args) { Connection conn = null; try { // The newInstance() call is a work around for some // broken Java implementations Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch (Exception ex) { System.out.println("daaaaaaaaaa"); // handle the …

Member Avatar for masijade
0
133
Member Avatar for george61

Ok if you visit [url]http://www.miniclip.com[/url] you'll notice that there is some kind of flash rotator on the home page. This is my code attempt to move between preloaded swf animations using javascript. I've tried giving id of the object or embed but this won't help. Of course this is not …

Member Avatar for george61
0
154
Member Avatar for StevePrim

This looks like a repeat of a previous thread, but I still haven't cracked it. I'm doing everything on a single Windows XP pc, so no servers or clever stuff involved. I blew the space on MS Access so I'm attempting to return to plan A of using MySQL. Installed:- …

Member Avatar for masijade
0
298
Member Avatar for ronan269

i am a first year student and i dont have a clue whats going on. i keep getting this error:Exception in thread "main" java.lang.NoSuchMethodError: main this is the code i am using but i dont think its releated to this. [CODE]public class reverse { public static void main (String [] …

Member Avatar for Abdel_eid
0
316
Member Avatar for blackxswil

Can someone point me where did i do wrong on the coding below? [CODE] class Course { private: string nameCourse; <-- is this correct? int totalOfCourses; public: void registerCourses(string course[], int numberOfCourses) { totalOfCourses = numberOfCourses; for(int i=0; i<totalOfCourses; i++) { nameCourse = course[i]; } } void displayCourses() { cout …

Member Avatar for jonsca
0
121
Member Avatar for Pereguin

Hi, is there any way I can execute my PHP coding when my html image is clicked? Through AJAX, HTML, Javascript or anything. Right now my coding looks like this in Dreamweaver: <img src="_images/banner1.jpg" width="286" height="60" border="0" usemap="#Map" class="apply-btn" style="float:center; padding-top:20px; padding-left:240px;" onclick= "hello()" value='Applyonclick' input name='Applyonclick'/> </form> <script type="application/javascript"> …

Member Avatar for R0bb0b
0
174

The End.