199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Quicxic

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 …

Member Avatar for Quicxic
0
202
Member Avatar for sudhanshu12788

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.

Member Avatar for deepkw
0
212
Member Avatar for rfrapp

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 …

Member Avatar for rfrapp
0
257
Member Avatar for outout1234

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? }

Member Avatar for Arch Stanton
0
179
Member Avatar for triumphost

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 …

Member Avatar for mike_2000_17
0
319
Member Avatar for sfurlow72

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 …

Member Avatar for sfurlow72
0
138
Member Avatar for nik2012

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. …

Member Avatar for nik2012
0
1K
Member Avatar for amm038

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 …

Member Avatar for hericles
0
148
Member Avatar for CriticalError

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# …

Member Avatar for Momerath
0
162
Member Avatar for ozzyx123

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 …

0
178
Member Avatar for Gsterminator

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] …

Member Avatar for Gsterminator
0
1K
Member Avatar for Mykybo

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 …

Member Avatar for Mykybo
0
142
Member Avatar for bo0ga

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 …

Member Avatar for bo0ga
0
121
Member Avatar for toldav

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; …

Member Avatar for Troy III
0
532
Member Avatar for patrick1981

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 …

Member Avatar for diafol
0
116
Member Avatar for az_master
Member Avatar for ChrisPadgham
0
220
Member Avatar for summey

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 * …

Member Avatar for summey
0
148
Member Avatar for pizzipie

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 …

Member Avatar for pritaeas
0
204
Member Avatar for GTTravis

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 …

Member Avatar for GTTravis
0
119
Member Avatar for renzlo

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

Member Avatar for Mitja Bonca
0
159
Member Avatar for afrogfx

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 …

Member Avatar for afrogfx
0
6K
Member Avatar for flaviu_xdv

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, …

Member Avatar for flaviu_xdv
0
1K
Member Avatar for R.S.Chourasia

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 …

Member Avatar for TrustyTony
0
6K
Member Avatar for dineshswamy

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 …

Member Avatar for dineshswamy
0
105
Member Avatar for surajrai

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 …

Member Avatar for skatamatic
0
241
Member Avatar for drimacus

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 …

Member Avatar for drimacus
0
347
Member Avatar for crazy99

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 …

Member Avatar for crazy99
0
376
Member Avatar for allan2020

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 …

Member Avatar for NormR1
0
190
Member Avatar for vlowe

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] => …

Member Avatar for vlowe
0
126
Member Avatar for tom12

[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 …

Member Avatar for tom12
0
90
Member Avatar for MegaMan15

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 …

Member Avatar for TrustyTony
0
222
Member Avatar for emreozpalamutcu

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 …

Member Avatar for Tumlee
0
193
Member Avatar for ilovejava

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

Member Avatar for designuts
0
2K
Member Avatar for SQLpower

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 = …

Member Avatar for Biiim
0
2K
Member Avatar for ahspats

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 …

Member Avatar for yasin.uohyd
0
215
Member Avatar for zaatlob

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 …

Member Avatar for vegaseat
0
253
Member Avatar for tukky

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 …

Member Avatar for tukky
0
149
Member Avatar for al41007

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

Member Avatar for al41007
0
203
Member Avatar for auwi987

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 …

Member Avatar for Mitja Bonca
0
93
Member Avatar for jemz

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 …

Member Avatar for harinath_2007
0
306
Member Avatar for apa3

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 …

Member Avatar for apa3
0
248
Member Avatar for bibiki

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) { …

Member Avatar for bibiki
0
112
Member Avatar for htp367

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 …

Member Avatar for htp367
0
720
Member Avatar for spowel4

I need to pass close to 100 variables between pages and I'm not sure of the best way to do it. Any suggestions?

Member Avatar for jstfsklh211
0
144
Member Avatar for skp03

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 …

Member Avatar for M.Waqas Aslam
0
142
Member Avatar for adil_bashir

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 …

Member Avatar for DavidKroukamp
0
262
Member Avatar for SQLpower

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(); …

Member Avatar for bibiki
0
236
Member Avatar for Cosa

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) …

Member Avatar for kabultanha
0
4K
Member Avatar for kikiritce

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 …

Member Avatar for seslie
0
119
Member Avatar for cryonize

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 …

Member Avatar for Lerner
0
301

The End.