General C++ Programming - November 2013 (Page 18)

Help please? How would I go about confirming that the user entered a number?
 
So, I've been trying to figure it out for a while but I can't seem to find an answer. If I was trying to find the age of a person, say with cin, is there any wa...
[2 replies] Last: Thanks! That worked and now I know I can just use an if statement for ... (by avatarait)
Need Help!!!!
 
Hi guys I have spent a couple days trying to figure how to create these two programs with little luck can you guys please show me how it can be written I just c...
[3 replies] Last: This is what I had for number 1 #include <stdio.h> int main() { FI... (by scardoso)
class and object
 
how to make function whose add the objects
[1 reply] : Could you be more specific? (by LB)
out range error
 
Hi guys, this is is my function that deciphers lines of code. The first step to decipher is to get rid of all the same chars like aaabbbyyyy ----> aby . The se...
[4 replies] Last: decrypt.erase(n,3); <------------------------------------------------... (by coder777)
by Den163
Lee algorithm
 
I wont search realization of Lee algorithm in Game(2d turn-Based Strategy 20 x 30 cells),need AI on C++ ???
[1 reply] : Read this: http://en.wikipedia.org/wiki/Lee_algorithm Have a go. What... (by Mats)
Help with network Management code
 
Hi Everybody I've recently written a piece of code which implements ICMP and pings all available hosts on a network and logs the reply. Now, knowing who i...
[1 reply] : Problem solved : go onto this website: http://www.net-snmp.org/wiki... (by RedEyedDog)
by kbear
need advice on switch case conditions
 
Hello all, need advice pls. I need to check 3 conditions. fc, sc and so. I tried using both switch and while loop to check but it only works for the first con...
[3 replies] Last: Hey both.. just an update. I used the following method instead and it'... (by kbear)
Data structures and algorithms
 
Hi guys.I want to learn data structures and algorithms.Do you have any idea that which book is it useful for me?
[5 replies] Last: I dare to recommend you read the book _without_ examples or at least ... (by mutexe)
plz help me to solve this Question.
 
Problem Statement: You are required to write a simple “Temperature Conversion Calculator” using C++ language. The objective of this program shoul...
[1 reply] : what you got so far? (by mutexe)
.Cpp file not showing my code.
 
Hello i have been making code of a chessgame and now sddenly computer freezed and now there's not code in .cpp file! Although my .cpp file shows size of 16kb bu...
[1 reply] : Had you previously saved the file after having written your code? (by ajh32)
homework help decrypting
 
Hi, I need help with my coding and what is wrong with it. I am making a function where I have to read from a file called contents.txt and decipher the code a li...
[2 replies] Last: If you are eliminating duplicates from the entire file then the follow... (by ajh32)
Averaging arrays
 
I am trying to average the negative numbers and positive number and of course the total average. This is what I have so far. I'm sorry, I am a beginner. /...
[1 reply] : do you know what 'average' means? line 29 makes no sense. On line 34... (by coder777)
by jeb41
Help with homework, splitting strings and assigning variables.
 
so my homework wants me to take an input that is "x1888.88" and assign the "x" to a char, the "1" to a char, and the "888.88" to a float. anyone know how i can ...
[4 replies] Last: #include <iostream> #include <sstream> #include <string> int main ()... (by JLBorges)
by kbear
Sort, find duplicates and remove from vector
 
Hi, I'm trying to sort my vector, find duplicate values using unique and erase them. Program can compile successfully but the duplicates are not removed. outp...
[10 replies] Last: @Duoas: omg thank you so much! Duplicates are now removed. :D @norm ... (by kbear)
Trouble with Hash Table Sorting
 
HI I am having an issue with my sort function. This is one part of the Hash table program. The main issue is that I am trying to sort the pointer table after...
[1 reply] : Do you have to use the ptr_sort function? void HT::pTable_print ( ) ... (by naraku9333)
cannot find [file path] permission denied
 
so i was compiling a program using directx and i got one error reading "id.exe C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include Permission Deni...
[no replies]
by Gamytr
I have a Homework
 
Homework http://o1311.hizliresim.com/1h/m/upgg1.png Statement: My teacher gave an homework.but ı can not. I need help
[6 replies] Last: Herm, no. I suppose a long day at work... never mind then. (by closed account S6k9GNh0)
Multiple definition of class.
 
Hello, I have a question about multiple definition of class LoaderException. I have such code: LevelLoader.hpp #ifndef LEVELLOADER_HPP #define LEVEL...
[6 replies] Last: You're welcome :) (by MikeyBoy)
Simple Program: output problem
 
Hi, I am writing a video game and I was trying to model a SUVAT equation in basic code before I use it in more complicated stuff. The code I'm using is relat...
[1 reply] : Sorry, I just realised. it should be this: cout << "The final x o... (by Carl Ntifo)
linking against libpng_static
 
Hi, I am trying to write a c file to decompress jpeg images in android aokp source Sample from my c code: ... #include "jpeglib.h" ... int main()...
[1 reply] : Humm Tried include header with extern, adding manually local flag -ljp... (by philonto)
November 2013 Pages: 1... 1617181920... 46
  Archived months: [oct2013] [dec2013]

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