Beginners (Page 71)

Why do I get the wrong answer?
When I run this code I get a sum of 473 instead of a correct sum of 495. Why am I not getting the ri...
[4 replies] Last: sum = *p + arysum(++p, --size); I suspect undefined behavior (but I ... (by pheininger)
by msrt92
Convert code from java to C++
Please convert this code from java to c++ :) public class Organization { // instance var...
[4 replies] Last: Thanks You so much dear (by msrt92)
Why is my loop not working?
Why is my loop not working? Can you please help me fix it? #include <iostream> using nam...
[1 reply] : Line 85 while (dates_invalid=false); You are not checking anything... (by Pindrought)
If then Else
im trying to make this program work. it is supposed to print man when we enter male,Male,M or m and ...
[6 replies] Last: now its working.. thanks alot.. much appreciated... :) (by SohaibAJ)
Pairs with vector
Hello, I want to use std:: pair with vector, how should it be implemented? I have this so fa...
[3 replies] Last: string values to type int You want to convert strings to correspondi... (by MiiNiPaa)
by clodi
Array VS matrix
Hello, I know that I have been asking about arrays 2D arrays and matrixes for a quite a while but f...
[4 replies] Last: You have to explain more, because your code fragment merely gives an e... (by keskiverto)
by clodi
Dynamic arrays VS normal arrays
When comparing multi dimentional arrays and vectors, nobody really seem to care for normal arrays. W...
[5 replies] Last: Also dynamically sized arrays are not possible to create on stack. (by MiiNiPaa)
Palindrome Recursive Checker
I am trying to write a recursive function that checks if an array is palindrome (if it's reversed, s...
[3 replies] Last: Thanks, It's working perfectly now. (by DeathLeap)
Issue with a function that doesn't execute inside of another function.
I'm writing a program that takes in three strings ie. 123.45/N 23.44/S Location Name, then the user ...
[1 reply] : Not sure. Lines 14 and 15 of void getTotalLocations(int amountInput)... (by soranz)
Why this code is not giving error?
Why this code is not giving error? We cannot declare the same variable twice but here when the inner...
[2 replies] Last: @Esslercuffi, yeah I corrected what u said and I understood what u sai... (by thehitmanranjan)
Help needed
I'm having issues with this program; here's the description of what I have to do: The Galactic Re...
[4 replies] Last: So it seems that i forgot to ask the user to input the lifeform displa... (by JayJay007)
Fraction Calculator
Hi, so I'm trying to make a fraction calculator where the user can input anything in expressions wit...
[2 replies] Last: How exactly do you plan on parsing the input string? You're straying ... (by Esslercuffi)
Commander CLI Game playing up
Hi so I'm following a tutorial on making a CMD game with mages, warriors and archers. Everything see...
[3 replies] Last: Thank you! It was a video tutorial and the guy was going quickly, I mu... (by NewCComer)
C Program not giving correct output
This is a program in C that is not working for me. It is supposed to take a value i and also a mult...
[5 replies] Last: Ah ok thanks guys. (by Cheetofingers)
change the loop
Write your question here. // Program Looping uses a count-controlled loop to read and 02 // sum 1...
[2 replies] Last: // Program Looping uses a count-controlled loop to read and // sum 10... (by kemort)
Need help with a loop I made.
So, the assignment I have is to repeatedly ask a user if they would like to add tests and then creat...
[8 replies] Last: Cheers chree3pO, If there was only one way then all we'd have to do i... (by kemort)
program stops running in case 1
Hey Guys, i'm a student in a community college and i am taking an intro to programming using c++. An...
[1 reply] : That is because your while loop is executing infintely. It runs so lon... (by Keene)
help with program
I am writing a program where the user enters postive numbers and the program outputs the average, an...
[3 replies] Last: It is not necesary... you are alright... :D....I edited.... thanks (by Java90)
Making a Makefile
Hi! I'm trying to learn programming and I'm having some trouble with a makefile; I'm trying t...
[3 replies] Last: Um, there shouldn't be any file named "Makefile.cpp". A makefile is no... (by Duoas)
I can't get my second diver to appear
Doing a midterm assignment, and it is almost complete. The program is supposed to grade divers and g...
[7 replies] Last: I also don't know how validate the yes no at the end of the program. (by luke6386)
Pages: 1... 6970717273... 122
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.