General C++ Programming - October 2016 (Page 13)

Pairing User Input to a 2-D Array
 
I'm having trouble finding information on this specific issue. I have a function that takes an input of User name and another function that takes the length of ...
[2 replies] Last: Thanks for the reply man. The CharType() function is supposed to sele... (by Iggles88)
Using OOP(class & method) C++. Write program full name.
 
#include <iostream> using namespace std; class FName { private:
[no replies]
Reading Pixel Data from Image
 
I'm currently using stb_image for loading images in my little game. The problem I'm running into is that I need to read the pixels (in an array) but I can't fin...
[2 replies] Last: Thanks Moschops, I was going to post back an answer that helped me as ... (by hashbrown)
counting using can.get(ch)
 
What is the output of the following code fragment? (Assume all headers files are included) int num=0; char ch; while(cin.get(ch)!= "\0") ...
[1 reply] : Answer: 15 #include<iostream> #include<string> int main(){ std::co... (by gunnerfunner)
Code::Blocks and global variables
 
I have a library that I want to #include <myheader.h> instead of #include "path/myheader.h". If I set search directory for the compiler I'll still have to us...
[2 replies] Last: You're right. I simply assumed that's not possible..for some reason. A... (by zoran404)
All posibilities question
 
Hi, i need for an project all posibilities of some numbers, rules are: 1)there's 3 diferent numbers: 0, 1, 2 2)the lenght must be of 5 characters (no more or ...
[4 replies] Last: Yes, it worked, thanks, i didnt need it as a program but it solved my ... (by CosminPerRam)
output of the following program mcq
 
What will be the output of the following program? (Assume all the header files are declared) ...
[no replies]
output of the following program mcq
 
#include<iostream.h> void main() { char a ={"Examination"}, b ={"my"}; int i ,j; for( j= 2 ,i = 5 ; a != '\0'; i++, j++) { b = a -32; } b = ...
[no replies]
Problem with IF/ELSE Project!
 
Having trouble with a project I'm working on. Here are the project details.. Problem: DESIGN and COMPLETE a program ACCORDINGLY that determines final letter gr...
[1 reply] : // Storing user's grade for exam 1 cout << "Please enter score for E... (by integralfx)
how to create one program consisting four program inside
 
how to make a program that has ( for loop, while, do while, array ) on it. example when you press 1 for loop will appear and run, when you press 2 array will...
[9 replies] Last: thank you so much everyone! :)) (by mariaaab)
Problems Writing this simple c++ prog :/ HELP!
 
Thank you!
[2 replies] Last: ne555 thank you so so so much!! I got it now (: (by asm103940)
by king16
Array
 
343 324 sf
[3 replies] Last: Thank you so much Yawzheek. It worked thanks again for the help. (by king16)
how to format outfiles with multiple input files
 
hi, I have a code here that is reading two input files and creating one output file. What i am having trouble with is I don't know how to format the output file...
[4 replies] Last: He's correct, I had the same name twice, changed it to while((!in_str... (by SamuelAdams)
Calculate the inverse of a 4x4 matrix - Why is this code not working?
 
Hello, I am trying to calculate the inverse of a 4x4, I have been thinking about it endlessly yet I can't seem to be able to do it. So I was wondering, how woul...
[4 replies] Last: Although the inverse of a matrix can be written down in terms of deter... (by lastchance)
Program freezing issue (beginnner)
 
So I have a project for my CSCI class, it involves using linked lists. We have a class Node, Class List and class student. I am having the problem in a membe...
[1 reply] : Run it under a debugger. When it freezes, use the debugger to interrup... (by Moschops)
by RobCh
Minnowboard gpio
 
The minnowboard is the only board I can find that: Runs Linux Has GPIO header Supports opengl (rather than exclusively opengl es that arm devices do) The ...
[no replies]
by cmisip
Variadic functions with multiple parameter packs, problem with brace-enclosed initializer list
 
I have this mechanics in my project. I need to call loop with any number of shared_ptr's of Behaviors and Listeners but can't seem to get it to work. If I inpu...
[6 replies] Last: So basically, you can combine multiple parameter packs if one of the p... (by cmisip)
by cmisip
How to properly call destructors on exit
 
How do I ensure that destructors are called on program exit wether normal termination or with ctrl C, or user directed? I need to properly shutdown a serial p...
[6 replies] Last: Found an issue with the above code. If for example a SIGSEGV signal i... (by cmisip)
by kmm96
I need to convert this code from pascal to c++
 
program LABYRINTH; {BACKTRACK1, i.e. depth-first, no infinite cycle} const M = 7; N = 7; {Dimensions} var LAB : array[1..M, 1..N] of integer; {Labyrinth} ...
[1 reply] : Double post: http://www.cplusplus.com/forum/beginner/199951/ (by chicofeo)
by RobCh
openGL / openGl es?
 
Do GPUs that support openGL es by default support plain openGL? I am asking for the Mali 400 mp2 (on the other https://www.olimex.com/Products/OLinuXino/A33/A33...
[2 replies] Last: Is there any way to get drivers to incorporate standard opengl? Will I... (by RobCh)
October 2016 Pages: 1... 1112131415... 23
  Archived months: [sep2016] [nov2016]

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