Search:

Type: Posts; User: pik_d

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,483

    actually, i ended up writing this: int...

    actually, i ended up writing this:


    int comp(char * char1, char * char2){
    int i = 0;

    while ((char1[i]!=(int)0)&&(char2[i]!=(int)0)){
    if(char1[i]!=char2[i])
    return 0;
  2. Replies
    15
    Views
    1,725

    i ment for you to put that in your int main() ...

    i ment for you to put that in your int main()


    #include <iostream>
    using namespace std;
    int main(){
    int answer;

    cout<<"what is 4+4: ";
    cin<<answer;
  3. Replies
    15
    Views
    1,725

    what you're looking for is a loop, there's a...

    what you're looking for is a loop, there's a while, do while, and for loop. i'll show you how to make it a while loop.

    and, != means not equal to, instead of checking for less than and greater...
  4. Replies
    12
    Views
    1,483

    i also tried something like this: int...

    i also tried something like this:


    int main(int argv, char * argc[]){
    // size array

    char * char1 = "-I";
    char * char2 = "-o";

    if (argv!=5){
  5. Replies
    12
    Views
    1,483

    can't do it that way, we haven't been taught...

    can't do it that way, we haven't been taught about the cstrings library :-(

    can't use what we don't "know".
  6. Replies
    12
    Views
    1,483

    trouble with char* equality

    int main(int argv, char * argc[]){
    // size array

    if (argv!=5){
    cout<<"baduser";
    exit 0;
    }
    if((argc[1]=="-I")and(argc[3]=="-o"){
    char * inputfile = argc[2];
    char * outputfile =...
Results 1 to 6 of 6