Member Avatar

Hi! I want to learn programming. I'm 14 years old and very fond of computing. The only problem I face is *Which programming language should I learn?* or should I learn *Programming* i.e I learn the basics of programming so that I will be capable of learning any programming language. Also, when you recommend me one of the choice I stated above then please give me resources for learning e.g book names or some websites which will start me learning from scratch. Furthermore, I want to state that I want to create cool games, softwares or even Operating Systems from …

Member Avatar
2
142
Member Avatar

Hi, I was using booleans earlier in my class. --> isProductRestricted --> internal --> isProductGlobal I am using lombok too. So putting @Data at the top of class too. But, now I changed these boolean to Boolean variable. I got errors where ever `Object.isInternal()` was used. I am not getting how isInternal() was working initially. There is no function in my class too. Also, I am able to access boolean isProductGlobal using `Object.getProductGlobal()` bit there is "is" also attached to the productGlobal name. Can you please explain this? How is it happening here? Thanks in advance.

Member Avatar
0
17
Member Avatar

Hello, I have few question regarding importing modules. I have created a folder for my python work [quote]/usr/home/pratz/pyfiles[/quote] I have exported this to set the $PATH. And now if I issue the command [code]echo $PATH [/code] I am getting the string the "/usr/home/pratz/pyfiles" in the list. If I am not wrong then this means that the path is been set correctly. Also, I have set the python path in the environment variable and even that is correct. Now I have a module called "mod.py" and it has a class "cls1" and this class contains a function func() [code]mod.py -> cls1 …

Member Avatar
0
11
Member Avatar

Hi, I have an assignment. I need to write code in logic programming language SWI-Prolog. Its very hard and I am going to appreciate if you help me :D. This is the assigment: Print 2D array size of (width x height) in spiral order. More explanation and example: You have input, width and height that are integers. With this input program needs to print a matrix "spiral" of numbers, from 1 to (height x width). Height is size of column in "spiral" matrix Width is size of row in "spiral" matrix This is just an example: spiralmatrix(w,h). /*w - width, …

Member Avatar
0
39
Member Avatar

I'd like to know main differences between C and C++,because they look similar.

Member Avatar
0
47
Member Avatar

Hello, I was just noticing that the 'const'ness of references often causes me to rewrite a large chunk of my code with pointers. For example if I have a class that needs access to a large amount of data from another class I would love to use a reference. However the only way to do that is to assign the references in the constructor (at least as far as I know) and therefore I can't re-assign the class at all (without complicated pointer conversions). As such I end up going through all my private data declarations and changing my references …

Member Avatar
0
68
Member Avatar

Need Help guys. I am beginer in vb.net. i am using vs 2008 with sqlserver 2005. my head will burt very soon :( i have completed a desktop application for a local shopkeeper but he says this is in english and i want it in URDU :@ ,,,, i WANT to name all lables in URDU, all msg box in URDU and buttons names in urdu at front end. All i want to change **TEXT PROPERTY of LABLES AND BUTTONS and if possible msg boxes to URDU** ... Thanks in advance. and yes !!! m using windows 7 professional.

Member Avatar
0
30
Member Avatar

*I wrote this a few years ago as part of a C manual I wrote, but did not finish. I thought it might be interesting to the people on DaniWeb.* # Programming Language Generations # Different types of programming languages are often grouped into large categories known as generations. Each generation consists of languages that behave in similar ways. The higher the generation number, the more abstraction is present in the language and the more indirect is the programmer's interaction with the computer. A first-generation language gives almost direct access to the hardware and operations of the computer, while a …

Member Avatar
1
34
Member Avatar

my google map works very well except that the language is not English but Chinese, I need it to be default in English, and anoter problem is infobox size isa little big than what I need, pls see the attached shot, when I click the marker, the infobox display is over the map canvas. here is the code, and pls help me improve it if anyone here could. thank you in advance. eta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(23.203984,113.251772); var settings = { zoom: 15, center: latlng, mapTypeControl: true, …

Member Avatar
0
18
Member Avatar

Hi, I am having error in following code, <!-- START --> <p class="date-head"> <?php $sql_online_mem = "SELECT membername FROM ` trade_messengerd` WHERE status = 'Online'"; $db_sql_mem = mysql_query($sql_online_mem); while($online_mem = mysql_fetch_array($db_sql_mem)){ $members_online[] = $online_mem['membername']; } for($o=0; $o<count($members_online); $o++){ if($members_online[$o] == $uid){ $mem_online = "Online"; } } ?> <a href="#" onClick="window.open('<?=$domain_url?>/messenger/members/_login.php','login','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=368,height=600,left=380,top=60');return false;" title="Chat Now"><?php if($mem_online == 'Online'){ ?> <img src="<?=$domain_url?>/images/chat_now_online.jpg" alt="Online Chat Now" title="Online Chat Now" height="31" width="159" border="0" /> <?php }else{ ?> <img src="<?=$domain_url?>/images/chat_now_offline.jpg" alt="Chat Offline" title="Chat Offline" height="31" width="159" border="0" /> <?php } ?></a> </p> <!-- END --> Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in …

Member Avatar
0
5
Member Avatar

this code is working for a counter of 6 bit and i need a counter of 48 bit ... if u have time kindly try it..... i try alot but not succeed #include<stdio.h> #include<stdlib.h> #include<float.h> #include<math.h> #include <time.h> #include <cstdlib> #include <iostream> #include<stdint.h> #include<conio.h> int main() { int a[64][6]; int i,j,k,d,c,n; for(k=0;k<64;k++) //6 digit binary so 2^6 =64 is no: of combinations { for(j=0;j<6;j++) { a[k][j]=0; } } for(i=0;i<64;i++) { n=i; for(j=5;j>=0;j--) { while(n!=0) { a[i][j]=n%2; j--; n=n/2; } } } for(k=0;k<64;k++) { for(j=0;j<6;j++) { printf("%d",a[k][j]); } printf(" .................%d\n",k); } //printf("\n **** KHATAM SHo ****\n"); getch(); return 0; } help …

Member Avatar
0
6
Member Avatar

my text is to show on webpage is- Comment ça marche Tu es bloqué par une question, ou par un exercice de mathématique, ou par un chapitre de chimie que tu n’arrives pas à comprendre ? But my website is not showing some french charachter of this type of text which is-ç,é,à etc.in place of these charachter my website shows a symbol. What can i do to show these charachter.

Member Avatar
0
11
Member Avatar

Hi, everyone! This is my first post ever here in Daniweb. I experienced a problem in printing the sorted array of 5 numbers, as the following code only prints the first iteration of the loop, and it does not print the array input. Here's the code: section .data i db 0 ; Value to be incremented question db 'Enter a number: ' ; Prompt questionLen equ $-question newLine db 10, 10, 0 ; New blank line newLineLen equ $-newLine section .bss num resb 5 ; Array of size 5 counter resb 1 ; Value to be incremented counter2 resb 1 …

0
2
Member Avatar

I have the code below #include <stdio.h> int main(){ float n; scanf("%f",&n); printf("%f",n); return 0; } Then, I run the code input: 45321.56 is not same with output:45321.558594 I want to get output which same as the input. How to solve this problem? Thank you

Member Avatar
0
11
Member Avatar

Heeey guys!! Where's the forum for Batch Scripting!?!? Imma noob if it's Shell Scripting... ~~Zephyr

Member Avatar
0
2
Member Avatar

So my son has learnt Java and has come to a decision point. First, the flashback,:- May, 2011--Back when he was 10 years old and didn't know Java, he gave C++ a try. He understood loops and variables. But when he reached the page teaching functions, he didn't understand a thing. January to March 2012--Learnt Java from a book. <flashback ends here> Back to the present. Today he revisits the C++ page. Slowly functions start coming into his head. Now for the question- I have seen that C++ and Java are similar as well as different. C++ includes some code …

Member Avatar
0
24
Member Avatar

I am a Computer Science student. This semester I am taking an Artificial Intelligence course in which a large number of our labs will be programming with Lisp. Here on DaniWeb under Software Development I did not see a category for Lisp. I was wondering if anybody out there knew of any good Lisp forums that I could refer to when I have problems(at least problems pertaining to the language Lisp that is), which I'm sure will be very plentiful. Thanks in Advanced :) ~Michelle

Member Avatar
0
4
Member Avatar

Updated top 20 list of languages (by usage): [url]http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html[/url]

1
2
Member Avatar

Hello all. I'm producing a DIY multilingual site. I'm using a templating engine (rainTPL) and my own static language files (php arrays). In these files I not only have the page strings but also the meta tag and title contents. I'd just like to know if you think this is a bad idea. The 'current language' is set via a session variable not a querystring, so urls are identical, no matter what the current language. So, will SEO be a problem? There could be a load of possible title and meta tag alternatives for the same page, depending on the …

Member Avatar
0
5
Member Avatar

Hello. I've learned programming in Visual Basic 6 followed by turbo C++. I was able to make COMMERCIAL software using VB6 but not with C++. The thing is I need to learn a language (for software development) that has syntax and logic similar to C++ BUT COMES WITH AN INTERFACE (as in VB, i.e. I must be able to design forms/buttons/etc) Even in web programming, I prefer PHP, since its syntax is similar to C++ and in web, graphic part is done using C++ Which language should I go for? An advanced language, I want to learn. Similar to C++, …

Member Avatar
0
6
Member Avatar

I'm reading a book called Beginning Algorithms by Harris and Ross, which gives code examples in Java. As an academic exercise I am trying to convert the code examples to C++. In the interface below the part that throws me is the return of the 'Object' by the 'current' method. Java [CODE=java]public interface Iterator { public void first(); public void last(); public boolean isDone(); public void next(); public void previous(); public Object current() throws IteratorOutOfBoundsException; }[/CODE] I have turned this into the following abstract class. In particular I would like to know if my use of the template function is …

Member Avatar
0
7
Member Avatar

just an idea ...im not a programmer yet starting college aug. c++ and java both have complex syntax and i cant learn on my own, python is good but not supported aswell and basic is really basic any more thanks to object oriented stuff English the programming and scripting language files are organized as books -table of contents - quick access to chapters (organizational purpose) -intruduction - contains licenses,code developers and other non esential data -code -chapters - contains different aspects of the program physics,3d,sound,input etc. -paragraphs - block of code -sentences - contain specific code -bibliography - linked libraries …

Member Avatar
0
17
Member Avatar

Hello everyone, How can I find out what scripting language is used for a website? For example If I am looking at BBC.co.uk how do I know the scripting language like PHP, JSP, ASP etc. Please reply. its urgent ,.........thanks

Member Avatar
0
7

The End.