Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for masterinex

i have a code which asks creates a structures and then for each it will check if the asks the user to enter a name and it will check if the name already exists within the database. if the name can be found , it will asks the user to …

Member Avatar for deceptikon
0
448
Member Avatar for masterinex

why this code not work ?? # include <stdio.h> void get_values(float *r, float *v); float do_calculations(float resistance, float voltage ) ; void display_answer(float current); main() { float resistor; float volts; float current; //explain_program(); get_values(*r, *v); current = do_calculations(resistor, volts); display_answer(current); } void explain_program() { printf("This program calculates the current in …

Member Avatar for rubberman
0
636
Member Avatar for masterinex

i have a form which asks the user to enter a username , once the user enters the username, the program will check if the username entered by the user is a new username or an old one from the database 'testdb' and table 'test'. if it is a new …

Member Avatar for matrixdevuk
0
235
Member Avatar for masterinex

basically Im searching for the term ded within subject, how come all i get is Array() when i run this <?php $subject = "dedfd"; $pattern = '/ded/'; preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 2); print_r($matches); ?> and then i tried to search for the letter d within subject and i get Array …

Member Avatar for cereal
0
147
Member Avatar for masterinex

How do I call string a defined outside of the class ? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static2 ; namespace static1 { class Program { string a = "dsfsdf"; static void Main(string[] args) { Automobile.Drive(); int i = Automobile.NumberOfWheels; // Automobile car = new …

Member Avatar for KushMishra
0
166
Member Avatar for masterinex

I have one class called Class1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace static2 { public class Automobile { public static int NumberOfWheels = 4; public static int SizeOfGasTank { get { return 15; } } public int compute(int a,int b) { int c = a*b; …

Member Avatar for Mike Askew
0
145
Member Avatar for masterinex

Hello, I am trying to write a simple program which should read the first line from the file s1, and display it. When I run it , I get the message cannot implicitly convert 'System.IO.Streamreader 'to 's1.Program' which happens for the line Program re = new StreamReader("s1.txt"); using System; using …

Member Avatar for Momerath
0
254
Member Avatar for masterinex

Hi, I want write a program which extract 'Rated PG for some scary moments and mild language' from the following html file and return it as a list . html file: <div class="info"> <h5><a href="/mpaa">MPAA</a>:</h5> <div class="info-content"> Rated PG for some scary moments and mild language. (also 2009 extended version) …

Member Avatar for vegaseat
0
222
Member Avatar for masterinex

Hi , Im trying to extract the number 7.2 from the html string below using python: '''<a href="/ratings_explained">weighted average</a> vote of <a href="/List?ratings=7">7.2</a> / 10</p><p>''' I thought this would be code to do this .But how come this doesnt work ? averageget = re.compile('<a href="/List?ratings=7">(.*?)</a>') average = averageget.findall(htmlr) Could it …

Member Avatar for ghostdog74
0
96
Member Avatar for masterinex

Hi guys , Im new at pythons . Hope you all can help me out here : Im trying to write a code which prints the elements from every list as a line . so If my lists are : l1 = ['0000002', '0000003', '0000004', '0000005', '0000008', '0000009', '0000010'] l2 …

Member Avatar for masterinex
0
287