199,114 Archived Topics
Remove Filter ![]() | |
Hello, I have a problem with a header I'm trying to make. In Main.cpp, I have this function to store the combinations of the elements of vector S: [CODE=c++]template <class T> vector<vector<T> > combinations(vector<T> S, ll k) { vector<vector<ll> > combs = ncombinations(S.size(), k); vector<vector<T> > setcomb(combs.size(), vector<T>()); for(unsigned int … | |
Hi, I want to read a file from the command line and remove all the spaces, tabs in it, replacing it with comma(,), and write it to a new file. can you help me out with this scenario. | |
Hello, I need to demonstrate the binary search using recursion, and I've run into a little problem. In my example, if "key" was 1, 2, 3, or 6, then it would return true. Anything else would give me an error. Why is that? Here's my code: [CODE] // binary search.cpp … | |
I want my program to just continue as long as the user press any key How do we do it with only use of scanf?? for example: int main(void) { while(1) /*my program goes here*/ printf("Hit any keys to continues......"); scanf // how? } | |
Am I wrong that the answer is 2?? Teacher refuses and says that it's 3 because the compiler spits out 3 for ans.. but if I do it manually with pen an paper or with the cout<<v2%v1++, it spits out 2 which is what I get on paper.. [CODE] #include … | |
When trying to run, the compiler tells me that I cannot access the private data members. I'm just curious as to what's causing this error. Here's my class declaration: [CODE] #include <iostream> #include <string> using namespace std; #ifndef SALARY_H #define SALARY_H class Salary { public: const int getDepNum(); const int … | |
Hello. I am learning C++, and I am a little stuck. Right now, I'm working on pointers. The problem I'm working on requires sorting an array of structures, using pointers instead of array indices, using a selection sort. My code is not working, and I can't quite figure out why. … | |
hi i face w problem when displaying the information from the database i store the information succefully but when i want to display the info all info appear in one line like i add this information to the database. my name is unkonwn it appears like this like i add … | |
![]() | So I been stuck with this problem for quite a few days. Since I used VB.net as my first language C# is quite difficult for me. In VB.net when you needed to refer to a different control on a different forum you would write something like Form1.Mainmenu etc In C# … |
hi everyone i am very new to programming and really need some advice. i am currently building a program and one of the things i need is to be able to count the number of pages in pdf files in a directory. i found a script online which is suppose … | |
![]() | Hello community, I have an issued converting a arithmetic string called the infix, into a prefix output. In one of my methods i have an infinite loop. An example would be (a + b) * (c - d)===> * + a b - c d Here is my code: [CODE] … ![]() |
Hi, I am new to php, and I need to do multiply image upload. Right now I have single image upload which is not working.., so any adive would be appreciated. Here is part of form I use for image upload: [CODE] <i>Vyber obrĂ¡zek:</i> <input type="file" name="imagefile" /> <br /><br … | |
Note: I'm very new to everything so please bare with me. Say I have a form on a website which asks for your first name, last name, and email address. Upon clicking submit, I want the data to be transferred and saved to a Microsoft Access Database. How do you … | |
I need help in troubleshoot my code for reason the if statement is not working. any help please Im new into Javascript/ [CODE] <!doctype html> <html> <head> <meta charset="utf-8"> <title>Grade Calculator</title> <style type="text/css"> body { font-family: Arial, sans-serif; text-align: center; } form { width: 300px; margin: 0 auto; text-align: right; … | |
I a form page in an iFrame that when a user submits it brings up a thank you page. But when the thank you page loads, because the initial form page is long users don't get to see the thank you message on the thank you page. So what I … ![]() | |
please i need a code that can help me search records from a table in vb. | |
I want to split the following into a Main class and do all the math in a mortagecalc class The Arrays are tripping me up im not sure how to pass these to another class. Thank you [CODE]package mortgageCalc; import java.text.DecimalFormat; public class Mainbkp { /** * @param args * … | |
I am trying to call a .php or .html file to display an input page for emails. The file ContactDisplay.php contains a <button> to onclick a call to the sendEmail() function which, in turn, sends data to the file ContactEmail.html. The data is retrieved using $_POST and used to populate … | |
I have four crystal reports already created. I want to incorporate those reports into an application whereby when a user clicks on a menu item the report opens in a new tab providing that it is not opended already. i would be grateful if i can have some insight from … | |
Hi All, I want to build an application that will navigate a website that contains user login form and automatically logged to it and retrieve data from it's table. Is this possible? What would be my best approach here. Thanks in advance. -renzlo | |
I'm Beginner. I need help, please. I am having a small problem in the script I am have in this script ( admin folder) Add contain articles (This page is working to add threads only) My problem in the Page (read_mor.php) i make a query with the database to bring … | |
I recently made a c# printer management tool that uses a WCF service which contains [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394363%28v=vs.85%29.aspx"]WMI Win32_Printer[/URL] methods like [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384769%28v=vs.85%29.aspx"]AddPrinterConnection [/URL]and [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa393291%28v=vs.85%29.aspx"]SetDefaultPrinter[/URL]. Everything works fine if both the client and the WCF service run on the same machine. But if i try to move the WCF service on another machine, … | |
Hi, I have two list of any datatype supported by python. I want to check whether the any of the element of first list is present in second list or not. Example: I have a = [4,5,6] b = [1,3,8,6,7,9] I want to check whether any element of a is … | |
i tried almost a week to figure out how to insert a hyphen after successful date entry ,in my form validation, but couldnt find appropriate intrinsic event and logic. help me out.. eg: when the user enters 26 the script automatically inserts '-' since 26 is a valid date. Next,when … | |
hi, I have two class say class A and class B. Now the methods in class B are used only by class A. When I checked class B, I found that few methods are static and few methods are internal. Can you sugest me is it fine ? Or since … | |
Hi, this is probably a trivial question but I'm so new to this I would learn a lot from any help... Why does the content in global variable "str" disappear as soon as I unclick the alertbox? How can I keep it? I put the string in a <div> and … | |
Hello Sorry if this is confusing I'm really new to python and have been stuck trying to figure this out for hours now. I'm trying to write a function for a text based battlship game. I need the function to do this is_occupied: (int, int, int, int, list of list … | |
Hello All, I have a java assignment thats supposed to create a memory game, with 10 rows and 10 columns.50 images have been supplied. The part i'm stuck is the the window with the actual images on the grid.The images are supposed to be generated randomly each time the application … | |
hey, please help me sort this data out. Array ( [0] => Successful response for: set username [1] => Successful response for: set password [2] => Successful response for: set server [3] => Successful response for: services [4] => State Notification acquiring-network [5] => Successful response for: sign-in [6] => … | |
[CODE]void RemoveVowels(char *str) { int i = 0; int lenght = strlen(str); for(i=0;i < lenght-1;i++) { if (str[i]=='a' || str[i]=='e' || str[i]=='i' || str[i]=='o' || str[i]=='u' || str[i]=='A' || str[i]=='E' || str[i]=='I' || str[i]=='O' || str[i]=='U') { str[i]=' '; } } } [/CODE] Hey guys having trouble trying to remove … | |
Make a program that reads some text and produces as output the distribution of words that start with dierent letters. I recently wrote a program that would count how many times a certain letter would show up, but I am not sure how to look to see at the first … | |
I'm trying to make a little disk cleaner program and I couldn't figure out how to display the results of scanned directory on list view tool on windows form application. I have a 3 columns and these are File Name, Folder Path and File Size. I want the program to … | |
Hi when I use ecclipse to run codes it shows many errors, and they are not errors at all I compiled them with command prompt and it work. this is the image [URL="http://i.imgur.com/az6Pg.jpg"]http://i.imgur.com/az6Pg.jpg[/URL] My java and javac version is 7 u 2 | |
Hello, folks. I do have another issue here, haha. My Cancel script is not working, is not returning the tickets back to the database after I cancel them. I got completely wrong here, some help would be really appreciated. [CODE] <?php session_start(); $tickets = ['tickets']; //$tickets = $_SESSION['tickets']; //$id = … | |
i have to write a program, in which i have to make pointer to point to the character, where it last occured in a string. For example: String: Lord of the rings Character: r Pointer points to the last 'r' in the string, that is in the word 'rings'. If … | |
I want to loop through directory and process the files in them. I do this with the following code. for (root, subdirectories, files) in os.walk(dirDialoog.GetPath()): for file in files: My problem is that the files processed 2 times. I tried the next code, but in that way the files weren't … | |
Hey guys, I'm doing a project for university and i have hit a wall. I have a gridview that is connected to a database as shown below: [url]http://i40.tinypic.com/fys9i.jpg[/url] (menu is incomplete) I want a drop down box that is populated with the type of food such as (pizzas, burgers etc … | |
Hey! for a school project, came to me the following question: the libopenmetaverse is more directed to any of the components of the MVC (model, view, controller) or apply to any of them? someone can help me with this? thanks | |
hello guys is it posible to do these i have form1 with 3 textbox and i need to print those so i need to populate data inside report.rdlc textbox, because in vb6.0 i can access directly a label or textbox inside datareport, is it posible to assign may data in … | |
Hi, Can i ask something?is it possible to make a batch file or something like a script that when i clicked on it, it will open the the command prompt and directly goes to the path that i desire.with out anymore using the command CD D:/my folder Thank you in … | |
Hello everybody - and thanks for fast reply. Well, I have the following need: Once a month I receive a text file with the following content (per line/line content with fixed lenght but different values): 00000035412012013100000000000000000120120131000000000 00000000000000000000000000+0000000002012010000000000200000000000171753-00000000000000000+00000000000000000+00000000000171753-000000000000000000000000000000000000000000+00000000000000000+00000000000000000+00000000000000000+00000000000000000000000LOHN/01 LG 000000000000000000000000000000000000000000000000000+000000000000000000000000000000+000000000000000000000000 0000000000000000000000 0* This is only one line with 480 digits. I … | |
hey there, as part of my application, I build an array of arrays. So, what I have is this: [CODE] $mainArray = array(); $mainArray = $somearray;//as built with results from a query $mainArray = $someOtherArray;//built same as above //I want to iterate: foreach($mainArray as $array) { foreach($array as $dataArray) { … | |
Hi everyone, In my simple GUI, I have a part where I use JFileChooser to let user browse for a file. The problem is that when browsing for that file, in order to open a sub folder, user has always to double click that the main folder to open the … | |
I need to pass close to 100 variables between pages and I'm not sure of the best way to do it. Any suggestions? | |
i have a doubt i have created a application in which i have used a VLC (Video LAN player) and i have given in the property in the option MRL i gave the video address which should be played, when i executed then the video was playing and when i … | |
hello everyone, I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message … | |
Hello, folks. I am facing a really annoying problem here. Well, basically I want my page to check if the user is an admin or not. Whenever I log in and try to access that page i am recieving the error message "You are not admin, leave" [CODE] <?php session_start(); … | |
I am having trouble devising a method to multiply 2 matricies that are formed by dynamic one dimensional arrays, for this case i just used matrix1 and matrix2 To access elements that are on rows 0 to n-1 in either matrix i have to use this method: ((rows - 1) … | |
I started web application project for online licitation and I use asp.net4.0 Have problem in it’s creation. Those are the conditions I have to realize: -Administrator can add or delete biddings. -Advertiser can add, review, modify and delete biddings. -The user can search biddings, review and participate in them. any … | |
Hello! I have this problem with creating a linked list inside a linked list. Think of it as recording a list of customers, and at the same time, recording a list of items they bought individually. I tend to think that I might lose the head node and it's probably … |
The End.