General C++ Programming (Page 32)

struct: persists in memory if changed in main not function
IN the code snippet below: Change add_change_total(Change change) . . . change.nickels=+2000;...
[15 replies] Last: is there any way to use the scope operator:: ? If you want to refer ... (by AbstractionAnon)
by jsfq
Drywall program using functions
I am trying to write a program using functions. I am having trouble with two of the functions. one...
[8 replies] Last: A few comments: Line 14: A function prototype for calculate_sheets ... (by AbstractionAnon)
initializing vector of char * s
Hello, I am trying to solve this puzzle: to do that, I want...
[3 replies] Last: @MiiNiPaa thanks for the reply. I used std::string instead of char* a... (by istemihan)
Unwanted output from file
Hi, I am taking 101 data from a file and directly printing it on screen and expecting output like t...
[8 replies] Last: Thanks.... How do you know so many cool stuff?? (by programmer007)
canĀ“t see outputs
Can't see the fail in splines method #include "mn_aritmeticas.h" #include "mn_interpolacion.h"...
[1 reply] : what are you trying to do ? what is the exact problem ? is this the fu... (by leryss)
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 ...
[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 pre...
[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 ...
[2 replies] Last: (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...
[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...
[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 pr...
[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; m...
[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: /* ...
[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 p...
[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 lett...
[no replies]
Making a SIMPLE graph, Help
Hello everyone, I need a simple, clear script that plots a function (say, sinus between -pi and...
[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....
[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 pur...
[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...
[5 replies] Last: I was desperate to fix and finish this code because I just don't know ... (by Sara Ryder)
Pages: 1... 3031323334... 50
  Archived months: [sep2015]

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