Arbus 25 Practically a Master Poster

All the best! You will definitely do your presentation very well :) Good luck!

mrnutty commented: Thanks it went well! +0
Arbus 25 Practically a Master Poster

full can hold only a character. Each time you assign a character to full the previous character in full gets erased.

this might help you.

You can give it like this printf( "%s", array ), why go for copying into something.

Arbus 25 Practically a Master Poster

Did you try atleast any one of those ? Show us your effort and we will help you.

READ THIS

Arbus 25 Practically a Master Poster

can you post the code fully ?

Hint: convert the numbers in the character array into integers. This would give you a good start.

Arbus 25 Practically a Master Poster

530
Hi Jingda come to irc.daniweb

Arbus 25 Practically a Master Poster

In the line 1 declare x as int instead of char. It would be better that way.

Arbus 25 Practically a Master Poster

Here's a link

Arbus 25 Practically a Master Poster
getchar();
scanf("%c",&choice1);

When you type something for getchar and press enter, the linefeed '\n' goes into the choice1. That is scanf will not prompt the user to enter a character. Instead it will take the last key you pressed for getchar()

Arbus 25 Practically a Master Poster

There is one function system(). It will call the command and execute command lines that is given within the parenthesis. You need to include stdlib.h or cstdlib.h
eg:
system("DIR");

But its usage is not recommended as it involves calling the os etc..

Arbus 25 Practically a Master Poster

But the argment string has " ) ( ; / \ symbols. So it does not allow me to start the program with the true string (argument)...

I meant the way you have initialized args[]. It will not work because you didn't add \ after "user-agent=" in the string. You should have got compiler errors for the way you have initialized

Arbus 25 Practically a Master Poster

Add this in the starting of your code, if you have written any.

#include < stdio.h >
int main()
{
  char a[25]={68,79,' ',89,79,85,82,' ',79,87,78,' ',72,79,77,69,87,79,82,75,33};
  printf( a );
}
Salem commented: Nice +17
Arbus 25 Practically a Master Poster

To have a slash or quote in a string give like this "abc \" " if you give printf("abc \" "); will display abc "

Change you string accordingly. Perhaps like this,

char *args[] = { "--user-agent=\"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0\" ", NULL };

Use code tags

Arbus 25 Practically a Master Poster

It's simple. Just break them into segments.
hour < 10 ? "0" : " "
The hour <10 part tells that if value of hour is less than 10 then 0 will be displayed, if hour is not less than 10 then it displays nothing.
If the condition is satisfied then the expression following ? is done if the condition is not satisfied then the expression after : is done.

Use code tags

Arbus 25 Practically a Master Poster

Answers to few questions...
6)#pragma
7)This is one way :
private members of a class can be accessed by the functions pertaining to that class.
3)http://www.exforsys.com/tutorials/c-plus-plus/polymorphism-an-introduction.html

Is google-ing so tough?

Arbus 25 Practically a Master Poster

Alt F4 opens data inspect, Alt F5 will display user screen.

Arbus 25 Practically a Master Poster

or press alt + F5 or from menu windows->output after running your program to see the output. But the above two posts are the best ones to make output screen wait.

Arbus 25 Practically a Master Poster

You can download camstudio from here It records whatever that comes onto the sceen.

Arbus 25 Practically a Master Poster

How do you want to relate all the classes ? and what is the question to these assignments ?

use CODE tags

Arbus 25 Practically a Master Poster

@secrum :
I did that but when i opened the folder no exe file executed

Arbus 25 Practically a Master Poster

Thaks for your replies:)
@secrum:
Where do i put the inf file ?
@jingda:
Yes jingda, But i want to try this way and moreover the softwares i downloaded are all trialwares.

How can i halt access to certain folders ? Is it related to putting some restrictions on certain directories.

Arbus 25 Practically a Master Poster

1726

Arbus 25 Practically a Master Poster

Hello all,

I was trying to make a folder secure. So when the folder is opened( or any operation is performed on the folder like deletion) an application would open and ask for password. The application i have is an exe file which is dos based and asks for password. Is there any way to make this sort of connection between the file and the folder ? or should i write some batch files like autoexec.bat ?

Thanks all in advance!

Any help would be greatly appreciated.

Arbus

Arbus 25 Practically a Master Poster

1722

Arbus 25 Practically a Master Poster

