 |
| Recent blog posts: | |
 |
| They have birthday today: | |
 |
| Forums: | | |
 |
| Discuss: | |
 |
| Recent forum topics: | |
 |
| Recent forum comments: | |
 |
| Модератор: | |
 |
Wednesday, 24 January 2007
|
| C++ program to solve numerical integration MoMaFuckEup 00:43:38 |
| | Hello everyone. can any body help me to solve numerical integration using Trapeziodal method. the program will input x and fx where fx=y is twice of x.x is a range of values witn equal intervals. where the formula for trapezoidal mathod is:1/2(y1+2y2+2y3+2y4+....YL)h where YL is the last value of y=fx. h is the interval btw x.
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 1 answer | Add comment |
Tuesday, 23 January 2007
|
| [ROOT] getting a TGraph from a file Roger Mason 21:04:00 |
| | Hello,
I have an elementary question: how to get a TGraph from a file.
I save a TGraph object to a file. I can open the file and verify that the TGraph is present:
root [5] TFile f("file1.txt.root","UPDATE") root [6] .ls TFile** file1.txt.root TFile* file1.txt.root KEY: TGraph Graph;1 Original data
I recover the TGraph:
root [7] Graph->Draw() <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
but the canvas is empty.
I have tried the GetObject method with the same results.
What am I missing?
Thanks, Roger
|
| | 1 answer | Add comment |
|
| [ROOT] Use new methods in Draw() Nico De Simone 19:04:29 |
| | Dear Rooters, Using TTree::Draw() I can access member variables and methods defined in the class used to build the tree.
How can I create new methods or new variables, in a new class, and use it in the same Draw()? Eg: the original class gives me the ints a and b and I want to create c=a+b and do tree-> Draw("c"). With MakeClass I only get member variables of the original class but not the methods and add them is not trivial. Is there a better way?
Thanks for any help. Nico
|
| | 7 answers | Add comment |
|
| what is a vector ? Chaitanyacckr 01:54:11 |
| | can u tell me what is a vector? briefly describe about it?
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 3 answer | Add comment |
Monday, 22 January 2007
|
| c basic Resh_personal 20:56:34 |
| | Hey!programmers having penchant knowledge in c pls ans to my qus...... For the escape sequence(\n)ie to print a new line charater have an an ASCII VALUE 008 .Instead of giving the escape sequence i gave its ASCII value.but the compiler is taking it as a number and printing it instead of printing a new line .since 008 is a machine code Why it is woriking.
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 15 answers | Add comment |
|
| [ROOT] root with cygwin xterm Igor Giller 20:17:06 |
| | Dear Rooters,
Root is stuck, while opening a cint interface, when I run it from cygwin xterm (ROOT 5.14 WinXP). And working properly, when ran from win. or cygwin shell.
Thanks, Igor Giller
|
| | 1 answer | Add comment |
|
| Please help ASAP !!!! Bhbagadiya 19:53:46 |
| | Please help me to solve following question. i have searched a lot in internet but no proper result found.
What is the difference between a Modal and a Modeless dialog box? Do modal and modeless dialog boxes receive all keyboard messages that a standard window receives? If no, what messages are received? Can a dialog be made to receive all key presses?
Any comments are invited plz.
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 2 answer | Add comment |
|
| [ROOT] Not able to upload dataset using proofd Antonio Bulgheroni 18:16:21 |
| | Dear ROOTers,
I'm writing because I would like to call your attention to the fact I'm not able to upload dataset on our cluster when proofd (started from xinetd) is running, while everything goes smooth when xrootd is running.
Here comes the debug output:
*** Break *** segmentation violation (no debugging symbols found) Using host libthread_db library "/lib/tls/libthread_db.so.1". Attaching to program: /proc/4571/exe, process 4571 (no debugging symbols found)...done. (no debugging symbols found)...done. (no debugging symbols found)...done. [Thread debugging using libthread_db enabled] [New Thread -1208961344 (LWP 4571)] [New Thread -1219773520 (LWP 4970)] [New Thread -1209144400 (LWP 4648)] (no debugging symbols found)...done. (no debugging symbols found)...done. (no debugging symbols found)...done. (no debugging symbols found)...done. 0x0042f7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 Thread 3 (Thread -1209144400 (LWP 4648)): #0 0x0042f7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x03487ba6 in __nanosleep_nocancel () from /lib/tls/libc.so.6 #2 0x034be32a in usleep () from /lib/tls/libc.so.6 #3 0x06b44c6e in GarbageCollectorThread (arg=0xa15a7d8, thr=0xa159e98) at XrdClientConnMgr.cc:66 #4 0x06b53256 in XrdClientThreadDispatcher (arg=0xa159ea4) at XrdClientThread.cc:29 #5 0x06b606c2 in XrdOucThread_Xeq () from /cern/root/lib/libXrdProofd.so #6 0x003ac371 in start_thread () from /lib/tls/libpthread.so.0 #7 0x034c500e in clone () from /lib/tls/libc.so.6
Thread 2 (Thread -1219773520 (LWP 4970)): #0 0x0042f7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x03487ba6 in __nanosleep_nocancel () from /lib/tls/libc.so.6 #2 0x034be32a in usleep () from /lib/tls/libc.so.6 #3 0x06b44c6e in GarbageCollectorThread (arg=0xa2f4c78, thr=0xa320110) at XrdClientConnMgr.cc:66 #4 0x06b53256 in XrdClientThreadDispatcher (arg=0xa32011c) at XrdClientThread.cc:29 #5 0x06b606c2 in XrdOucThread_Xeq () from /cern/root/lib/libXrdProofd.so #6 0x003ac371 in start_thread () from /lib/tls/libpthread.so.0 #7 0x034c500e in clone () from /lib/tls/libc.so.6
Thread 1 (Thread -1208961344 (LWP 4571)): #0 0x0042f7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x0348749b in __waitpid_nocancel () from /lib/tls/libc.so.6 #2 0x03431359 in do_system () from /lib/tls/libc.so.6 #3 0x034316d1 in system () from /lib/tls/libc.so.6 #4 0x003b278d in system () from /lib/tls/libpthread.so.0 #5 0x00a9cd39 in TUnixSystem::Exec () from /cern/root/lib/libCore.so #6 0x00a9d191 in TUnixSystem::StackTrace () from /cern/root/lib/libCore.so #7 0x00a9b1da in TUnixSystem::DispatchSignals () from /cern/root/lib/libCore.so #8 0x00a99201 in SigHandler () from /cern/root/lib/libCore.so #9 0x00a9f6f9 in sighandler () from /cern/root/lib/libCore.so #10 <signal handler called> #11 0x00000021 in ?? () #12 0x01a990db in TXNetSystemConnectGuard::~TXNetSystemConnectGuard () from /cern/root/lib/libNetx.so #13 0x01a96923 in TXNetSystem::TXNetSystem () from /cern/root/lib/libNetx.so #14 0x01a9cb6c in G__G__Netx_220_0_6 () from /cern/root/lib/libNetx.so #15 0x0105ea8f in Cint::G__CallFunc::Execute () from /cern/root/lib/libCint.so #16 0x00a18992 in TMethodCall::Execute () from /cern/root/lib/libCore.so #17 0x00977bfe in TPluginHandler::ExecPlugin () from /cern/root/lib/libCore.so #18 0x009aa656 in TSystem::FindHelper () from /cern/root/lib/libCore.so #19 0x00a9bdd1 in TUnixSystem::AccessPathName () from /cern/root/lib/libCore.so #20 0x016c2d6d in TProof::UploadDataSet () from /cern/root/lib/libProof.so #21 0x0185772f in TUploadDataSetDlg::UploadDataSet () from /cern/root/lib/libProofGui.so #22 0x018567e1 in TUploadDataSetDlg::ProcessMessage () from /cern/root/lib/libProofGui.so #23 0x0463b984 in TGFrame::HandleClientMessage () from /cern/root/lib/libGui.so #24 0x0463f548 in TGMainFrame::HandleClientMessage () from /cern/root/lib/libGui.so #25 0x0463b6be in TGFrame::HandleEvent () from /cern/root/lib/libGui.so #26 0x04612fe0 in TGClient::HandleEvent () from /cern/root/lib/libGui.so #27 0x04612bf8 in TGClient::ProcessOneEvent () from /cern/root/lib/libGui.so #28 0x04612d17 in TGClient::HandleInput () from /cern/root/lib/libGui.so #29 0x0461109e in TGInputHandler::Notify () from /cern/root/lib/libGui.so #30 0x00a9a3dd in TUnixSystem::DispatchOneEvent () from /cern/root/lib/libCore.so #31 0x009a9b96 in TSystem::InnerLoop () from /cern/root/lib/libCore.so #32 0x009a9b36 in TSystem::Run () from /cern/root/lib/libCore.so #33 0x009235c4 in TApplication::Run () from /cern/root/lib/libCore.so #34 0x003647d8 in TRint::Run () from /cern/root/lib/libRint.so #35 0x08048d4b in main ()
Thanks for your help,
cheers,
-- Antonio Bulgheroni, PhD
|
| | 4 answer | Add comment |
|
| [ROOT] Inquiry about portable GUI and scripting Tom Roberts 18:15:16 |
| | I have a need to do shell-like scripting and GUI generation for the "big 3" operating systems: Windows, Mac OS, and Linux. I'm writing a large Geant4-based simulation program; until now it's been Linux only, but I want to release it for all 3 systems and meet their users' expectations. That means I cannot reasonably require Cygwin on Windows, and thus I need to replace my bash scripts with something else, preferably having a graphical user interface. As the program already uses Root for the generation of NTuple files and histograms, I'm interested in peoples' opinions: is it crazy to use Root as a pure scripting and GUI language? Root is definitely capable of doing what I need, but it sure seems like overkill....
[The alternatives I know of are: Java, Qt, and GTK++. Tcl/Tk would seem to be the best of all, except no re-distributable Windows version is available outside of Cygwin. Right now I'm undecided between Java and Root (if Root were not already required it would not be on the list at all).]
Note I spent last week building a Root GUI application to simplify generating histograms from NTuple files. So I am familiar with the Root GUI classes and know it is completely suitable for what I need. Of course Java is equally suitable, and has fewer quirks and less overhead.
Comments? Suggestions?
Tom Roberts
|
| | 4 answer | Add comment |
|
| can u solve this problem? Mohammed Derhalli 10:53:59 |
| | Hi I want to write a program that reads a string s then sums the number assciated to each string in teh alphabet like the following schema: a=1,b=2,c=3,d=4,e=5,f=6,g=7,h=8,i=9,j=10,k=20,l=30,m=40,n=50,o=60,p=70, q=80,r=90,s=100,t=200,u=300,v=400,w=500,x=600,y=700,z=800. I wrote the following program for the first 10 characters of the schema. But it didn't work properly. can u fix it? Here is the program: ================ int main(int argc, char *argv[]) { char *s; int *t,n,a=0,i; cout << "Enter a string"; cin >> s ; n=strlen(s); for (i=0;i<n;i++) { switch(s[i]) { case 'a': {a=a+1; t[1]=a;} case 'b': {a=a+1; t[2]=a;} case 'c': {a=a+1; t[3]=a;} case 'd': {a=a+1; t[4]=a;} case 'e': {a=a+1; t[5]=a;} case 'f': {a=a+1; t[6]=a;} case 'g': {a=a+1; t[7]=a;} case 'h': {a=a+1; t[8]=a;} case 'i': {a=a+1; t[9]=a;} case 'j': {a=a+1; t[10]=a;} } a=a+t[i]; } cout << "the length is " << a; system("PAUSE"); return 0; } Mohammed
--------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. |
| | 19 answers | Add comment |
|
| URGENT..plz reply ASAP Sarah Magdy 06:44:46 |
| | I need the code of playing an AVI (or any other video format) in a Visual C++ Win32 project cuz I wanna add small videos in my game. Plzzzzzzzzzz some1 replies as sooooooooooooon as possible!!!
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 7 answers | Add comment |
Saturday, 20 January 2007
|
| Somebody has an example showing a Dialog box (32bits looking) for choosing (or creating and choosing AndreB 21:39:54 |
| | Please,
Somebody has an example showing a Dialog box (32bits looking) for choosing (or creating and choosing) a Directory. Borland cpp ?
Thanks, &B.
|
| | 1 answer | Add comment |
|
| Quelqu'un a t'il un exemple de Dialog (cpp Borland) pour choisir (cr er) un directory avec un look 3 AndreB 21:08:43 |
| | Quelqu'un a t'il un exemple de de Dialog (cpp Borland) pour choisir (cr er) un directory avc un look 32Bits ?
Merci &B.
|
| | 2 answer | Add comment |
|
| randomize/Randomzie Spine 18:35:32 |
| | Hi,
I am using borland developer suite 2006. when generating a random input I ran acros the following:
when generating a random number with RandG(), one needs to initialize by calling Randomize(). when generating a random number with random(), Randomize() does not initialize correcly, and it generates the same order of random numbers every time. In this case the random generator has to be initialized using randomize() (indeed, the capital is gone)(also setting a value for RandSeed does not work).
does anybody have an idea why this should be done like this, and why it does not show up in the borland help file? Is this just because RandG and random are in different libraries and the capitalized one of the comands to supress ambiguity in calling them?
Spine
|
| | 3 answer | Add comment |
|
| search engine Guest 18:15:56 |
| | can anyone suggest on how to go about developing a search engine which is lan based. which prog language would be better c/c++ or JAVA. what else one needs to study. |
| | Add comment |
|
| difference between run time & complile time Abhs18 18:12:41 |
| | guys ..pls tell me the difference between run time & compile time>>>>>
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 1 answer | Add comment |
|
| Programming courses Nuno Berneaud 14:01:18 |
| | Hello.
I'd like to ask for some guidance, if possible. I'm thinking of signing up for a programming-related course, but am unsure what to go for. One friend tells me to go for Java or Visual C+, maybe even COBOL. He says it's what currently in vogue. I'd prefer C or C++, for various reasons. I'm reading a beginners book on C and while I can't say I grasp everything yet, I feel it's not outside my capabilities. The course is not too expensive, but I wouldn't like to waste time and money in something not worth it. I'm not in the computer business, but would like to be in the future, as a programmer. I use an uncommon platform (AmigaOS) and would like to develop for it (C and C++), especially since there are few programmers left, but could branch out to more mainstream stuff. I'm getting too old and want a desk job. ;)
So, can you tell what languages should I aim for? I know this is probably a too broad subject, but some basic guidelines would be welcome.
Thanks in advance.
Bye,
Nuno
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 30 answers | Add comment |
|
| sudoku prgs Vignesh_ahobila 06:45:08 |
| | Hey did anyone have the code for sudoku.
[mod - Have you ever heard of Google? http://www.google.co.uk/search?q=sudoku+C - PJH]
To unsubscribe, send a blank message to <mailto:c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org>. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required)
<*> To change settings via email: mailto:c-prog-digest-hHKSG33TihhbjbujkaE4pw@public.gmane.org mailto:c-prog-fullfeatured-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> To unsubscribe from this group, send an email to: c-prog-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
| | 6 answers | Add comment |
|
|