473,386 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Why does the compiler tell me this?

4
i am getting some weird errors when i try and complie my program first being the
Expand|Select|Wrap|Line Numbers
  1.  program2.cpp:7: error: expected unqualified-id before 'A'
  2. program2.cpp:8: error: expected unqualified-id before 'B'
  3. program2.cpp:9: error: expected unqualified-id before 'C'
  4. program2.cpp:10: error: expected unqualified-id before 'D'
  5. program2.cpp:11: error: expected unqualified-id before 'E'
  6. program2.cpp:12: error: expected unqualified-id before 'F'
  7. program2.cpp:13: error: expected unqualified-id before 'G'
  8. program2.cpp:14: error: expected unqualified-id before 'H'
  9. program2.cpp:15: error: expected unqualified-id before 'I'
  10. program2.cpp:16: error: expected unqualified-id before 'J'
  11. program2.cpp:17: error: expected unqualified-id before 'a'
  12. program2.cpp:18: error: expected unqualified-id before 'b'
  13. program2.cpp:19: error: expected unqualified-id before 'c'
  14. program2.cpp:20: error: expected unqualified-id before 'd'
  15. program2.cpp:21: error: expected unqualified-id before 'e'
  16. program2.cpp:22: error: expected unqualified-id before 'f'
  17. program2.cpp:23: error: expected unqualified-id before 'g'
  18. program2.cpp:24: error: expected unqualified-id before 'h'
  19. program2.cpp:25: error: expected unqualified-id before 'i'
  20. program2.cpp:26: error: expected unqualified-id before 'j'
  21.  
and the second being that it keeps telling me that cin, cout, endl, and setw are not declared but i have the #inlcude <iostream> and #include <iomanip> at the beinging

