43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for <M/>

I am trying to reverse the number that is doubled from the user input. Problem is that if they enter a number like 20000 it gets doubled into 40000 but it reverses it to 2 rather than 4. How do i get it to make the doubled number reversed and …

Software Development java
Member Avatar for <M/>
0
251
Member Avatar for iness.popovcic

#include <stdio.h> #include <conio.h> main() { int i,j,k,l,m,n; printf("Put in n nober of sqeur: "); scanf("%d",&n); printf("Whit wich nomber do you wanna start your squer?: "); scanf("%d",&m); for(j=m;j<=n+1;j++) { for(k=j;k<=n;k++) { printf(" %d",k); } for(l=1;l<j;l++) { printf(" %d",l); } printf("n"); } getch(); } Editor's note: moved to the appropriate forum

Software Development c
Member Avatar for 2teez
0
109
Member Avatar for kamilacbe

HI, Am planning to write a event management for my web application ,where the Admin can schedule a program to one particular channel say like Admin --> BBC channel --> 10Am-12Am program one from 12 Dec2014 - 23DEC 2014 ..Now my question is when i write checking condition as no …

Software Development
Member Avatar for kamilacbe
0
229
Member Avatar for Wael1988

**hello folks, i am new programmer,,,i have studied C# , Asp.net , Ado.net,SQL , Sharepoint Adminstration and development! but i am still junior..i mean i still ddnt get a job!! sumtimes i feel that its hard to go on programming..like i do always study but always forget..i feel sumties like …

Software Development c c# c++ sharepoint
Member Avatar for Wael1988
0
203
Member Avatar for <M/>