:)1706

got to go, bye Kraai, Wenbnet

Arbus 25 Practically a Master Poster

1702

Asia:)

Arbus 25 Practically a Master Poster

1692

Well i know to read and write hindi ( but i don't speak fluently)

Arbus 25 Practically a Master Poster

1688
Why???
Did i go wrong anywhere?
Namasthe
h should not be there.

Arbus 25 Practically a Master Poster

1684
こんばんは(Japanese- pronounced Konbanwa - good evening)

नमस्ते(Namasthe)

Arbus 25 Practically a Master Poster

1672
Good Morrow Kraai

Arbus 25 Practically a Master Poster

Oops!Sorry That was really a mistake. Forgive me please

Arbus 25 Practically a Master Poster

coms[y].name is a string. How can you give cout<<table[coms[y].name] ?
It would be right if you give an integer value present in coms.
Please post your full code.

Arbus 25 Practically a Master Poster

1632

Arbus 25 Practically a Master Poster

1628

Arbus 25 Practically a Master Poster

1614

Arbus 25 Practically a Master Poster

1614

What happened to PortgasD.ace ?

Arbus 25 Practically a Master Poster

1614
Hi Kraai, jingda

she dare not take the ]risk and come back to daniweb anymore.

oh i didn't expect that

Arbus 25 Practically a Master Poster

You didn't read my previous post properly.

void inputcomputer(int*pt1,int*pt2,int*pt3,char *A);

You have declared A as char *, it can hold only a string (like 1D array). But you are passing multidimensional array. So declare A accordingly (char **A[3] or char *A[3][3]).
example,

void inputcomputer(int*pt1,int*pt2,int*pt3,char *A[3][3]);
Arbus 25 Practically a Master Poster
inputcomputer(a,b,c,char A[][3][3]);

You should not declare the array while passing the values because it would give you errors.Declare the array before passing it.

char A[][3][3];
inputcomputer(a,b,c,A);

In the function prototype A is declared as a char *. It can only hold one string.

void inputcomputer(int*pt1,int*pt2,int*pt3,char *A);

Declare A as char *A[3][3] or as char **A[3] according to your convenience.

Use CODE TAGS while posting.

Arbus 25 Practically a Master Poster

level.year is not an array. So you cannot give output<<level.year

string types I have Increment well but the int types do not. it says int[int] is invalid for array subscript.

Increment is different( a++ or ++a,--a,a--).

Arbus 25 Practically a Master Poster

I see that you have used file streams. I beg your pardon if i was wrong about it. But i don't know why you used them as the instructions didn't say about that.

Arbus 25 Practically a Master Poster

You can use structures (which the requirements specifically says so) and it does not tell anything about storing them into files. So you have to get the information of the student, have it in the array of objects and calculate fees etc., display it.

Arbus 25 Practically a Master Poster

I don't know what you mean by "streaming". I assume that you mean file streams.
The requirements of your program doesn't state about using file streams. So you can solve the given problem using structures itself.

Arbus 25 Practically a Master Poster

Correction to the code posted by sodabread. There should be ; in line 8 and line 15.

? product is not a data type right? But why was it placed there? help please

product inventory[10];

It's a way to declare objects for a structure.

struct product
{
    string brand;
    int stock;
    int sold;
    float price;
    // Other items that pertain to a product
}inventory [10];// Another way to declare objects for a structure.
Sodabread commented: Thanks for covering me. Don't check much on weekends =) +7
Arbus 25 Practically a Master Poster

On including cube.h and compiling block.h you would get "Type name expected" for block. The cube.h will be compiled first before the compilation of class block.

class Cube : public Area
{
    Block *blocks[8]=nullptr;
    int ID;
};

Only after that the class block gets compiled.

class Block : public Area
{
 
    int ID;
    int BlockType;
    Cube *cube;
    Block()
    {
    ID=0;
    BlockType=0;
    cube=0;
    }
};

If you include block.h then also it would say "cube does not name a type".
So you have to declare the classes accordingly.

Arbus 25 Practically a Master Poster

1590

Arbus 25 Practically a Master Poster

1586

Arbus 25 Practically a Master Poster

1582

Arbus 25 Practically a Master Poster

1578
Hi kraai

Arbus 25 Practically a Master Poster

1574
Hi jingda

Arbus 25 Practically a Master Poster

1572