Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8800623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:38:16+00:00 2026-06-14T00:38:16+00:00

Doesn’t do anything, it doesn’t even let me input when I call gets(), even

  • 0

Doesn’t do anything, it doesn’t even let me input when I call gets(), even my IDE is claiming “statement has no effect”.

#include <iostream>
#include <cstring>
#include <cstdio>

using namespace std;

int main()
{
char userluv[800], fuusd[800], orig[800], key [51], priv [21];
int tempfussd[800], kint, pint, tint[5], c, lame;

//get the basic info
cout << "key? ";
cin >> key;
cout << "Second key? ";
cin >> priv;
cout << "Your lovely text?:\n";
gets(userluv);

for(c=0; c<=key[c]; c++){
    kint += key[c];
}
for(c=0; c<=priv[c]; c++){
    pint += priv[c];
}

//do stuff to your key
tint[0] = strlen(key) + strlen(priv);
tint[1] = tint[0] * tint[0];

//string to int then do stuff
    for(c=0; c<=userluv[c]; c++){
    tempfussd[c] = userluv[c];
    tempfussd[c] + kint;
    tempfussd[c] * pint;
    tempfussd[c] * tint[1];
}

    cout << "\n" << tempfussd[c] << "\n";

return 0;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:38:17+00:00Added an answer on June 14, 2026 at 12:38 am

    These three lines are statements without effect:

    tempfussd[c] + kint;
    tempfussd[c] * pint;
    tempfussd[c] * tint[1];
    

    You may have omitted the = after the + and *?

    The statements identified above occur in the loop:

    for(c=0; c<=userluv[c]; c++){
        tempfussd[c] = userluv[c];
        tempfussd[c] + kint;
        tempfussd[c] * pint;
        tempfussd[c] * tint[1];
    }
    

    If (as hinted by a comment) the += and *= is correct, you could simplify things by writing:

    for (c = 0; c <= userluv[c]; c++)
        tempfussd[c] = (userluv[c] + kint) * pint * tint[1];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why doesn't this code print operator=? #include <iostream> using namespace std; class A{ public:
Doesn't value have to return toString() to be able to call value.toString()? When do
didSelectRowAtIndex doesn't trigger when I press on cell's UITextLabel even though it triggers if
Doesn't produce a app.config . In my team there is a guy who has
It doesn't look like it has that attribute, but it'd be really useful to
Doesn't seem to be anything about this online, I need to run fetch query
Doesn't GNU C Library ( glibc ) include an implementation of C POSIX library
It doesn't seem to work: $ref = new ReflectionObject($obj); if($ref->hasProperty('privateProperty')){ print_r($ref->getProperty('privateProperty')); } It gets
Doesn't C++ offer any guarantee about keeping variables intact on input failure? With older
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.