Here is the new code with the non-lvalue in assignment
#include <iostream>#include <cstdlib>
using namespace std;
void Displaylab(int *lab,int size)
{
int i;
for(i = 0; i < size;...
Type: Posts; User: erictu
Here is the new code with the non-lvalue in assignment
#include <iostream>#include <cstdlib>
using namespace std;
void Displaylab(int *lab,int size)
{
int i;
for(i = 0; i < size;...
It still doesn't work. The syntax error said non-value assismentT_T
I wondering the second part I'm calling the position of the user login in the search function. And it isn't like this dynArray[][]= 0?
if(search(Array,ID,row,r,c,lab))
It still got the syntax...
Hm... no really. Because In my search function i have search for the user login and save the position so that when I call function in the logout function it can search and logout the user forgot to...
#include <iostream>
#include <cstdlib>
using namespace std;
void Displaylab(int *lab,int size)
{
int i;
for(i = 0; i < size; i++)
lab[i] = 0;
can you give it in the example code because I'm kind of get it but kind of don't know where you mean point at@@
but the struct is the next chapter, it's not this chapter:(
that's the way I'm doing now but I get stuckT_T
I'm not sure my teacher let me using the vector because he said if you use vector you won't learn anything.?????
> 13 myPtr[i] = new int[lab[i]];
What is lab[i] here?
The lab[i] is the column because the they have 4 row but it has different cols
From the 82-86 is the labmain pointer point to other 4 small...
I have consider about using vector but i'm not comfortable to use the vector, so that's why I do it this way and here is second version i get so far, the big problem here I don't know do I need to...
at first i tried the a[i] but it didn't work but I realized i had missed the [size] for point *b.For both case it works perfectly thanks a lot:)
Here is the topic
Each user has a unique five-digit ID number.Whenever a user logs on, the users's ID,lab number,and the computer station number are transmitted to your system.For example,if the...
i figured out, it worked with *(a+i)
Thanks for helping:)
I change it to *a and it works but the function isn't running completely.
Can anyone tell me what do I need in order to store the same number become 1 and show in new array.
Example: i have...
#include <iostream>
#include <cstdlib>
using namespace std;
void search(char a,char b[], int size);
int main()
{
I don't know why my program didn't run do I miss anything? because when I try to run them, it didn't work even without any syntax error!
/* pupose: picking the character from the chunk of text, then analyst what type of that token is
*/
#include <iostream>
#include <cctype>
#include <string>
#include <cstdlib>