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

Error with Tilde Bitwise Operator
 
Let's examine the code. int x = 100; unsigned long answer1 = ~x; unsigned long long answer2 ...
[1 reply] : int x = 100; In this case ~x is a negative number. When you assignin... (by MiiNiPaa)
Use of pointers
 
When using pointers, when is it appropriate to call free ? In the following code, I allocate 4*4 b...
[19 replies] Last: Why? (by LB)
by KrtinN
Quiz Program
 
Hi, I am working on a program. There is a .txt file that has quiz questions, multiple choice answ...
[3 replies] Last: Conceptually, that is irrelevant. The file has a list of entries. Yo... (by keskiverto)
External Library Help!!!!
 
So I want to download an extrenal library called see.h. However, I'm not sure where to put this like...
[3 replies] Last: It doesn't really matter, as long as you do what I said in my previous... (by MikeyBoy)
Having Trouble/I do not know what is wrong.
 
Well, I'm trying to make a Permutation/Combination calculator and I'm getting weird errors when tryi...
[2 replies] Last: I fixed the prototypes, but now I'm having problem with the wrong outp... (by Engineering)
Switch statement
 
Not all people are lightly active, and people who exercise may need to eat more. This section adjust...
[no replies]
by begha
Efficiency: Linked list or sorting an array?
 
I have an algorithm and I want to make it as efficient as possible. Basically it just involves putti...
[4 replies] Last: > 2. Using a container to store all the numbers first, then sorting th... (by JLBorges)
by Wagari
Is Linking array content with a string possible?
 
I am trying to write a code for a simple calendar/to-do list program which prompts the user to en...
[1 reply] : std::string appoinment ; (by ne555)
How to change values of an array? then display?
 
how can i change the array value and display the updated value. for example this is the output begin...
[1 reply] : #include <iostream> #include<string> #include<map> #include <cstdlib>... (by sujitnag)
problem in search (1,2)
 
#include<fstream.h> #include<conio.h> #include<stdio.h> #include<string.h> #include<process.h> c...
[21 replies] Last: So, what is your problem? Search Menu ... (by MiiNiPaa)
Comparison of Two XML Files
 
Hi guys. I need a program that can compare two xml files for equivalency using any XML Parser .An...
[2 replies] Last: @ajh32: Do "abc" and "bac" have the same hash? XML is tricky, because... (by keskiverto)
operator[] return type
 
#ifndef MATRIX_H #define MATRIX_H #include <vector> using namespace std; template <typename Ob...
[2 replies] Last: What they try to say is that if the line 23 would return a non-const ... (by DyslexicChciken)
Temperature Program
 
How would you be able to show both outputs celsius and Fahrenheit and my temperature conversion is c...
[1 reply] : The formula for celsius -> (fahrenheit - 32) * 5/9 How would you be... (by coder777)
understanding Makefile
 
i know it's unix related, but i'm having a hard time getting some response. If anyone could guide me...
[1 reply] : Read Chapter 2: An Introduction to Makefiles in this tutorial https://... (by JLBorges)
by Olaf
how to correctly initialize instances of a class?
 
I am not a C++ wizard, so please excuse me if this question is completely stupid. I am strugglin...
[6 replies] Last: Perfect. For future reference: "uniform initialization" and "C++'s 'Mo... (by Olaf)
Bubble Sorting a linked list?
 
Hello, I am relatively new to C++ and am trying to bubble sort my linked list that creates 100 rando...
[1 reply] : There are two ways to re-order a list. You either swap values or chan... (by keskiverto)
by wahhaj
Dynamically changing array elements inside of structures
 
I'm learning pointers and references in class and I have run across what I believe to be a syntax pr...
[4 replies] Last: I got it, thanks for helping out (by wahhaj)
Key with Modifier
 
I am new to C++ , i want to know how to check if a key with modifier is pressed. When i use GetAs...
[1 reply] : Can someone help me please? (by Mora Hannover)
by JohnyL
Excel XLL returns different results
 
Hello everyone! I am using Excel 2013, Visual Studio 2015. I began learning about Excel XLL. I wrot...
[2 replies] Last: @MiiNiPaa Thanks a lot! Yes, I completely forgot that operands are c... (by JohnyL)
Output the Correct Standard Deviation
 
The program does compile the average and the mean correctly. I can't understand why the standard_dev...
[7 replies] Last: You guys are awesome!! it worked. My program is outputting the correct... (by ep7network)
February 2015 Pages: 1... 23242526
  Archived months: [jan2015] [mar2015]

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