Forum Replies Created

codewithc
CWC Keymaster

Go to “C:\wamp\bin\apache\apache2.2.22\conf” and open “httpd.conf” with Notepad. Find the line “Listen 80” and change it to 8080 (or some port you want), save it. Restart all services.

codewithc
CWC Keymaster

Look into CRUD ( Create, Read, Update, Delete ).
It’s a functional approach to doing just what is asked of you.
The basics are that you have a form and a database, really simple.

You could have 3 tables in the database: Topics, Lessons and Questions. You could then have a “mapping” table to force the relationship between topics and lessons to be a “one-to-one” relation.
Like this:
C Programming lessons

codewithc
CWC Keymaster

You should learn reactJS from facebook. If you want to create mobile you use.

Phonegap
http://phonegap.com/

Or Facebook react.

https://facebook.github.io/react/

Remember you need to learn basic Javascript before doing advanced stuff okey. You can also create mobile apps with C language and so on.

Just learn everything I listed in order. You have all the knowledge on warez bb. Go to tutorial section and start downloading man. You become pro in no time.

You go to college you will use 5-6 months to learn javascript. If you learn at home you master it in 2-5 weeks maximum.

Remember that Flappy Bird creator does not have university education. He is self taught.

https://en.wikipedia.org/wiki/Flappy_Bird

Just remember that knowledge are passed through books. A teacher and professor also gets his knowledge from books. Books contains knowledge of our ancestors. With a book you can learn anything. Even if humanity becomes extinct. Our knowledge will remain as long the books remain.

Wisdom er passed like this
Human write books.
Descendants reads books and gain knowledge + wisdom.
Screw the teachers. All you need in your life are books.

The only reason we know so much about the roman empire. Is because they wrote down their history and knowledge on books. The only reason we know so much about ancient civilizations is because they wrote down their knowledge in books. Without books we would not even know who the Babylons were or the Romans was in the past. Empires will always rise and fall but their knowledge and wisdom lives on in books. Just imagine a world without books. We would be so dumb.

Under World War 2 Hitler forced people to burn books. Because books contains knowledge and wisdom that would challenge his totalitarian rule. People dont realize this but all books are dangerous to the presidents, dictators and kings. Books are also dangerous to teachers because we challenge what they teach and criticize our teachers. Because books contains written knowledge & Wisdom passed down from our ancestors that challenge the rule of our leaders. Sorry for getting philosophical. You guys get my point I think.

codewithc
CWC Keymaster

For one, if “temp” is a struct object, and not a pointer, then you should write

scanf("%d", &temp.wd->DayNumber);

Also, did you allocate memory for the “wd” pointer in temp object?

codewithc
CWC Keymaster

if you want to construct SQL statements from your CSV file, you can simply open it with a Spreadsheet program like Excel and insert the SQL statements between the data columns. A bit tedious, but it works Smile

There might be tools to import CSV data if the columns match the tables in your database, but I’ve not familiar with any.

codewithc
CWC Keymaster

Question 1:
Difficult without knowing what “i” is in lenght = i + 1; I don’t really know why you even do this step as it makes the first step redundant (int lenght=words.length)
If I understand correctly you want to do what varuint suggests and loop while words[i].compareToIgnoreCase(“end”) != 0, this should avoid the null…

Question 2:
You could use toCharArray on words[i] then loop to print it with spaces between individual characters…

codewithc
CWC Keymaster

I’ve done some modifications and here is the code

import java.util.Scanner;
public class lab13zad3{
    public static void main(String[] args) {
       Scanner sc= new Scanner(System.in);
       String word;
       String words[]=new String[100];
       int i=0;
       
       String k="end";
       System.out.println("Write some words: ");
       word=sc.next();
       while(word.compareToIgnoreCase(k)!=0)
       {
         words[i] = word;
         i=i+1;
         word=sc.next();
       }
       
       
      for(int j=0;j

However there is a small caveat to the above code. When printing, it prints all the values in the array including empty or null strings.

Viewing 7 posts - 31 through 37 (of 37 total)
en_USEnglish