This is how you calculate the area of a triangle, hope you guys find this useful. import java.text.DecimalFormat; import java.util.Scanner; public class Exercise2_15 { // find the area of a triangle public static void main (String [] args) { double side1 = 0; double side2 = 0; double side3 = …

Software Development java
Member Avatar for JamesCherrill
0
208
Member Avatar for darrylnuyda

Hi Everyone, Can I ask your favor, I have a code that I customize. DBConnect.CS //here ismy db connection using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data; using MySql.Data.MySqlClient; using System.Windows.Forms; using System.Data; namespace PAIRDevelopment.Classes { public class DBConnect { public static string csConnect = "uid=root; database=membership; pooling …

Software Development
Member Avatar for deceptikon
0
2K
Member Avatar for CreatorZeus

okay i have a file with data orgainzed like this in a dat file to be read: apple.0.0.end. and i want it to be read by char until it sees "." then print that, then read again repeated until the end of the line. so i can show the data …

Software Development apple c++
Member Avatar for deceptikon
0
260
Member Avatar for kothaisaravan

Hi, I have a requirement to save images from local system to server through windows application using c#.net. How can I do this in windows application?

Software Development c# windows-server
Member Avatar for anthonydaly
0
400
Member Avatar for ArashVenus

I've tried lots of times to get this to work but , no luck . the problem is this program shows white screen , and It doesn't display the polygon . Here's the code , take a look : /*Headers*/ #include <GL/glut.h> /*End of headers*/ /* Check Compiler*/ #ifdef __FLAT__ …

Software Development c++ opengl
Member Avatar for ArashVenus
0
8K
Member Avatar for <M/>

Hi guys, i am trying to find the area of a triangle and for some odd reason i can't get it to produce the right numbers. Here is my code: import java.util.Scanner; public class Exercise2_15 { // find the area of a triangle public static void main (String [] args) …

Software Development java
Member Avatar for <M/>
0
471
Member Avatar for zebnoon

Dear Bodies! I am developing a Cold Store Managemen system. I need to count days according to dates.for example 5 ton petato put in cold store room on 01/12/2013 .when i exit this 5 ton peteto on 10/12/2013 system should show me that 10 days i have to charge ?

Software Development
Member Avatar for zebnoon
0
199
Member Avatar for kipslem

Hello, My sincere apology, I have been posting almost 4 questions now where I have received 2 answers being solved. These are simple questions which any one familar with VB.Net can solve easily. Please understand, I'm a newbie to VB.Net. Now my next issue is; I have a a form …

Software Development microsoft microsoft-access vb.net
Member Avatar for Reverend Jim
0
3K
Member Avatar for KushMishra

Hello All, I just wrote some code in C# and tried converting to VB.Net. I am getting 3 kinds of errors in my code :- 1. Class 'XXX' must implement 'Function XXX(abc,pqr,...)' for interface 'XX.XX.XX'. 2. 'RaiseEvent' definition missing for event 'XXX'. 3. 'XXX(abc,pqr,...)' is an event and cannot be …

Software Development c# vb.net
Member Avatar for ryanjayson
1
675
Member Avatar for jared.geli

Hi guys. I'm having problems in updating records in Excel. Whenever I update a cell the value I input it goes 4 cells above the intended cell and I know the reason. In my Select query: `SELECT * FROM [Sheet1$A5:R1048576] where [ITEM CODE] is not null` Meaning I skipped reading …

Software Development dataset open-source vb.net
Member Avatar for jared.geli
0
228
Member Avatar for mixelplik

I'm trying to get a better understanding of ifstream, and was playing with it using the program below. It's purpose was to grab the first and last entries in the file, instead I get some perplexing output leading me to realize I've very little clue as to how streams really …

Software Development c++
Member Avatar for mixelplik
0
1K
Member Avatar for mixelplik

I see a lot of people list code using this "::" as in: #include <iostream> int main() { std::cout << "Blah, blah, blah"; return 0; } and others use "using" #include <iostream> using namespace std; int main() { cout << "Blah, blah, blah"; return 0; } Is there a downside …

Software Development c++
Member Avatar for mixelplik
0
280
Member Avatar for Annettest

Hello all: I have written a function that gets data (numbers) from a text file. My function works by taking a line from the text file, discarding unnecessary symbols, and putting the numbers into a vector. Here's a snippet: // Get data from text file. Values then put into one …

Software Development apple c c# c++ file-system
Member Avatar for haider885
0
395
Member Avatar for </scorpion>

i want to do are the ff: * Loop through the Rows in the Datatable using Foreach or For * Compare every row data with the textbox value. * Once the value is matched or exists then break the loop & view a message. . and i want view message …

Software Development
Member Avatar for Mike Askew
0
1K
Member Avatar for centenond

hey guys ! so im learning c, got a question: so say i have a struct of students and inside the struct is name , id , fatherName, motherName. like this struct stds { int id; char name[21]; char fatherName[21]; char motherName[21]; } std[100]; suppose they are 100 stds and …

Software Development c
Member Avatar for centenond
0
191
Member Avatar for dre-logics

I have a simple question, I have the following menu. Main Menu Sub Menu 1 Sub menu 2 Sub menu 3 Sub sub menu 3.1 Sub sub menu 3.2 Sub sub menu 3.3 I would like to direct if the Form load that "Sub sub menu 3.3" is selected. Is …

Software Development vb.net
Member Avatar for ryanjayson
0
255
Member Avatar for sixtorodriguez

So, I have attached my code below. It worked fine , until I introduced the part to print out what's in the input file. After I did this, it says it's completed, but I doesn't copy the content in the output file. What should I change? Thanks a lot /*Program …

Software Development c encryption
Member Avatar for sixtorodriguez
0
323
Member Avatar for belladiluna

Help me please! Need c# code... import numpy from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt def zadachaOPrepyatstvii(h, f, fi, xi, sigma, epsilon=0.0000001): m = int(1/h) h2 = h * h u = numpy.zeros(shape=(m+1, m+1)) gamma = numpy.zeros(shape=(m+1, m+1)) prevnormr = …

Software Development c# python
Member Avatar for vegaseat
0
5K
Member Avatar for marin_10

Hi guys, I have question about python. I mean I need a litle help. How can I increase date from date given in file by start after midnight? File looks like: PROGRAMSKA SHEMA ZA PETAK, 13.12.2013. 06:00 ZMBT televoting 06:05 Madhubala, igrana serija, 138. epizoda, r. 06:50 Tajne, igrana serija, …

Software Development python regex
Member Avatar for vegaseat
0
265
Member Avatar for aslam.junaid786

package abc; import java.util.*; public class TransformCharacters { public static String changeCharacters(String string) { for (int i = 0; i < string.length(); i++) { char ch = string.charAt(i); { if (Character.isUpperCase(ch)) string.replace(ch, '1'); } } return string; } public static void main(String[] args) { // TODO Auto-generated method stub String …

Software Development
Member Avatar for ObSys
0
204
Member Avatar for idiotguy

Hi Friends, (i) I'm very new to python.so i wanna know which version of python is suitable for me.I have [I][B]python 2[/B][/I] and [I][B]python 3[/B][/I] in my choices..which one is best for me??? (ii)Also give me the list of GUI toolkits for respective versions.. (iii)which version has the best library …

Software Development gui python
Member Avatar for Tcll
0
716
Member Avatar for hochspeyer

All I want to do is install Python on a Windows 8.1 box. The "EXTREMELY HELPFUL" note in the reademe says goto "PCbuild". Where is this wonderous file? Bueller? I searched from the very TOP of the Python directory, and as soon as the "C" was entered, I got a …

Software Development python
Member Avatar for hochspeyer
0
129
Member Avatar for Helpmeplease123

How do you add a membership records in java(bluej) First Name, Last Name, phone number. Please can you help me

Software Development java
Member Avatar for ObSys
0
259
Member Avatar for migu2990

Hi, I was asked to make a Phone Book thats saves entries and call them up. Then the teacher added a new task. The Program should delete entries. He gave us a methode and said we are not allowed to use ArrayList or Hashmaps, ONLY Arrays. I tried alot but …

Software Development java java-swing
Member Avatar for migu2990
0
409
Member Avatar for <M/>

Okay, last question of the night. My program is to have a program collect a number, double it, and reverse. I am having problems with reversing it... Here is my code: import java.util.Scanner; import java.text.DecimalFormat; public class ReverseNumber { public static void main(String[] args) { Scanner s = new Scanner(System.in); …

Software Development java
Member Avatar for kal_crazy
0
173
Member Avatar for nikolaos

Testing the following code from a book public class RunTime { public static void main(String[] args) { Runtime r = Runtime.getRuntime(); //MEMORY MANAGEMENT long mem1, mem2; Integer intmatrix[] = new Integer[1000]; System.out.println("Total memory is :" + r.totalMemory()); mem1 = r.freeMemory(); System.out.println("Initial free memory is :" + mem1); r.gc(); mem1 = …

Software Development java motherboards-cpu-ram
Member Avatar for mKorbel
0
777
Member Avatar for <M/>

On my code, it says that there are 2 mistakes and I can't fix them. Here is my code: import java.util.Scanner; public class Exercise4_1M { public static void main(String[] args) { int countPositive = 0; int countNegative = 0; int count = 0; int total = 0; Scanner input = …

Software Development java
Member Avatar for <M/>
0
448
Member Avatar for Jed_1

I've implimented this snippet of code dijkstra_shortest_paths( g, name2v[tempName1], get(&VertexProperty::predecessor, g), get(&VertexProperty::distance, g), get(&EdgeProperty::weight, g), boost::identity_property_map(), // index-map std::less<double>(), // compare std::plus<double>(), // combine std::numeric_limits<double>::infinity(), // infinity 0.0, // zero do_nothing_dijkstra_visitor(), get(&VertexProperty::color, g)); to use dijkstra's on a map created from a text file, but I have no idea how …

Software Development c c# c++
Member Avatar for Jed_1
0
846
Member Avatar for <M/>

Hi guys, I am working on an assignment for a class of mine (Java) and I am really frustrated with it. This was my very last attempt (out of like 20)... System.out.print( "Enter temperature in Celsius to convert to Fahrenheit: " ); double c = kbinput.nextInt(); double f = ( …

Software Development java
Member Avatar for <M/>
0
229
Member Avatar for Jed_1

Okay, so as ussual I'm having a lot of problems with a code and I need a lot of help along the way, but I'm just going to break it down into simple questions as I go. I am taking data from an input file that is a .txt that …

Software Development c c# c++
Member Avatar for mike_2000_17
0
919
Member Avatar for Pratique

#include<stdio.h> #include<conio.h> void main() { printf("enter number:"); scanf("%d",&n); for(i=1;i<=y;i++) { x++; } t=x; for(i=1;i<=y;i++) { t--; } y=t; getch(); }

Software Development c
Member Avatar for Mouche
0
349
Member Avatar for Builder_1

How can i write a C++ program which prompts the user to enter names of five countries , stores them in a 2D array,sorts them alphabetical order and prints them on screen. im unable to make it..plz help #include <iostream> using namespace std; int main() cout<<"Enter tha names of five …

Software Development c++
Member Avatar for Builder_1
0
1K
Member Avatar for spawn2004

Hi I have a little problem. I am having a project and i need to implement Dijkstra for a graph.So far it was ok but i have that problem when run it in g++ The code is where i think i have the error is here i think: if(!graph_list.at(start_Node->id)->path_list.empty()) { …

Software Development c++
Member Avatar for samer.aboufakher.3
0
430
Member Avatar for cb.home

Hi folks, I have a problem... Der erste Ordner `./src` mit der main hat folgendes Makefile (automatisch erzeugt) include C:/IPG/hil/win32-4.0.5/include/MakeDefs APP_VER = "Car_Generic <insert.your.version.no>" APP_NAME = CarMaker.$(ARCH)$(EXE_EXT) #OPT_CFLAGS = -g -O1 LD_LIBS = $(CAR_LIB) $(EKF_LIB) $(CARMAKER_LIB) $(DRIVER_LIB) $(ROAD_LIB) $(TAME_LIB) OBJS = CM_Main.o CM_Vehicle.o User.o OBJS_xeno = IO.o $(OBJS_CANIOGEN) $(OBJS_CANIOGEN_USER) OBJS_linux …

Software Development c++
Member Avatar for cb.home
0
383
Member Avatar for ernestclyde

Public Sub login() SQLConnection.ConnectionString = ServerString cmd.Connection = SQLConnection SQLConnection.Open() cmd.CommandText = "SELECT employee_id, password FROM employees_list WHERE employee_id='" & Form1.EMPLOYEE_ID_txt.Text & "' and password='" & Form1.PASSWORD_txt.Text & "'" dr = cmd.ExecuteReader() If dr.HasRows Then Form1.PASSWORD_txt.Text = "" dr.Close() Form1.Hide() MessageBox.Show("Signed in", "", MessageBoxButtons.OK, MessageBoxIcon.Information) 'get firstname and lastname" label4="firstname …

Software Development mysql vb.net
Member Avatar for Minimalist
0
341
Member Avatar for msareef

this is the question: Write a C program that will request the user to input the values for R,L,and C and plot the a graph of current ,I, against frequency . The range for the frequency axis should be automatically selected based on the resonance frequency of the circuit.

Software Development c
Member Avatar for Mouche
0
3K
Member Avatar for Jed_1

I currently have a program that can take a text file and inport the data that I need (names or locations as well as the distances between them) and I need to take that data and for a graph in boost so that I can do one of three things, …

Software Development c++
0
173
Member Avatar for spawn2004

Hi, I am working on a project and I have to implement a graph and to look for the shortest path. As I read so far the best way is with Dijkstra's algorithm. I am trying to do it but i have some problem. Can you please help me with …

Software Development algorithm c++ data-structure
Member Avatar for spawn2004
0
170
Member Avatar for centenond

so whenever i tried to compile it give me error 2816 ive never used dev c++ although i have used netbeans and i had to change control panel env options and put C:\cygwin\bin but now im using mingw cuz dev c++ came with it. so this is the compiler log …

Software Development c++
Member Avatar for centenond
0
2K
Member Avatar for mixelplik

My while loop should terminate when the user types 0 for employee number. Unfortunately when you press 0 the loops iterates at least once before terminating. I was under the impression that as soon as the sentinal value is triggered the loop would terminate immediately. Right now I run program …

Software Development c++
Member Avatar for mike_2000_17
0
149
Member Avatar for thorin

hi, everyone I am a Java newbie. I have followed a bunch of tutorials and examples from the web but they all failed miserably at teaching me how to properly apply this library: com.google.gson. First how do I receive properly in the java servlet a json request that has been …

Software Development google java json
Member Avatar for peter_budo
0
500
Member Avatar for Artyom_1

I'm trying to create a simple colored cube using vbo(well it actually a rectangle with z = 0). I am using glew & freeglut. Here my code. #include <GL/glew.h> #include <GL/glut.h> #include <stdio.h> const int g_width = 800; const int g_height = 800; #pragma comment(lib, "glew32.lib") static const GLsizeiptr PositionSize …

Software Development c++ opengl
Member Avatar for Artyom_1
0
600
Member Avatar for Kratoswoo

I am using asp.net configuration tool for my website. Have everything working fine (The sign out button and the database) Now I want to implament something that shows the users who are online and offline. An icon that shows up next to a users datbase table that if they are …

Software Development
Member Avatar for aryan.sen03
0
207
Member Avatar for ArashVenus

I am not asking you to write a calculator for me , I am asking , what must I learn to be able to write this program or these kinds of programs ? I have some experience programming console applications using C++ , but I have absolutely no idea what …

Software Development c++ gui
Member Avatar for ArashVenus
0
1K
Member Avatar for Pobunjenik

I've got a JTable called chances_T full of doubles ranging from 0 to 100. I'm trying to set the background color of each cell based on the cell's value. So I built a custom cell renderer: class CustomRenderer extends DefaultTableCellRenderer { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, …

Software Development html-css java
Member Avatar for mKorbel
0
459
Member Avatar for William Ray

Re: VB.net, MenuItem, Select Event Hello every one, I am creating a owner drawn menu and I have a question about the MenuItem_Select event Even though the menu iten is owner drawn this event is still fired. I draw the select rectangle myself and I would like to know if …

Software Development vb.net
Member Avatar for William Ray
0
135

The End.