General C++ Programming - October 2015 (Page 25)

by mCplus
Physics program in C
 
Need help with this program in C please The distance of object (p) and the distance to the image (q) are dependent on how "curved" the lens is, called the fo...
[2 replies] Last: #include <iostream> int main() { // get p from user // get q... (by closed account 48T7M4Gy)
by JJ2828
Simple Question
 
Is call by value parameter cannot be changed by a function call?
[14 replies] Last: It's simpler than you might think: int addtwoNumbers(int a, int b) {... (by closed account 48T7M4Gy)
Help with quaternions to have model look at point.
 
Hi I'm trying to figure quaternions. If I have a Point Vector(4,3,1) with a Quaternion for example (.7,1,0.0). How do I go about it to look at something with...
[1 reply] : Try using matrices. Write your own matrix class or download? Directin... (by closed account 48T7M4Gy)
by WAKS
Pathfinding problems
 
Hello I I'm trying to implement basic pathfinding to my tile editor program. This is the first time I'm trying to implement pathfinding so I found it most easy ...
[1 reply] : ? (by WAKS)
by Kmac83
Branching
 
Hello all! I am very new to C++ and I am very confused on this assignment that I have. I have read through the chapters and watched several youtube videos bu...
[9 replies] Last: @LB okay thanks for telling me. Currently I am being taught on Turbo... (by Vibgyor)
Midterm help.
 
Create a the world’s simplest calculator. The program will add together all integers entered in by the user. It will stop adding when the user enters in a z...
[3 replies] Last: @ForTheReallys Corrrrrrrrrrrrrect! :D (by Vibgyor)
array sorting
 
there is how many ways to sort the arrays?
[3 replies] Last: If you want to get info on bubble sort, try searching. There are tons ... (by MiiNiPaa)
grep program
 
How is this program supposed to work? #include <stdio.h> #include <string.h> #define MAXLINE 10000 int get_line(char *line, int max); /* find:...
[no replies]
Program crash.
 
I'am trying to make program for lowest common denominator end when i enter 2 numbers it crashes.. What is wrong in this code? I'am beginner and its 20. Trenning...
[6 replies] Last: @MiiNiPaa @ThePopivanov I'm pretty sure you can't find the lowest comm... (by integralfx)
HELP WITH FINAL TOUCH OF PROGRAM!!
 
I already have all but it has to accept negative numbers but I don't know how: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int n...
[1 reply] : check if it is negative, if it is invert it and print a - at the end ... (by Gamer2015)
Please help!! ***
 
Hey all, New to programming here and doing a project for class. Is it possible to get an answer from a loop statement and cout it? I'm creating a grade...
[5 replies] Last: Store averages for all students in container for later retrieval: std:... (by MiiNiPaa)
queue cypher
 
You must read the COMMAND LINE* for the "shift" value. It will be in argv ... Example: a.out 13 (the "13" is passed into the executing program as th...
[16 replies] Last: Who wrote this version? Here's what getline does: http://www.cplus... (by closed account 48T7M4Gy)
Project to decrypt a txt file
 
I have to do a project for school decripting a txt.file that says "!nraB ehT nO nwoD gniraeB sretsaoT ,yadyaM ,yadyaM" i Get how to reverse the file but thi...
[1 reply] : What do you have so far? (by Zhuge)
common numbers
 
Hi! I have to create this code that is supposed to find the non common elements in two given vectors (of different lengths). Does anybody have an idea on how to...
[1 reply] : #include <algorithm> #include <iterator> //... //If you are not all... (by MiiNiPaa)
Test and Average Program Using Strings
 
Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the fo...
[3 replies] Last: I recommend keeping everything as either double or float, one or the o... (by closed account zNASE3v7)
class problem
 
#include <iostream> using namespace std; class Person {public: void set(string nameVar,double weightVar,double heightVar); double calculateBMI(); Person()...
[3 replies] Last: #include <iostream> #include<string> using namespace std; class pe... (by imii)
rotate down string
 
is it possible to rotate down C string? exmaple when user input C++ is fun sample output: it will be C ............+ ..............+ ...............i ...
[4 replies] Last: Hi mike9407 If I am not wrong then n = number of spaces, right? #inc... (by Vibgyor)
please fix this code, Thank you friends ..!!
 
Create a structure of type date that contains three members: the day of the month, the month, and the year, all of type int. Have the user enter a date in the f...
[18 replies] Last: @doug4 void print(int x) { cout<<x; } void print(int x, int ... (by Vibgyor)
Link List project
 
I have a project to do that uses Link lists and I'm somewhat confused. I think I'm up to the point where I need to call on things in my main so that I can add/d...
[1 reply] : You're doing ok, but I can see where it has become confused. You need... (by kbw)
by JNW
storing array elements in variable// now i get error segmentation fault
 
Dear i am new in c++ programming, i have written the bellow code but after running it i get some unexpected return value for two of my variables and i can't und...
[5 replies] Last: YOu have still did not change comparison with undefined vale I was tlk... (by MiiNiPaa)
October 2015 Pages: 1... 2324252627
  Archived months: [sep2015] [nov2015]

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