• Member Avatar
    aslam.junaid786

    Marked Solved Status for DELETING A RECORD FROM ARRAY

    #include "stdafx.h" #include<iostream> #include<conio.h> #include<string> using namespace std; //--------------------------------Structures--------------------------------// struct datee { int month; int days; int years; }; struct book { string bookname; string bookpublisher; string authorName; int copies; …
  • Member Avatar
    aslam.junaid786

    Marked Solved Status for DELETING A RECORD FROM ARRAY

    #include "stdafx.h" #include<iostream> #include<conio.h> #include<string> using namespace std; //--------------------------------Structures--------------------------------// struct datee { int month; int days; int years; }; struct book { string bookname; string bookpublisher; string authorName; int copies; …
  • Member Avatar
    aslam.junaid786

    Marked Solved Status for ListIterator hasnext() and next() method not giving output

    In this main class I used a **ListIterator** variable, **hasnext()** and **next()** method to print LIST memebers. I created litr variable of ListIterator, I performed some functions on the list …
  • Member Avatar
    aslam.junaid786

    Began Watching String Not giving output

    package abc; import java.util.*; public class TransformCharacters { public static String changeCharacters(String string) { for (int i = 0; i < string.length(); i++) { char ch = string.charAt(i); { if …
  • Member Avatar
    aslam.junaid786

    Stopped Watching String Not giving output

    package abc; import java.util.*; public class TransformCharacters { public static String changeCharacters(String string) { for (int i = 0; i < string.length(); i++) { char ch = string.charAt(i); { if …
  • Member Avatar
    aslam.junaid786

    Marked Solved Status for String Not giving output

    package abc; import java.util.*; public class TransformCharacters { public static String changeCharacters(String string) { for (int i = 0; i < string.length(); i++) { char ch = string.charAt(i); { if …
  • Member Avatar
    aslam.junaid786

    Gave Reputation to ObSys in String Not giving output

    What you've done is great, you have literally missed one tiny detail. The replace method in String returns a new String object. Currently you are calling the method but not …
  • Member Avatar
    aslam.junaid786

    Created String Not giving output

    package abc; import java.util.*; public class TransformCharacters { public static String changeCharacters(String string) { for (int i = 0; i < string.length(); i++) { char ch = string.charAt(i); { if …
  • Member Avatar
    aslam.junaid786

    Began Watching String Not giving output

    package abc; import java.util.*; public class TransformCharacters { public static String changeCharacters(String string) { for (int i = 0; i < string.length(); i++) { char ch = string.charAt(i); { if …
  • Member Avatar
    aslam.junaid786

    Gave Reputation to diafol in ERROR 1215 (HY000): Cannot add foreign key constraint

    Why have you got: A_id AND A_song as your PRIMARY KEY (artists table) and I_id AND I_name as your PRIMARY KEY (instruments table)? Just use the IDS - no need …
  • Member Avatar
    aslam.junaid786

    Created ERROR 1215 (HY000): Cannot add foreign key constraint

    CREATE TABLE Artist ( A_id INT NOT NULL, A_song varchar(100), A_name varchar(100), PRIMARY KEY(A_id,A_song) ); CREATE TABLE Instrument ( I_id int NOT NULL, I_keys varchar(100), I_name varchar(100), PRIMARY KEY(I_id,I_name), a_id …
  • Member Avatar
    aslam.junaid786

    Began Watching ERROR 1215 (HY000): Cannot add foreign key constraint

    CREATE TABLE Artist ( A_id INT NOT NULL, A_song varchar(100), A_name varchar(100), PRIMARY KEY(A_id,A_song) ); CREATE TABLE Instrument ( I_id int NOT NULL, I_keys varchar(100), I_name varchar(100), PRIMARY KEY(I_id,I_name), a_id …

The End.