General C++ Programming - September 2011 (Page 18)

by Gldnbr
DEC to BCD (conversion)
 
I have to convert a decimal number (1-255) to packed binary-coded decimal. I have the idea of how it's supposed to work. Example: Convert 133 to BCD 1. ...
[9 replies] Last: It doesn't matter what all the getline () and stringstream stuff do... (by Duthomhas)
by Prabu
libcurl
 
prabu471@gmail.com Hi,I am Complete beginner to C++ language.I am using NetBeans IDE 7.0 to workout my programs.I have installed code Blocks to compile m...
[4 replies] Last: yes,am sure that i have specified "curl" library. (by Prabu)
How do you read a specific line from a text file
 
I need to read line 180 of a file... I'm having trouble understanding the model from the tutorial...Here is my code, basic file in/out...How do I read a spec...
[8 replies] Last: I used a similar method to that of Disch's...added a count to the whil... (by paulmcco)
collisions at map
 
Hi. I know that an ordinary way to solve the collisions problem in a hash table is by means of a linked list. My question is: how does c++ solve this proble...
[2 replies] Last: Yes, you're right. I was wrong. I thought than once you insert a pair ... (by luirro777)
Adding/Spawning an Object
 
I've been trying to figure this out for days: how would I go about spawning/adding an object in c++. To clarify, I have a pong game I made in C++ with GLUT, and...
[14 replies] Last: Thank you, I never would have known that because without the static I ... (by BrokenSilenceDev)
let's solve this geeks
 
Hello Chaps, Plz do ur best to help me I am a bit frustrated, can we solve this check function ?? The summary of this question is exist at the end in BOL...
[1 reply] : Normally people won't outright give you answers anyways, but name call... (by ModShop)
Newton's Cubic Equation Solver code
 
Hello, everybody. I'm trying to change some code from a library when stepped on a implementation of a cubic equation solver based on Newton's numerical metho...
[no replies]
Min Not Working
 
double sum = 0; double max = 0; double min = 0; do { myFile >> x; sum += x; if (!myFile.eof()) { cout << x << endl; count...
[4 replies] Last: Awesome, that worked like a charm. (by Winston12)
Error with Expression
 
I am trying to calculate the average and when I use double sum = 0; double sum += x; double average = sum/count; I get an error on the double sum += x; I a...
[9 replies] Last: Another hitch though, when the program runs, I get the average only wh... (by Winston12)
seai/o device
 
please help i am looooooozin sleep over this I am looking for some software that will count the pulses from a flow meter via a sei/o device (digital in / ou...
[3 replies] Last: I might be asking that. In other words, how would siocmd count the pu... (by kooth)
How to use interface types in lists
 
Hi, I'm creating a C++ gui client with FLTK and I need a little help with lists. I have a container that is supposed to host multiple widgets. The idea is to...
[2 replies] Last: Thank you so much! I will try this out immediately. (by MrOnion)
Linker issue.
 
Hi i have brobelm while compiling the program. i`m getting this error: 1>Library.obj : error LNK2019: unresolved external symbol "public: __thiscall StudentN...
[1 reply] : It's because you haven't provided a definition for StudentNotFound 's... (by closed account zb0S216C)
Min Max and Average
 
Hello, I am having trouble doing the min, max, and average of a program that takes a file with ab unch of numbers and outputs them until the console window is f...
[no replies]
Error lvalue
 
Hello, I am doing a project for college lab that requires taking a random file with a bunch of numbers in it, ask the user what the filename is, and output the ...
[6 replies] Last: Thanks a bunch! And I'm pretty new to programming, I am only basing h... (by Winston12)
Help in Sorting an Array of strings on the basis of Numbers in the string
 
I have a .txt File that will hold data in the format: Name: Some Name Time: Some Time Score :- Score It has many lines of such Text, each terminati...
[7 replies] Last: Thanks Both! I am sure I could have designed the class by myself after... (by Nisheeth)
Strange Issue in C code (1,2)
 
I have a strange issue in the following code int* call() { int x = 8; printf("%x \n",&x); return &x; } int main() { int *p; p = call();...
[23 replies] Last: Exactly. If the behavior was defined, the standard would say, for exam... (by helios)
Weird Seg fault
 
Hello, I'm getting a weird segFault.. I'm stumped on why its happening... here is some of my code main.cpp ... Ground * grounds ; int main () { grounds ...
[4 replies] Last: Yeah, I got a hacky fix to work. int groundNum = -1; // Create a bla... (by strongdrink)
find_if() in list
 
Hi, i have a ques... is it possible to implement a function, member function of Library, that gets a long id; and returns Student stud; that has the same id,...
[2 replies] Last: thnx man, it helped. i have another brobelm while compiling the progr... (by aymanbah)
iterator of nested template
 
In the following simplified code: #include <iostream> #include <list> using namespace std; template <typename Object> class foo{ private: ...
[2 replies] Last: thank you, that worked :) (by piyushkumar)
Confusing Pointer arithmetic
 
/// \ ARGUMENT STRING unsigned char hex = { 0x2D, 0x6D, 0x20, 0x74, 0x6F, 0x6D, 0x74, 0x6F, 0x6D, 0x5F, 0x75, 0x74, 0x72, 0x65, 0x63, 0x68, 0x74, 0x5F, 0...
[4 replies] Last: Pointer difference always returns element difference, not byte differe... (by helios)
September 2011 Pages: 1... 1617181920... 31
  Archived months: [aug2011] [oct2011]

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