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

canĀ“t see outputs
 
Can't see the fail in splines method #include "mn_aritmeticas.h" #include "mn_interpolacion.h" // OPTIMAL POINTS Array1D< real > mn_puntos_interpolaci...
[1 reply] : what are you trying to do ? what is the exact problem ? is this the fu... (by closed account E3h7X9L8)
Need help C++ if and else
 
How would you write this as an if and else statement? #include <stdio.h> void swap(int *a, int *b, int *c) { int max,min,mid; max = *a>*b ? *a:*b; max...
[2 replies] Last: So this is the 4th topic about this same subject . (by TheIdeasMan)
by n1k170
Help me on a quest C ++
 
Can you tell me if I error and where ?? Defining a two-dimensional array of real numbers double precision. - How to find and index the minimum element of ro...
[1 reply] : I'll assume you #include <iostream> in "stdafx.h". Other than that, ... (by Militie)
Quick helpn needed!
 
Write the definition of a function signOf, that receives an integer parameter and returns a -1 if the parameter is negative, returns 0 if the parameter is 0...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/control/ http://www.cplusplus.co... (by mutexe)
Trouble loading proper sprite resource
 
I'm trying to get a powerup to load based off the players health. In my current state, it only loads the 'Pill'. What it should do: Laser_Fine - ph(20-16) Cl...
[2 replies] Last: That makes sense. Thank you for the response. (by Andromedine)
by SBYung
Changing My Major?
 
Hello everyone, As it stand, I am starting to become quite troubled with my major as of now. I am a sophomore this year, majoring in computer science. I sort...
[2 replies] Last: Universities generally have some sort of career counseling office, whi... (by helios)
IO Files out in the work world
 
Hey fellow programmers, how often do programmers out in the work force usually do IO file related programming? I was wondering because we were reviewing this su...
[1 reply] : Working with files? Almost everyday: loading configurations, resources... (by MiiNiPaa)
Question on C++ code
 
#include <stdio.h> void swap(int *a, int *b, int *c) { int max,min,mid; max = *a>*b ? *a:*b; max = max>*c ? max:*c; min = *a<*b ? *a:*b; min = min<*c...
[3 replies] Last: Hi, Have a look in the tutorial, it shows examples. Edit: No, never ... (by TheIdeasMan)
int **array segmentation fault
 
Hello everyone, I am trying to set the values in a dynamically allocated 2-D array like this: /* * part1.c * * @author Raul Butuc * @version 1.0.0 21/10/...
[5 replies] Last: Solved. In case anyone wonders, had to replace *matrix = (int*) ca... (by jumper007)
Need Help error balance checking program
 
.... delete
[2 replies] Last: ... delete (by coolioschmoolio)
redefinitin of ______ previoulsy declared here
 
Hello, I have this annoying error 'redefinitin of ______ previoulsy declared here', and both them point to the same line. Now I know that this can be solve...
[2 replies] Last: As @Zhuge suggested, your problem is declaring the templated functions... (by jumper007)
Help with gpa calculator
 
int test; int test1; int totalPoints; int counter; int gradePoints; char letterGrade; float gpa; // OUTPUT - Class Heading ...
[no replies]
Making a SIMPLE graph, Help
 
Hello everyone, I need a simple, clear script that plots a function (say, sinus between -pi and pi). I am using Dev-Cpp. And I am using Windows. I am ...
[3 replies] Last: I need a simple, clear script that plots a function Create a script t... (by kbw)
by isanh
Stuck in infinite loop
 
I am not sure what is making the code skip a crucial step in the program. Here's how it should work. The program asks the user to pick 5 numbers from 0 to 9. Th...
[3 replies] Last: Final version #include <iostream> #include <cstdlib> #include <ctime> ... (by isanh)
Why we use const keyword in function parameter
 
I know we use const keyword to make pointer to constant, constant pointer, etc. But what's the purpose of using const keyword in function parameters. ...
[7 replies] Last: @LB Frustum *const m_frustum; (by Ericool)
Slot machines
 
Hello. (This is my first post so bear with me) I'm trying to make a program with slot machines and I'm having problems. I want to have the user pick an amount o...
[5 replies] Last: I was desperate to fix and finish this code because I just don't know ... (by Sara Ryder)
by Wyboth
Do we still need to release 32-bit versions of our software?
 
It is now 2015 - do we still need to release 32-bit versions of our software? Most people (to my knowledge) are running 64-bit operating systems, and you would ...
[2 replies] Last: Because there are a lot of people who still have 32 bit computers whic... (by shadowmouse)
Problem: $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
 
Hello everyone, When I write this program to draw a circle in Dev-C++, I have a problem in the makefile.win at this line: $(CPP) $(LINKOBJ) -o $(BIN) ...
[1 reply] : Please read: http://www.cplusplus.com/articles/36vU7k9E/ Also, instea... (by LB)
by AnguGx
Pythagor
 
So I'm trying to find if in interval between x and y there are numbers that match the formule a^2 + b^2 = c^2; numbers have to be integers any1 can help? ...
[1 reply] : This is not a homework site. We won't do your homework for you. Howeve... (by AbstractionAnon)
by m10
Help Reading in From a .txt document!
 
I am trying to make it so that when this program reads in an empty data set it will display "No Statistics after it displays "fish collected". However I am havi...
[3 replies] Last: Thank you very much! Sorry I didn't use the code tag, this is my first... (by m10)
October 2015 Pages: 1... 7891011... 27
  Archived months: [sep2015] [nov2015]

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