Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~10.7K People Reached
Favorite Tags
Member Avatar for revenge2

hello there. i've installed mingw compiler and im wondering how i would go about setting up notepad++ to compile my c/c++ code?. How do i do this? -regards.

Member Avatar for jussij
1
827
Member Avatar for revenge2

Hi there, is it valid to have a java class name and file as [CODE]public class DVD extends Items{[/CODE] and [CODE]public class CD extends Items{[/CODE] where its all in capitals? -thanks, sorry for the short question.

Member Avatar for JamesCherrill
0
209
Member Avatar for revenge2

hello there, I am working on a small c program that automatically detects whether the input given is a decimal number or a binary number and coverts accordingly. what is the best way to convert a binary number to a decimal number and a decimal number to a binary number. …

Member Avatar for akirue09
0
519
Member Avatar for revenge2

Hello there, I am having trouble copying text into a string, what am i doing wrong? [CODE=c] #include <stdio.h> int main() { char instructions[80]; FILE *f; f=fopen("a3.txt","r"); while (fscanf(f,"%s",instructions != EOF){ fscanf(f,"%s",instructions); } printf("%s",instructions); } [/CODE] the contents of a3.txt are B404 239A 2412 5345 350C C000.

Member Avatar for fjallstorm
0
104
Member Avatar for revenge2

Hello there, I have a set of variables that need to be overwritten onto a certain [U]row[/U] on an multidimensional array (char array[100][80]; ) of [U]strings[/U]. the variables are [U]integers[/U] and they need to be in the form [I]00:00:00,000 --> 00:00:00,000[/I] I don't know how overwrite the existing row and …

Member Avatar for Narue
0
103
Member Avatar for revenge2

Hey there, How do I installer gtk+ under windows and compile using the gcc compiler through command line. (not using IDE, just notepad++). I've been looking at the gtk+ site but don't have clue as to where to start and how to install libraries. What do I download and how …

Member Avatar for revenge2
0
125
Member Avatar for revenge2

hey guys how would i figure out if a string has a number in it without using any aditional libraries?

Member Avatar for Hiroshe
0
4K
Member Avatar for revenge2

hey there, i need some help in understanding pointers. this is an example from school but i cant quite figure i out. i know the basis of pointers but could someone give me some more info. [CODE] #include <stdio.h> #include <string.h> int string_len(char *s); int main() { char s[80]; strcpy(s,"Hello"); …

Member Avatar for csurfer
0
107
Member Avatar for revenge2

hey guys how would i print something 60 times without actually typing the character out 60 times. [CODE=C]printf("#"*60);[/CODE] ^ which is complete rubbish and doesnt work, but what is the syntax for it? cheers!

Member Avatar for Aia
0
128
Member Avatar for revenge2

how do you manipulate text files.. [CODE=Python] import urllib2 dload = urllib2.Request('http://tvnz.co.nz/content/tv2_listings_data/portable_listings_skin') text_file = urllib2.urlopen(dload) text_file_read = text_file.read() print text_file_read f = open ('site.txt', 'w' f.write(text_file_read) f.close()[/CODE] This returns the page and saves it as text file, but how would i do the following things.. -delete lines of texts, for …

Member Avatar for Ene Uran
0
147
Member Avatar for revenge2

Having trouble understanding using wxPython....:?: [CODE=Python] import wx class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,wx.ID_ANY, title='Hello wolrd') self.buthello = wx.Button(self, wx.ID_ANY, label ='helo') self.buthello.Bind(wx.EVT_LEFT_DOWN, self.helloevent) self.Show() def helloevent(self, event): msg = 'hello' msgbox = wx.MessageDialog (self, message = msg, style = wx.OK) if msgbox.ShowModal() == wx.ID_OK: msgbox.Destroy() app = wx.App(redirect = False …

Member Avatar for Ene Uran
0
121
Member Avatar for revenge2

Does anyone know of any good urllib tutorials other than [url]http://www.voidspace.org.uk/python/articles/urllib2.shtml#introduction[/url] & [url]http://effbot.org/librarybook/urllib.htm[/url]. Something which a little beginner friendly:| with good explanations. -Thanks

Member Avatar for mn_kthompson
0
199
Member Avatar for scru

Is there a gui library that has already been ported to python 3? I'm interested in using some of the new python 3 features in the back end for my project.

Member Avatar for Ene Uran
-1
266
Member Avatar for revenge2

Hey guys, well here are some more of my questions (sorry!! i know, im a pain..) Ive finished "most" of everything in this [URL="http://www.swaroopch.com/notes/Python_en:Table_of_Contents"]tutorial[/URL]. I missed some out because they were too much for me to understand at the time. will go back to them and come back with more …

Member Avatar for Ene Uran
0
121
Member Avatar for revenge2

hello again, Ive got the basics under my belt and ready to start making things happen:D. I want to experiment with different things so could you show me to some good tutorials on some of the following things. 1. sending and receive messages through the internet-what library/Mod should i use? …

Member Avatar for Ene Uran
0
103
Member Avatar for revenge2

hello there. I'm using notepad++ at the moment and i want to switch to something a little more 'better' suited to python. Ive already gone through the huge list of text editors on [URL="http://wiki.python.org/moin/PythonEditors"]wiki[/URL]. but yeah cant decide.... what would you recommend?

Member Avatar for Ene Uran
0
86
Member Avatar for revenge2

I need help understanding classes better. [CODE=Python] class person: def sayHi(self): print('hello world!') p=person() p.sayHi() [/CODE] here what is the use of 'self'?, I've read two tuts on this but don't quite understand fully.... [CODE=Python] class person: def _init_(self, name): self.name=name def sayHi(self): print('hello, my name is', self.name) p=person('rs') p.sayHi() …

Member Avatar for sneekula
0
215
Member Avatar for revenge2

This is my first official python program/scrip which I've done my self;) yay!:D. Im sure most of you guys know the 21 card trick where you guess what card a person is thinking of accurately. anyway, I have trouble passing information between modules within modules and functions within functions. this …

Member Avatar for Murtan
0
307
Member Avatar for revenge2

hello there, well im back;) with a few more questions that i would like clarification with. I have completed up to data structures in python and my next topic is 'object oriented programming':| . Just wanted to clear up some things first:) [CODE]guess=int (input ('enter a number:')) [/CODE] Q1. in …

Member Avatar for mn_kthompson
0
357
Member Avatar for nitu_thakkar
Member Avatar for Stefano Mtangoo
-1
351
Member Avatar for revenge2

hello there, i started learning python yesterday and im having quite a bit of difficulty following tutorials... I was following this[URL="http://en.wikibooks.org/wiki/Python_Programming/Variables_and_Strings"] tutorial [/URL] but most of what i wrote did not work. How do i make the code compatible with python 3.0?. for instance it says [CODE]lucky=7 print lucky [/CODE] …

Member Avatar for Stefano Mtangoo
0
362
Member Avatar for revenge2

How does [URL="http://www.swaroopch.com/notes/Python_en:Basics#Indentation"]indentation[/URL] work exactly?. Could someone expand on the explantion given on that page please. -regards.

Member Avatar for mn_kthompson
0
117
Member Avatar for revenge2

hello there, well i just started python, and well came to grinding halt. Why doesnt this work when i enter this... [CODE]print "hello world" [/CODE] it gives me [CODE] IDLE 3.0 >>> print "hello world" SyntaxError: invalid syntax (<pyshell#0>, line 1) >>> [/CODE] can anyone help me? -cheers

Member Avatar for sneekula
0
119
Member Avatar for revenge2

hello there, it says that i have 2 errors in my code. What have i done wrong? (doesnt show where); something that calculates the area and the perimeter. [CODE] #include <iostream.h> typedef unsigned short int pint; int main() { pint width; pint length; pint area=(width*length); pint perim=( (width+width) + ( …

Member Avatar for rajatC
0
102
Member Avatar for revenge2

ok so yesterday i had issues with devc++ (where my code occasionally compiled) and when i tried to run the "compiled" program it says "source not compiled" (when really..i hit the compile button). So..i have now installed Visual c++ 2008, and i cant create a new project, it just says …

Member Avatar for Salem
0
97
Member Avatar for revenge2

hello, I am following a book and im stuck on this one.....(note it's tacky but just bear with me, im a newb)[CODE] #include <iostream.h> int main() { int RedSoxScore, YankeesScore; cout<<"Enter the score for the RedSox:"; cin>> RedSoxScore; cout<<"Enter the score for the yankees:"; cin>> YankeesScore; cout<<"\n"; if (RedSoxScore > …

Member Avatar for Ancient Dragon
0
126
Member Avatar for revenge2

hello there, i have been having some problems with dev c++. It just cant seem to compile my code. It says source file not compiled when i try to run the "compiled" program. Its like this;- i write my code (simple code stil beginner lol) and i go compile it …

Member Avatar for Nick Evan
0
82
Member Avatar for revenge2

Hey could someone please tell me whats wrong with this? [CODE]#include <iostream> using namespace std; int main() { const int sunday =7; const int monday =1; const int tuesday=2; const int wednesday =3; const int thursday =4; const int friday =5; const int saturday =6; int choice; cout <<" enter …

Member Avatar for Ancient Dragon
0
159
Member Avatar for revenge2

Ok so after quite awhile i finally picked up from where i stopped last. Which was the "2nd" page of the book "sams teach your self c++" lol! (im not much of a reader) But today i intend to start work properly and continue learning c++, so i would just …

Member Avatar for toko
0
89
Member Avatar for revenge2

Hello i just started c++, and i have a small problem with compiling. The book im reading just told me to compile the following but line 4 has an error/warning.(im using devc++) [code]#include <iostream> int Add (int x, int y) { cout<< "In Add(), received " << x<< "an d" …

Member Avatar for darkagn
0
142