132,726 Archived Topics
Remove Filter ![]() | |
Write a program to print the following pattern based on user input. For eg: If N=4 the code should print the following pattern. 1*2*3*4*17*18*19*20 --5*6*7*14*15*16 ----8*9*12*13 ------10*11 Again if N=5 the code should print 1*2*3*4*5*26*27*28*29*30 --6*7*8*9*22*23*24*25 ----10*11*12*19*20*21 ------13*14*17*18 --------15*16 For N=2 the pattern will be 1*2*5*6 --3*4 PLEASE HELP AS … Software Development c++ | |
Hi Everone, How do I remotely access my computer - I want to be able to control the mouse and keyboard and view the screen in real time. I wanted to do this in Java, but the experts sent me here because Java is not platform dependent and C++ is. … Software Development c++ microsoft-access | |
i got this error in java eclipse Cannot create extension org.eclipse.core.runtime.CoreException: Cannot create extension at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:296) at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:318) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:266) at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:61) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:304) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857) at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119) at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254) … | |
hi , i need help to complete wrting a program // #include<iostream> #include<cmath> using namespace std; int main() { //decaler data here double var, n=0, sum = 0; double x, xi; //input cout << "please enter the value of x :"; cin >> x; cout << "please enter the value … Software Development c++ | |
Hello All, Can somebody tell me what is designer.cs file in C# and what is its use in programming. I'm new in C# and I also want to know more about this automatically created designer.cs file while programming. Thanks, George Software Development | |
using System; namespace studentObj class Student { private int id (); private string name (); private char grade (); public int ID { get {return id;} } public string Name { get {return name;} set {name = value;} } public char Grade { get {return grade;} } public Student(int ID, … Software Development | |
a java code that displays multilevel feedback queue scheduling[](http://www.) | |
I can swap two tiles, however, when I need to shuffle them, I need each tile to have a unique position. I've tried setting up array's for the x and y position of both the tiles to be swapped checking against the randomly generated number to make sure it's position … Software Development java | |
hi :))) I have a pro. here which I can't use the keyListener and the buttons (ActionListener )at the same time !! I can use once a time either the keylistener OR ActionListener ! and in my prog. I should use both of them at the same time ! what … Software Development java java-swing | |
I have a base class (A) and two derived classes (B,C) (mode of inheritance is public). I have two values in base class A that needs to be modified by derived classes B,C so i declared their get() and set() under protected in base class. Now each of the derived … Software Development c++ | |
Hi, so I want to say, while p is less than the length of the list for everything in my list (punctuation and characters) if the letter or punctuation is in my valid letter string convert it into ascii using ord() that equals one turn p = p + 1 … | |
I have a calculator that is supposed to take in scores, compute score total,score count,and score average. I am also to create a list that will store all the scores that have been entered and display them in msgbox which I have already done and have working. My problem is … Software Development | |
Write a Java application that computes and prints the grade of a student according to the following algorithm: 1) It should read from the user TMA score and MTA score. 2) If their sum is less than 15, the grade "FC" should be printed and the program will stop. 2b) … | |
Hello All, I just started learning java at home .I am getting an error message".java:8: error: cannot find symbol int randomNum = (int) (Math.Random() *5);" Could you please help me on the same? Here is my java code: class SimpleDotComGame{ public static void main(String [] args){ int numOfGuesses = 0; … Software Development | |
Hi! Firstly, here's the code: if(new File("ATM.xls").exists()){ System.out.println("File exists"); } else{ File excel = new File("ATM.xls"); } What I'm trying to do is check whether or not a file exists and then create said file, if it does not exist. This all works fine, but somehow, I'm unable to use … Software Development file-system java microsoft-office | |
**Guessing game. Write a c++ game that asks the user to guess a number between 1 and a 100. If you guessed correctly, it will say you win. If your too high or too low it will also let you know.** | |
Hi, I have two projects; First one is a asp.net web project and the second one is embedded http server library project. Embedded http server project is taken from : embedded http server project I want to save a video file from user's local to user's shared storage. I'm getting … Software Development c# client-server video | |
I have another question and trying to solve but did not solve this anyone who help me to solve this the Question start here...... Write a program that reads a whole paragraph (you can do that with a little common sense) from the user. Now prompt the user enters a … | |
Hi, I am trying to construct a binary tree using a list. class Element { private: list<Element*> _children; char* _name; //...other data members and methods } I have a class ("Element") that has children ("_children"), but I cannot figure out how to add children to the elements of "_children". I … Software Development c++ data-structure | |
hey guyss..!! I'm having some difficulties working with strings (cstyle, object oriented strings). as this is something new for me so I'm not exactly familiar with functions of strings aswell.. write now i have a question for which i was making a solution but the code is missing something please … Software Development c++ | |
import random print(" Welcome to the guess my number") print("I'm thinking of a number between 1 and 50") print(" Welcome to the guess my number") print("try guessing in 10 attempts") num=random.randint(1,50) guess = int(input()) tries = 1 while guess != num and tries !=10: if tries ==3: print ("Do you … | |
What I am currently trying to do is have the user press a button, upon pressing that button, the cursor turns into a crosshair. Wherever the user clicks next is the point recorded in the code. Any help is appreciated. Software Development vb.net | |
hi guys, i have the following code: "select sum(( receiptDetails.retailprice - receiptDetails.purchaseprice)* receiptDetails.itemcount ) + ((customerReceiptDetails.retailPrice -customerReceiptDetails.purchasePrice)* customerReceiptDetails.itemCount) As Total from receiptDetails,customerReceiptDetails " am trying to get the gross profit from the two tables: receiptDetails and customerReceiptDetails. the query works well if both tables have values. i tried to use … Software Development vb.net | |
Hi everyone. I want to make a update option for my app. I have a idea how to do this but doesnt sound very logic. This is how it is: The files are located at a drive. When download the update it download on the some folder and overwrite the … Software Development vb.net | |
#include<iostream> #include<string> using namespace std; int counterofanalog=0; int counterofdigital=0; int counterofsmartwatch=0; int num=0; //class for Genwatch class genWatch { private: int watch_id; string brand; int price; string colour; int date; public: genWatch() { watch_id=0; brand=""; price=0; } void adddata() { cout<<"Please Enter Watch ID:"; cin>>watch_id; cin.ignore(); cout<<"Please Enter Watch Brand:"<<endl; … Software Development c++ | |
I want to scanf array of string in c char *bookName[n]; for(i = 0 ; i < n ; i++){ scanf("%s" , bookName[i]); } but it dose not work ,what is the problem ? Software Development c | |
hi guys I was wondering whether it is possible to load items to the data grid view without having to do it in the form load event. if so, please assist in discussing a few techniques. thanks Software Development vb.net | |
Hi, I'm trying to learn templates. I want to pass strings and integers via objects. I made it as a template because my program should support both strings and integers. // Main Function int main() { string element; library <string> comics; cout << "\nPlease type in the element: \n"; cin … Software Development c++ | |
** # i try to insert 10 record under the field year and actual data but only the first text from text1 is entering inside # ** provider = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source =" dataFile = "db7exmpl.accdb" connString = provider & dataFile myConnection.ConnectionString = connString myConnection.Open() Dim str As String 'str = … Software Development open-source vb.net | |
Trying to use source control for the first time. I installed git and added it to visual studio 2010. Made my project folder a git repo, commited it, and pushed it. But all I can see in my git bitbucket remote repo is this. http://s12.postimg.org/4w8flnx31/git1.jpg I do not see any … Software Development visual-studio | |
i have a problem with my dev c++ whenever i write a source code firstly it shows output then i made amendments in it after that it is not showing me any output. . . can anyone tell me what is the actual problem??? Software Development c++ | |
Hi, I have a string like 32/355ab//3456 from which I need to extract the three separate numbers 32, 355 and 3456. The string pattern may vary. I can use Split by (say) / to separate strings. How can I extract groups of numbers from a 'mixed' string like above. The … | |
I continuously get this warning whenever a constructor delegates to another constructor within the containing type, having virtual bases. `warning C4100: '$initVBases' : unreferenced formal parameter` It's the same warning as when a parameter or local goes unused, it in this case it seems to be referring to the virtual … Software Development c++ | |
Hi guys I need some help in sorting array in descending and ascending order. I already have my ascending program but it does not work when I put codes for descending.. Software Development c++ | |
Hey guys I'm having trouble on placing my loops I actually want to make a square and I dont know how to manipulate my own placement because I am used to gotoxy(); and I think it only works in TurboC++... As of now I am using DevC++ .. Can you … Software Development c++ | |
I not know about 2d array Please help me to solve this problem......................... Write a program that declares a 2-D array of 7 rows and 2 columns. The rows represent one day of the week. The first column is the maximum temperature of that day and the second columns is … Software Development c++ | |
I’m working on a little matrix class for my own use and because for me, it is just fun! Now I noticed a lot (10 and more) of the methods always seem to follow the same pattern: - Iterate over the rows - For each row iterate over the columns … Software Development c# web-design | |
Hello I have a text file which contains a dictionery of phrases. I also have another text file. I need to see if any dictionery phrases are inside my larger text file and return the phrases which are in the dictionery. Here is my code so far: private static void … Software Development file-system java | |
How can i get i-report or jasper report tool free? Software Development java | |
Hello All. I have a program that automatically restarts itself atfer a certain amount of time. I am doing this to test some things out. The program is wrapped in a jar. I run the jar from terminal with java -jar ProgramName.jar It will run and will output all the … Software Development java | |
Hi, Im trying to use a multi column combobox from this thread [Here](http://www.codeproject.com/Articles/8619/Flat-MultiColumn-Combobox-with-Autocomplete) Just wondering if there's a way to show Column header from its datasource (sql) Can't find a property to do this Thanks Software Development vb.net | |
Beginning coding here. But in my programming class I have a basic program to enter a couple of numbers, calculates the basic math then displays the equation and answer. Here is my output to app: lblAdd2.Text = Convert.ToString(vTools.unformat(txtNum1.Text)) + " + " + Convert.ToString(vTools.unformat(txtNum2.Text)) + " = " + mathNum1.ToString(); … Software Development | |
Greetings, I want to know if I am having a shared .exe file and these shared .exe is running by 2 users on different machines but they are running the application from the shared place and there were a class which has a static property are there will be a … Software Development | |
I searched through nearly every article in the forum as well as other groups but I'm stumped on a solution. I have a ComboBox filled with values from a DB. I would like autocomplete to show results from the entire string not just the beginning of the string. Autocomplete queries … | |
A recent assignment requires me to create a pseudocode for a game of tic tac toe. And I'm a bit lost. Here's the details: ++++++++++++++++++++++++++++++++++++++ Design a program that allows two players to play a game of tic-tac-toe. Use a two-dimensional String array with three rows and three columns as … Software Development c++ os-x web-design | |
I need help with the question ASAP please here's the question Write a C program to create and manipulate a one dimensional array (list) of up to a hundred sorted ( ascending order) numbers by using functions to insert, remove, or print elements as follows: Function insert : will search … Software Development c |
The End.