Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

doughyi8u

@doughyi8u
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • interface template not showing up in visual studio 2017 community
    D doughyi8u

    I'm reading a book on ASP.NET Core 2.0 and in one of the exercises it asks to add an interface template by right clicking on a folder and selecting Add new item. The interface type is not showing up. I've done some searching and couldn't find much on it. Can anyone help?

    Visual Studio csharp asp-net dotnet visual-studio algorithms

  • using toupper to uppercase an array index
    D doughyi8u

    I'm trying to uppercase the second word in a string of two words (a first and last name).

    int index;
    string name = "Jeffrey steinberg";

    index = name.IndexOf(' ');
    name = name[index + 1].ToUpper();

    The toupper function isn't working though. How would I uppercase just the s in steinberg?

    C# database data-structures question

  • problems returning/printing poiner
    D doughyi8u

    I understand that the reason the ret variable will not print (it's at the end of the string when destination is passed) but can't figure out how to return destination out of the my_strcpy() function. I can make this work using array notation but not pointer arithmetic. Here's the code in question:

    #include #include #include char *my_strcpy(char *, const char *);

    int
    main()
    {
    char *strA = "This is a string";
    char *strB;
    char *ret;

    strB = malloc(strlen(strA)+1);
    ret = my\_strcpy(strB, strA);
    puts(ret);
    puts(strB);
    free(strB);
    return 0;
    

    }

    char *my_strcpy(char *destination, const char *source)
    {
    while (*source != '\0')
    {
    *(destination++) = *(source++);
    }
    *destination = '\0';
    return destination;
    }

    C / C++ / MFC data-structures tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups