General C++ Programming - September 2014 (Page 14)

by KrtinN
Switch Code
 
Hey guys, i am new to C++ programming and I have a task. I need to create a code so that people can input what year they started school and then it will calc...
[5 replies] Last: Just FYI, your code is pure C. If your class claims to be teaching C++... (by LB)
strange float vs double comparison result
 
float a = 1.2; and you know c and c++ says that a is not equal to 1.2 Why ??? i.e following condition results false if(a == 1.2) why a != 1.2 whereas I p...
[6 replies] Last: OMG! guys I love you so much, I love ya all. Thankyou tooooooo much fo... (by danicpp)
by sebj
Are my casts corrects?
 
Hello, I would like to incorporate the snowball stemming library (snowball.tartarus.org) to my code. This library is written in C, and I need to use some cas...
[7 replies] Last: That's better :) (by kbw)
Help with arrays!!
 
I need help with arrays. My assignment is use a 3D array to create an image. Use an array of the form arr . For this homework, you need to use an array of the...
[3 replies] Last: If everyone in the whole class is confused then the teacher has faile... (by ajh32)
Need Help with MinHeap Implementation
 
I am trying to implement a MinHeap data structure in C++. In my code I have tried to implement the following functions: 1. initialize(int v ,int n ) – Init...
[no replies]
by Kubani
Install FLTK on VS 2013
 
Hello all, Is there a correct way of installing FLTK (say. 1.3.2) on vs 2013 and get it ran below code successfully? #include <Simple_window.h> int ...
[4 replies] Last: This way I get linking errors (5 ones), one of them: Error 10 error ... (by Kubani)
Keystroke
 
So I'm trying to send 2 keystrokes to a certain program. Let's say I would like to send the keystroke "1" twice, to notepad. How do I do this, is it even possi...
[7 replies] Last: guess I just don't have enough knowlegde of c++ From VB then? http:... (by kbw)
by Taban
Tcp Server-Client Problem
 
Hi all, I have a question, In my project i have a c# application sending data as server , and there is a c++ application receiving data from that server. It...
[1 reply] : Seeing your source code would be handy. Lacking that we can only guess... (by Computergeek01)
Help with two questions
 
I am taking a intro to C++ programing, and really I am a little lost. Here are two questions I have not idea how to do. Please Help! Write a program segment ...
[2 replies] Last: welcome to c++. i would suggest to read the file reading\writing secti... (by Rabindra Hota)
Issue with template interface... need help.
 
Since I have said a lot here... I am highlighting the important stuff in bold. The rest is background information that might be useful... I recently poste...
[6 replies] Last: It does. Thanks. (by primem0ver)
Random String Generation
 
#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <ctime> using namespace std; string randstr(); int main() { ...
[5 replies] Last: #include <iostream> #include <cstdlib> #include <string> #include <t... (by closed account 48T7M4Gy)
Generating random strings
 
#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <ctime> using namespace std; string randstr(int); int main() {...
[2 replies] Last: Okay i believe I got it. But please, if you can, check back in the nex... (by MazharMustapha)
Reading two words into single char array from text file
 
I am trying to read in player names (ex: first last) from a text file into the people .name data struct. I can successfully read in my card file, but I cannot g...
[1 reply] : assuming both first and last names are on the same line of the file us... (by Yanson)
by aSzG
For Loops and If Statements
 
Hello, new to the forum and was wondering if someone would be kind enough to help me. I need the user to enter 10 numbers. If the numbers they enter are in ...
[13 replies] Last: You can, but it's effectively the same as using a boolean. A boolean ... (by LB)
Pointer cause overhead?
 
Does uses of pinter in char type cause extra overhead?
[7 replies] Last: thanks all (by csstudent123)
Test for class operator?
 
I am writing a template class that relies on the existence of certain class operators in order to be valid. (Basically a heap template that relies on > and <)....
[4 replies] Last: Thanks JLBorges. That is exactly the kind of thing I was looking for (by primem0ver)
Are these two good?
 
C++ Primer - Stanley B Lippman, Jose Lajoie, Barbara E Moo Accelerated C++: Practical Programming by Example - Andrew Koenig, Barbara E Moo I'am still a n...
[1 reply] : http://stackoverflow.com/a/388282/1959975 (by LB)
Help with ceasar cypher
 
// //Position: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 //English: a b c d e f g h i j k l m n o p q r s t u v w x...
[2 replies] Last: What is up with the 's? By the way arrays start at index 0 not 1. So ... (by giblit)
C++ Total Price Program
 
I would like to make a program for calculating the total price of a game station, and a game. I made a program like this for just the price of a game in class, ...
[7 replies] Last: maybe you should try reading about Switch, if-else, or conditionals. ... (by jemeripol)
Overflow/Underflow detecting functions!
 
I am performing arithmetic operations on very large integers that operate around the threshold of the maximum positive integer an int variable can handle (i.e...
[5 replies] Last: error-detecting functions to detect overflows/underflows in simple ar... (by MiiNiPaa)
September 2014 Pages: 1... 1213141516... 28
  Archived months: [aug2014] [oct2014]

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