Expand|Select|Wrap|Line Numbers
  1.  program2.cpp: In member function ‘char Llist::read_element()’:
  2. program2.cpp:83: error: ‘cin’ was not declared in this scope
  3. program2.cpp:87: error: ‘cout’ was not declared in this scope
  4. program2.cpp:87: error: ‘endl’ was not declared in this scope
  5. program2.cpp: In member function ‘void Llist::print()’:
  6. program2.cpp:103: error: ‘cout’ was not declared in this scope
  7. program2.cpp:103: error: ‘endl’ was not declared in this scope
  8. program2.cpp: At global scope:
  9. program2.cpp:134: error: expected class-name before ‘(’ token
  10. program2.cpp: In member function ‘void Llist::duplicate(Llist&)’:
  11. program2.cpp:235: error: ‘source’ was not declared in this scope
  12. program2.cpp: In member function ‘void Llist::newvigesimalnum()’:
  13. program2.cpp:303: error: ‘cout’ was not declared in this scope
  14. program2.cpp:303: error: ‘endl’ was not declared in this scope
  15. program2.cpp:305: error: ‘ReadBackwards’ was not declared in this scope
  16. program2.cpp: In member function ‘void Llist::addvigesimalnum()’:
  17. program2.cpp:324: error: ‘cout’ was not declared in this scope
  18. program2.cpp:324: error: ‘endl’ was not declared in this scope
  19. program2.cpp:329: error: lvalue required as left operand of assignment
  20. program2.cpp:331: error: lvalue required as left operand of assignment
  21. program2.cpp:338: error: lvalue required as left operand of assignment
  22. program2.cpp: In member function ‘void Llist::multiplyvigesimalnum()’:
  23. program2.cpp:375: error: ‘cout’ was not declared in this scope
  24. program2.cpp:375: error: ‘endl’ was not declared in this scope
  25. program2.cpp: In member function ‘void Llist::Mainmenu()’:
  26. program2.cpp:394: error: ‘cout’ was not declared in this scope
  27. program2.cpp:394: error: ‘setw’ was not declared in this scope
  28. program2.cpp:394: error: ‘endl’ was not declared in this scope
  29. program2.cpp:397: error: argument of type ‘char (Llist::)()’ does not match ‘char’
  30. program2.cpp:410: error: ‘exit’ was not declared in this scope
  31. program2.cpp: In member function ‘void Llist::Helpmenu()’:
  32. program2.cpp:423: error: ‘cout’ was not declared in this scope
  33. program2.cpp:423: error: ‘endl’ was not declared in this scope
  34. program2.cpp:424: error: ‘setw’ was not declared in this scope
  35.  
here is the whole program so far.

Expand|Select|Wrap|Line Numbers
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. #undef NULL //un defines anything from a class that has the same name as one of your constants
  5.  
  6. typedef int element;
  7.  
  8. const int NULL = 0;
  9. const char sentinel = '#';
  10. const char 'A' = 10;
  11. const char 'B' = 11;
  12. const char 'C' = 12;
  13. const char 'D' = 13;
  14. const char 'E' = 14;
  15. const char 'F' = 15;
  16. const char 'G' = 16;
  17. const char 'H' = 17;
  18. const char 'I' = 18;
  19. const char 'J' = 19;
  20. const char 'a' = 10;
  21. const char 'b' = 11;
  22. const char 'c' = 12;
  23. const char 'd' = 13;
  24. const char 'e' = 14;
  25. const char 'f' = 15;
  26. const char 'g' = 16;
  27. const char 'h' = 17;
  28. const char 'i' = 18;
  29. const char 'j' = 19;
  30.  
  31. class listnode{
  32.  
  33.     public:
  34.  
  35.         element data;
  36.  
  37.         listnode* next;
  38.  
  39.     };
  40.  
  41.  
  42. class Llist{
  43.  
  44.     private:
  45.  
  46.         listnode* head;
  47.  
  48.         listnode* tail;
  49.         int vignum;
  50.  
  51.     public:
  52.  
  53.         void read();
  54.  
  55.         void print();
  56.         void clean();
  57.         void ReadBackward();
  58.         char read_element();
  59.         void Inserthead(element);
  60.         void inserttail(element);
  61.         element DeleteHead();
  62.         void steal(Llist&);
  63.         void append(Llist&);
  64.         void duplicate(Llist&);
  65.         void reverse();
  66.         void Mergeordered(Llist&, Llist&);
  67.         void Printinreverse();
  68.         void Mainmenu();
  69.         void Helpmenu();
  70.         void addvigesimalnum();
  71.         void newvigesimalnum();
  72.         void multiplyvigesimalnum();
  73.  
  74.         Llist();
  75.         ~Llist();
  76.  
  77.  
  78.  
  79.  
  80.  
  81.     };
  82.  
  83. int main(){
  84.  
  85.     Llist L;
  86.  
  87.     L.read();
  88.  
  89.     //L.iniliatize();
  90.  
  91.  
  92.  
  93.  
  94.  
  95.     //constructor - is just a special kind of method which is a special kind of function
  96.  
  97.     //a constructor for a particalur class is called automatically when ever and object of that class is created 
  98.  
  99.     //the name of the constructor is the same as the name of the class
  100.  
  101.     //LList::LList()
  102.  
  103.     //a constructor ca nhave parameters
  104.  
  105.     //a constructor cannot have a fucntional value aka a return value
  106.  
  107.  
  108.  
  109. //prototypes for constructors have to be public    
  110.  
  111. }
  112.  
  113. char Llist::read_element(){ 
  114.  
  115.     char char1; //integer that will be used to check and see if the users input is valid
  116.  
  117.     cin >> char1;
  118.  
  119.     while( !cin.good () ){ //while loop that if the value is not valid will ask them to input a valid answer
  120.  
  121.         cin.clear();
  122.  
  123.         cin.ignore(256, '\n');
  124.  
  125.         cout <<"you got it wrong" << endl << "should be a valid vigisal number." << endl;
  126.  
  127.         cin >> char1;
  128.  
  129.         }
  130.  
  131. return char1;
  132.  
  133. }
  134.  
  135. void Llist::print(){
  136.  
  137.     //pre:conditions the native object llist is vaild
  138.  
  139.     //post: the native object llist is unchanged and its elemesnts have been displayed to the user
  140.  
  141.     listnode* temp;
  142.     int counter;
  143.  
  144.     temp = head;
  145.     counter = 0;
  146.  
  147.  
  148.  
  149.     while(temp != NULL){
  150.         //str.size(string name) will tell the size of the string then make a for loop that goes from 0 string size set each string char = a listnode inserthead()
  151.  
  152.         cout << temp -> data << endl;
  153.  
  154.         temp = temp -> next;
  155.         counter++;
  156.  
  157.         }
  158.  
  159.     }
  160.  
  161. void Llist::clean(){
  162.  
  163.     //pre: native object is valid 
  164.  
  165.     //post: native object LList is vaild and empty and exists listnodes were deleted and returned the the system memory pool
  166.  
  167.  
  168.  
  169.     //castaway node is a node that have no pointer pointing to them
  170.  
  171.  
  172.  
  173.     //delete operator = takes a pointer and follows it to the dynamic variable it points to and deletes it
  174.  
  175.     //delete temp;will delete the node that temp is pointing to//when a pointer is no longer to be used dangling pointer
  176.  
  177.     //dangling pointer is a pointer that used to point to a listnode but no longer does because that listnode was deleted 
  178.  
  179.  
  180.  
  181.     listnode* temp;
  182.  
  183.     while(head != NULL){
  184.  
  185.         temp = head;
  186.  
  187.         head = temp -> next;
  188.  
  189.         delete temp;
  190.  
  191.         }
  192.  
  193.     }
  194.  
  195.  
  196. Llist::Llist(){
  197.  
  198.     //pre: none
  199.  
  200.     //post: the native object llist is now valid and its empty
  201.  
  202.     head = NULL;
  203.  
  204.     }
  205.  
  206. Llist::~List(){
  207.  
  208.     //pre: native object Llist is valid
  209.  
  210.     //post:the native object llist is valid and empty and all of its listnodes have had there memory returned to the system memory pool
  211.  
  212.  
  213.  
  214.     clean();
  215.  
  216.  
  217.  
  218. }
  219.  
  220. void Llist::ReadBackward(){
  221.  
  222.     //pre and mopost are the sames as read only backwords
  223.  
  224.     char userval;
  225.  
  226.     listnode* temp;    
  227.  
  228.  
  229.     clean();
  230.  
  231.     //cout << "enter elemetns " << sentinel << "to stop" << endl;
  232.  
  233.     userval = read_element();
  234.  
  235.     while(userval != sentinel){
  236.  
  237.         temp = new listnode;
  238.  
  239.         temp -> data = userval;
  240.  
  241.         temp -> next = head;
  242.  
  243.         if(head == NULL)
  244.  
  245.             tail = temp;
  246.  
  247.         else;
  248.  
  249.  
  250.  
  251.     head = temp;userval = read_element();
  252.  
  253.     }
  254.  
  255. }
  256.  
  257.  
  258. void Llist::Inserthead(element val){
  259.  
  260.     //pre: native object llist is valid, and val is valid
  261.  
  262.     //post: the native object llist is unchanged except it now has a new listnode at its head-end contaning val.
  263.  
  264.  
  265.  
  266.     listnode* temp;
  267.  
  268.     temp = new listnode;
  269.  
  270.     temp -> data = val;
  271.  
  272.     temp -> next = head;
  273.  
  274.     if ( head == NULL)
  275.  
  276.         tail = temp;
  277.  
  278.     else
  279.  
  280.         ;
  281.  
  282.     head = temp;
  283.  
  284. }
  285.  
  286. void Llist::inserttail(element val){
  287.  
  288.     //pre: and Post: same as insert head except the new element is inserted at the tail end of the list
  289.  
  290.  
  291.  
  292.     listnode* temp;
  293.  
  294.     temp = new listnode;
  295.  
  296.     temp -> data = val;
  297.  
  298.     temp -> next = NULL;
  299.  
  300.     if (head == NULL)
  301.  
  302.         head = temp;
  303.  
  304.     else{
  305.  
  306.         tail -> next =temp;
  307.     }
  308.  
  309.     tail = temp;
  310.  
  311. }
  312.  
  313. element Llist::DeleteHead(){
  314.  
  315.     //pre: the native object llist is valid and non-empty
  316.  
  317.     //post: the native object is unchanged execpt the first listnode has been removed , that listnode's memory given back to the system and that listnode's data returned.
  318.  
  319.  
  320.  
  321.     listnode* temp;
  322.  
  323.     element val;
  324.  
  325.     temp = head;
  326.  
  327.     head = head-> next;
  328.  
  329.     val = temp -> data;
  330.  
  331.     delete temp;
  332.  
  333.     return val;
  334.  
  335. }
  336.  
  337. void Llist::steal(Llist & victim){
  338.  
  339.     //pre: the native object and victim llist are valid
  340.  
  341.     //post: the native object orginal have been "cleaned" the nativeobject has all the victim objects orginal listnodes and the victim object is empty
  342.  
  343.  
  344.  
  345.     clean();
  346.  
  347.     head = victim.head;
  348.  
  349.     tail = victim.tail;
  350.  
  351.     victim.head = NULL;
  352.  
  353. }    
  354.  
  355. void Llist::append(Llist & donor){ //donor is the list you are taking
  356.  
  357.     //pre: the native object and donor llist s are valid
  358.  
  359.     //post: the native objeect llists are unchanged execpt the native object is now an element by element combination of its own orginal elements and the donors orginal elements and the donor object is empty
  360.  
  361.     if (head != NULL)
  362.  
  363.         tail -> next = donor.head;
  364.  
  365.     else
  366.  
  367.         head = donor.head;
  368.  
  369.     if(donor.head != NULL)
  370.  
  371.         tail = donor.tail;
  372.  
  373.     else
  374.  
  375.         ;
  376.  
  377.     donor.head = NULL;
  378.  
  379. }
  380.  
  381. void Llist::duplicate(Llist & soruce){
  382.  
  383.     //pre: the native object and source llist are valid
  384.  
  385.     //post: the source llist is unchanged the orginal listnodes on the native object have been cleaned and the native object is now a listnode by listnode copy of the source llist
  386.  
  387.     listnode * temp;
  388.  
  389.     clean();    
  390.  
  391.     temp = source.head;
  392.  
  393.  
  394.  
  395.     while ( temp != NULL){
  396.  
  397.         inserttail(temp -> data);
  398.  
  399.         temp = temp -> next;
  400.  
  401.         }
  402.  
  403.     }
  404.  
  405. void Llist::Mergeordered(Llist & second, Llist & combo){
  406.  
  407.     //pre:the native object llist is valid and in acending order 
  408.  
  409.     //the second llist is valid and in ascending order and combo is a valid list
  410.  
  411.     //post: the native object and the second object are unchanged and combo is an ascendingly ordered combination of the elements from the native object and second llist
  412.  
  413.  
  414.  
  415.     listnode * temp1;
  416.  
  417.     listnode * temp2;
  418.  
  419.     temp1 = head;
  420.  
  421.     temp2 = second.head;
  422.  
  423.     combo.head = NULL;
  424.  
  425.  
  426.  
  427.     while((temp1 != NULL)&&(temp2 != NULL))// phase 1 harvest from both lists
  428.  
  429.         if ( (temp1 -> data) < (temp2 -> data)){
  430.  
  431.             combo.inserttail(temp1 -> data);
  432.  
  433.             temp1 = temp1 -> next;
  434.  
  435.             }
  436.  
  437.         else{ //temp2 -> data <= temp1->data
  438.  
  439.             combo.inserttail(temp2 -> data);
  440.  
  441.             temp2 = temp2 -> next;
  442.  
  443.             }
  444.  
  445.  
  446.  
  447. //could you use copy but only copy part of the list by multiplying by a size counter to get to the correct spot in the list
  448.  
  449.  
  450.  
  451.     //phase 2 harvest the remaining from the native object
  452.  
  453.     while ( temp1 != NULL){
  454.  
  455.         combo.inserttail (temp1 -> data);
  456.  
  457.         temp1 = temp1 -> next;
  458.  
  459.         }
  460.  
  461.  
  462.  
  463.     //phase 3 harvest remaining from second list
  464.  
  465.     while(temp2 != NULL){
  466.  
  467.         combo.inserttail(temp2 -> data);
  468.  
  469.         temp2 = temp2 -> next;
  470.  
  471.         }
  472.  
  473. }
  474.  
  475.  
  476. void Llist::Printinreverse(){
  477.  
  478.     //pre: native object llist is valid
  479.  
  480.     //post:nativeobject llist is unchanged and has had its elemtns printed out in reverseorder
  481.  
  482.     Llist helper;
  483.  
  484.     helper.duplicate(*this);
  485.  
  486.     helper.reverse();
  487.  
  488.     helper.print();
  489.  
  490. }
  491.  
  492. void Llist::reverse(){
  493.  
  494.     //pre: the native object llist is valid
  495.  
  496.     //post condition the native object llist is unchanged execpt all its elements are in its reverse order
  497.  
  498.     Llist helper;
  499.  
  500.     while (head != NULL)
  501.  
  502.  
  503.  
  504. //*this would give you what the native object is it self 
  505.  
  506.  
  507.  
  508.     helper.Inserthead(DeleteHead());
  509.  
  510.     steal(helper);
  511.  
  512. }
  513.  
  514. void Llist::newvigesimalnum(){
  515. //deletes the previous vigesimalnum linked list and makes it the new one
  516.     cout << "What is the vigesimal number you would like to add?" << endl;
  517.     cout << "Enter " << sentinel << " when you are done inputting your number." << endl;
  518.     ReadBackward();
  519.     Mainmenu();
  520. }
  521.  
  522. void Llist::addvigesimalnum(){
  523. //adds to the current vigesimalnum linked list
  524.  
  525.     char usernum;
  526.     int remainder;
  527.     element number;
  528.     Llist helper;
  529.     Llist combo;
  530.     listnode * temp1;
  531.  
  532.     listnode * temp2;
  533.  
  534.     temp1 = head;
  535.  
  536.     temp2 = helper.head;
  537.  
  538.     combo.head = NULL;
  539.     remainder = 0;
  540.  
  541.     cout << "What is the vigesimal number you would like to add?" << endl;
  542.     cout << "Enter " << sentinel << " when you are done inputting your number." << endl;
  543.     helper.ReadBackward();    //should make the numbers entered go to helper and not change the native object
  544.  
  545.     while ((temp1 != NULL)&&(temp2 != NULL)){
  546.         (temp1 -> data) % (temp2 -> data) = remainder;
  547.         if (remainder < 20){
  548.             (temp1 -> data) + (temp2 -> data) = number;
  549.             combo.inserttail(number);
  550.             //(temp1 -> data) % (temp2 -> data) = remainder;
  551.             temp1 = temp1 -> next;
  552.             temp2 = temp2 -> next;
  553.             }
  554.         else {
  555.             (temp1 -> data) + (temp2 -> data) + remainder = number;
  556.             combo.inserttail(number);
  557.             //(temp1 -> data) % (temp2 -> data) = remainder;
  558.             temp1 = temp1 -> next;
  559.             temp2 = temp2 -> next;
  560.             }
  561.         }
  562.     while (temp1 != NULL){
  563.  
  564.         combo.inserttail(temp1 -> data);
  565.  
  566.         temp1 = temp1 -> next;
  567.  
  568.         }
  569.  
  570.  
  571.  
  572.     //phase 3 harvest remaining from second list
  573.  
  574.     while(temp2 != NULL){
  575.  
  576.         combo.inserttail(temp2 -> data);
  577.  
  578.         temp2 = temp2 -> next;
  579.  
  580.         }
  581.     duplicate(combo); // should change the native object to what the combo is
  582. }
  583.  
  584. void Llist::multiplyvigesimalnum(){
  585. //multiplys the number to the current vigesimalnum linked list
  586. //easy way to do multiplication in the in program 2 
  587.  
  588.  
  589.  
  590. //take the number you are multiplying by and break it up 
  591.  
  592.  
  593.  
  594. //173 * 84
  595.  
  596. //= (173*4) + (173 * 80)
  597.  
  598. //= (173*4) + (173 * 8 * 10)
  599.  
  600. //= (173 * 4) + (1730 * 8)
  601.  
  602. // call the add method to add 173 to itself 4 time then add 1730 8 times and add them together
  603.  
  604.  
  605.  
  606. //change read_int to read_char
  607.  
  608. //use division and % for adding the numbers together 
  609.     Llist helper;
  610.  
  611.  
  612.     cout << "What is the vigesimal number you would like to multiply by?" << endl;
  613.     cout << "Enter " << sentinel << " when you are done inputting your number." << endl;
  614.     helper.ReadBackward();
  615.  
  616.     // call addvigesimalnum() to find the value of the newest input number then call addvigesimalnum again the number of time the native object is
  617.  
  618.  
  619.  
  620. }
  621.  
  622.  
  623. void Llist::Mainmenu(){
  624. //displays the vigesimal number that you currently have. then on the input you need to have something like
  625.     //command (h for help) :
  626. char useranswer;
  627. int answer;
  628.  
  629. answer = 0;
  630.  
  631. cout << "Current vigesimal number is: " << setw(5) << Printinreverse() << endl;
  632. cout << " " << endl;
  633. cout << "Command (h for help): " ;
  634. useranswer = read_element;
  635.  
  636. useranswer = answer;
  637.  
  638. if ((answer == 69) || (answer == 101))
  639.     newvigesimalnum();
  640. else if ((answer == 65) || (answer == 97))
  641.     addvigesimalnum();
  642. else if ((answer == 77) || (answer == 109))
  643.     multiplyvigesimalnum();
  644. else if ((answer == 72) || (answer == 104))
  645.     Helpmenu();
  646. else if ((answer == 81) || (answer == 113))
  647.     exit(1);
  648. else
  649.     cout << "Invaild menu option (h for help)" << endl;
  650.     Mainmenu();
  651. }
  652.  
  653. void Llist::Helpmenu(){
  654. //displays all the options 
  655.     //e enter    enter the current vigesimal number from the keyboard
  656.     //a add      add a new vigesimal number to the current vig. number
  657.     //m multiply multiply a new vigesimal number by the current vig. number
  658.     //h help     show this help menu
  659.     //q quit     quit the program
  660. cout << "Valid Commands are: " << endl;
  661. cout << setw(20) << "e enter    enter the current vigesimal number from the keyboard" << endl;
  662. cout << setw(20) << "a add      add a new vigesimal number to the current vig. number" << endl;
  663. cout << setw(20) << "m multiply multiply a new vigesimal number by the current vig. number" << endl;
  664. cout << setw(20) << "h help     show this help menu" << endl;
  665. cout << setw(20) << "q quit     quit the program" << endl;
  666.  
  667. Mainmenu();
  668. }
  669.  
any help would be greatly appreciated
Apr 7 '10 #1
1 2963
weaknessforcats
9,208 Expert Mod 8TB
You forgot using namespace std;

That will solve the missing cin, cout errrors.

This code:

const char 'A' = 10;
is not correct. Your variable names must contain only alphabetic characters, digits or the underscore. AND the name must not start with a digit.

Here the compiler sees the 'A' as the value 65 but does not see the name of a variable to create to hold the 65. Hence the error.
Apr 7 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

124
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come...
7
by: Roberta McGervey | last post by:
I have the following code: <Script LANGUAGE=vbscript RUNAT=Server> for i =0 to document.form1.elements.count-1 response.write "test" next
10
by: Rohan Hattangdi | last post by:
I get the following error message on a line that attempts to create an instance of an ADODB connection object. "Object does not support this property or method: 'Server.CreateObject' ". Now...
20
by: Scott Simons | last post by:
Why doesn't the compiler throw an error on a block of code like this: public string Email { get { return Email; } }
2
by: john nearing | last post by:
runing vb6 for 5 years, now on win xp. The above article explains how to reproduce the error ' object does not support this property' It does not provide a resolution. The program breaks on simple...
7
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
6
by: Pallav singh | last post by:
Hi All How Does compiler implement virtual destructor ??? as we all know if base class destructor is virtual..........then while wriiting statemnt like this Base * b = new Derived( );...
5
by: Aaron Gray | last post by:
Here's a big issue, does IE8 support 'this' properly on events now ? It certainly confuses things if it does ! Aaron
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.