Beginners - November 2016 (Page 14)

Spinner progress bar. Can't find the bug.
 
Surprisingly, this is a beginner project that I am completely unable to find a good example of or anything really. I am going back to school after some years of...
[4 replies] Last: Thank you for the suggestions and advice! I haven't touched C++ in man... (by TimmyFangs)
by Junie
Ctrl 1 and Ctrl 2 textpad
 
Ctrl 1 = Compile Ctrl 2 = Run I cant use ctrl 1 and ctrl to compile and run my code :( Can someone teach me how? Im a beginner sorry :(
[5 replies] Last: what application are you using for writing code? (by shadder)
While loop error
 
Hello, on line 50 in my else I am attempting to add even numbers between to numbers entered in by a user. My issue is that if an even number is entered, then it...
[5 replies] Last: Well done! FWIW a couple of points: 1. 'mod' is OK but '%' is better ... (by closed account 48T7M4Gy)
Code Efficiency
 
I've created a code that calculates the resistance of a resistor based on the color combination the user inputs. The code works fine but I feel like my series o...
[5 replies] Last: A few months ago, I hacked together a program that does exactly this. ... (by mbozzi)
by illst
School Courses
 
I was assigned to write a program that streams a text file. The attached file lists the courses to be offered by the BCS department for Spring 2017. It has ...
[2 replies] Last: I have not, I have just tried getting the meat of the program to run f... (by illst)
Vector Problem
 
If the loop finds a repeated number, i want to delete that number. Im not sure what im doing wrong (i am assuming all numbers are sorted). It should delete the ...
[11 replies] Last: Thanks a lot that worked. I used the first loop to fix the vector, th... (by fivestar)
by mgala
Time Travel program not working properly
 
Hello I'm writing a program which calculates the difference between two inputted times, current and target, and within conditions allows the jump or does not. I...
[3 replies] Last: Converts c to its lowercase equivalent if c is an uppercase letter an... (by integralfx)
Need faster program (time limit exceed)
 
I have the following program that checks if a number and the sum of its digits is prime. I would like some advice on how to make it more efficient. The problem...
[3 replies] Last: There are a number of methods and algorithms that can speed up your pr... (by cire)
by ovHel
C++ quiz program
 
I've created a c++ program which contains 25 questions, 4 answer choices for each, and a correct answer. 4 points are awarded for each correct answer. It runs w...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ For text files (by muffsez)
What does this code mean?
 
My professor gave us this code last class as an example and I am still confused as to what the main function is doing and what the code even does. Can someone p...
[7 replies] Last: http://stackoverflow.com/questions/1641957/is-an-array-name-a-pointer-... (by closed account 48T7M4Gy)
Password Verifier
 
Write your question here. #include "stdafx.h" #include<iostream> #include<cstring> #include<cctype> using namespace std; bool testpassword(char ,int); i...
[3 replies] Last: @integralfx do { cout << "Enter your password:"; ... (by Ratako)
URGENT!!! Help!!!hash program
 
Hello I need help with my programming assignment on hashing. I have all the parts working good separately but it just wont when I try to use it together. I'm re...
[1 reply] : What specific problem are you having? How is this urgent, anyways? How... (by Ratako)
Timed processing in a thread in a CLI app? 8ms needed
 
I'm trying to write a simple CLI app that needs to send data to another machine every 8 milliseconds (125hz processing). I have my TCP/IP connection established...
[15 replies] Last: Pass the information about the callback thread to the function. For in... (by JLBorges)
iterate through a 2D array returned by a function
 
assuming i know the length of my dynamically created 2D array, how do i iterate through it? the array is returned from the following function. int **...
[4 replies] Last: int** ary; ary = new(int* ); for(int i = 0; i < ROW; i++) { ary ... (by gunnerfunner)
How to Re run a program without exiting the prompt
 
Hello, I have a question that I can't seem to find anywhere online (probably because its too wordy when I search in google). Anyhow, I want to know how I can re...
[3 replies] Last: #include <iostream> #include <cstdlib> void clear(); int main() { ... (by boost lexical cast)
by sja
Wrong execution?
 
Could someone help me out and point out what's wrong with this code?No errors are showing up in my compiler. It's supposed to take two rational numbers and add...
[2 replies] Last: Your constructor is expecting two separate integers. Do you mean to c... (by wildblue)
Trying to use getter functions as parameters...
 
So I am trying to do this, and to be fair I'm not even entirely sure at this point if this is something I can properly do, so I'm not sure if there is an error ...
[2 replies] Last: Here: TrainingSword.setSwordWeight(getDamage(), getSwordDurability(),... (by mbozzi)
Print ascii table
 
Hi! I am stuck here with printing an ascii table from decimal. My code (and comments for doubt) is: #include<iostream> #include<iomanip> //for setw() using...
[12 replies] Last: Sorry [quote=FurryGuy]I earlier provided two other code examples, take... (by longberns)
Functions
 
Good afternoon: I am working on a code to use a function to determine circumference of a circle. The code I have so far is below. I keep getting error Er...
[1 reply] : The error message should contain also the line-number of offending syn... (by keskiverto)
by elay
aggregate struct object
 
should i still pass the object of an aggregate struct as const reference? does that still differs in performance? example: struct Point { double x,...
[1 reply] : This topic is extensively covered, try simple search like "pass by val... (by gunnerfunner)
November 2016 Pages: 1... 1213141516... 44
  Archived months: [oct2016] [dec2016]

This is an archived page. To post a new message, go to the current page.