General C++ Programming - May 2013 (Page 31)

linkd List
 
The assignment is to store 5 names with the ID Number using linklist but the problem with my code is that the last name is start repeating Example Run Entre ...
[4 replies] Last: Thanks a lot you resolve my problems I change everything to string Hir... (by alexander07)
Programming issues with while(cin >> x){ /* ... */}
 
I have been having some issues with a program I am writing and I am using a while loop to compute averages like: while(cin >> x){ ++count; sum +=...
[3 replies] Last: Thanks! booradley60 that worked great :) (by MatthewK)
Convert deg min sec to radian & back using boost 1_53_0
 
Am struggling with this a bit - the comments show what I am trying to do. I find there is a lack of examples in the boost documentation. I found an example usi...
[8 replies] Last: Ok, I have it working with KRAkatau 's solution as well as that from ... (by TheIdeasMan)
by tanja
Help: Typ conversion!!!!
 
Hello, i would like to convert a float or double variable into unsigned char variable and back. float number_float = 23.453f; unsigned char* number_c...
[2 replies] Last: Let me remind you that: A float's size is 32-bit A char (unsigned too... (by S G H)
OpenGL unreferenced function
 
Hopefully someone can help with this problem. I use Codeblocks IDE + MingW compiler and try to write an OpenGL program from the book "OpenGL super bible 4th" c...
[14 replies] Last: @cire: Freeglut is working fine, I can compile and run a simple OpenGL... (by chihwahli)
Trouble with this program.
 
Having some trouble with this C++ program. I need to rewrite it so that the customer can select multiple items of the same type like: 1 Bacon and Egg $2.45 2 Mu...
[3 replies] Last: I didn't see that you were required to us a vector, so I changed the v... (by Carm)
by tanja
template parameter
 
Hello, i have following template class template <int nr = 10> class my_class{ ... }; Is there a way to use a variable by the instantiation ...
[2 replies] Last: thank u (by tanja)
by aj3423
std::regex problem, why \s\S doesn't work
 
Hi, Why this code not working? #include <iostream> #include <string> #include <regex> using namespace std; int main() { string s = "aa bb"; regex pattern...
[8 replies] Last: some dialects support [^] as real "all symbols" character class. The... (by aj3423)
1>LINK : fatal error LNK1561: entry point must be defined
 
#include <iostream> #include <math.h> #include <string> #pragma once namespace Project1 { using namespace System; using namespace System::Compon...
[1 reply] : If you are very new with C++ I would suggest starting somewhere more b... (by booradley60)
Bubblesort Template
 
I keep getting this error no matter how much I change sort. This are 3 separate files header, CPP, and main. #ifndef _MYFLOAT_H #define _MYFLOAT_H #includ...
[4 replies] Last: The error you posted is generated becouse, in line 5, you declared onl... (by Nobun)
Variadic Templated Mixin Class...
 
I've been messing around with variadic template arguments, and I can't get a template pack to expand correctly. error: invalid use of pack expansion express...
[1 reply] : bump Works fine if I use no ctor at all, but ctor functionality is ... (by Bourgond Aries)
reading a string 2 characters at a time
 
hi guys may i know how do i read a string 2 characters at a time? lets say i have a for loop like this for(int i=0;i<stringLen;i++) { for(int j=0...
[3 replies] Last: no, it won`t always be an even number. it is subjected to the user`s i... (by CLearner88)
by aruna
Inheritance program...
 
I made some changes in my previous program and tried to debug. there are no errors but i am not getting correct output. can some one please correct me where am ...
[10 replies] Last: Thank u that made me understand where i was wrong.. But still i am not... (by aruna)
Beginner
 
I am literally a beginner, I stated a few days ago. Anybody have any suggestions on good ways to learn/tutorials?
[3 replies] Last: I'll just quote what I wrote on another topic a couple of days ago. ... (by aiothjaoifaohgaio)
Why not class calling the main's function?
 
Ok guys I want your help in my programming assignment. I have two files, main.cpp and a class file, i.e. mainMemory.h I have programming struction like th...
[1 reply] : Because class does not know about this function existence. You can for... (by MiiNiPaa)
Friend function. ERROR: modifiers not allowed on nonmember functions
 
#include <iostream> #include <fstream> #include <cmath> using namespace std; class frac{ friend void print(frac& o) const; double num; double d...
[4 replies] Last: Thanks a lot Cire and Firedraco. I love you all! (by Rehan FASTian)
how to display inputed values
 
Program works perfectly fine. I input in the length, width and height. But i want it to display those values for every individual prism when i output... along w...
[2 replies] Last: double sa, v; at line 95 are being used without having been initializ... (by Rehan FASTian)
guide me to solve parking rate..
 
THIS IS THE QUESTION. 1- The user would enter how many minutes he/she would like to park in the parking lot. 2- The program would output the parking cost. 3 - ...
[4 replies] Last: hi Smac. i've not learn about #include <cmath> yet ( also i know thi... (by maggotz)
by seehat
Reading from a text file
 
Hi everyone ! just need a bit of knowledge from your overflowing stack ! :) i got an assignment to do...and in that i need to get the inputs from a .txt fil...
[2 replies] Last: @samueladams thanks alot for reply mate. our study system in australia... (by seehat)
String to Long Long
 
Hey guys. I am writing a program and one of the functions that I need to write is supposed to convert a string to type longlong. I am having quite a difficu...
[6 replies] Last: Well I am breaking it up into 10 digit parts. I have added a for-loop ... (by struzy629)
May 2013 Pages: 1... 2930313233... 47
  Archived months: [apr2013] [jun2013]

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