General C++ Programming - December 2013 (Page 22)

Category Ranges?
 
Hi all, thanks for the help last time but I have another problem now. I need to input category ranges. Basically I want to ask the user to input a number betwee...
[no replies]
by Mats
Using namespaces in header files.
 
So I've been making a header file and put variables in their own namespace to avoid conflicts. My question is, do functions in the header file normally go in a ...
[15 replies] Last: This was a very helpful thread. It's too far along to change (lazy me)... (by Mats)
Query on memory-allocation semantics in "c_str"
 
Hi all. I have a query; I think it would be best if I ask my query via some code :) #include <iostream> #include <string.h> using namespace std; string re...
[2 replies] Last: Thanks Cubbi. That was very well explained.... thanks a ton !!!! Than... (by ajaygarg)
bubble sort is adding its own number
 
when i run the program the first int that is stored in the array keeps changing to -858993460. please help thank you #include <iostream> using namespace ...
[1 reply] : Valid elements are (and as you notice there's five of them): testScor... (by Catfish666)
segmentation fault
 
Hi. What is the cause for this segmentation fault I am getting? #undef SEEK_SET #undef SEEK_END #undef SEEK_CUR #include <mpi.h> #include <iostream> #in...
[2 replies] Last: Thank you (by hooshdar3)
ALGORITHM REQUIRED
 
hi, i want to make a 9x9 Sudoku solver in C++ but i'm unable to create a proper algorithm for it. so, can anyone suggest one? thanks in advance
[7 replies] Last: @Mats ?? (by NPcomplete)
Process exited with value 3221225477
 
Hello, I'm kinda new to programming. I was asked to write a program about network flow. but when i try to run my code, it returns with an unexpected error and c...
[14 replies] Last: void makeUnvisited(){ vector<bool>::iterator it; for(it=visited.be... (by nvrmnd)
Unhandled exception in .exe 0xC0000005 access violation
 
Hi all! I'm trying to run this program, but at one point it crashes and gives me the following error: Code: #include <iostream> #include <cstdlib> #inclu...
[10 replies] Last: Also, subtracting 32 from the letter is a really clumsy way of trying... (by Tresky)
Problem Getting sprite to animate with SFML
 
So this is my first try animating on my own, without a reference right in front of me. It's not working, I did check some of the projects I've made in the past,...
[2 replies] Last: oh that's a good idea, I was thinking of doing it like that somehow bu... (by twiggystardust)
array please help
 
i am programming a black jack game and i am having a problem putting the values into the strings can someone help me to solve this problem. here is what i have...
[no replies]
undeclared identifier please help
 
i dont understand why this is an undeclared identifier can anyone help me the hearts, diamonds, clubs, spades is said to be the undeclared identifier strin...
[1 reply] : Because you haven't defined them until after you tried to use them. (by Zhuge)
Need help with probability C++...
 
I've recently signed up for computer science tutoring classes to prepare for my soon-to-be-chosen major in college. So far I've learned the fundamentals of comp...
[1 reply] : Well, aside from a few strange wording choices, this is how I interpre... (by xismn)
How to update a bool in a recursive function??
 
Fixed, just had to make the bool pass as reference!
[no replies]
C++: F, C, and K temp. conversion
 
I am trying to make my first small program that will convert all of these temperatures, I think I am still a little bit off. Can I get some help? -------------...
[2 replies] Last: #include "stdafx.h" #include <iostream> #include <stdlib.h> using name... (by Firepathedian)
Function in a function?
 
Hey there, I'm working on a school project and I'm having a little problem calling the functions I need into other functions (at least I think that's what I'...
[8 replies] Last: That helps a lot thank you! Doesn't quite give me the answers that i... (by paccko137)
output problem
 
i have an address book program, and whenever i use a function to view the contact list (the information is the first name, last name, phone #, e-mail, and age),...
[9 replies] Last: I don't know if this is related or not, but this is also problematic: ... (by Disch)
Function return type template parameters cannot be deduced
 
I have this code: #include <iostream> #include <vector> #include <map> #include <string> using namespace std; template <typename T, typename U> ma...
[3 replies] Last: Many thanks from C++ newbie :) (by mateifl)
Data Compression
 
Hi, I am working on a requirement which is explained below. there will be a number of integers like 1,3,4,6,7,10,11,12,14,1,5,16 up to 8192. I am...
[1 reply] : What do you need to do? Do you need to choose a compression algorithm ... (by Catfish666)
by Hatice
facebook share
 
Hi All We have an application written on borland c++ 6. We will add share option, which will share the 3D of the design which was created by our application....
[1 reply] : Facebook has an API. I'd start there. (by ResidentBiscuit)
Problem with Game???
 
Basically my program lets the users ask a question, picks a number and then the computer "Tells the future". I want to put in file that allows the user to "chea...
[no replies]
December 2013 Pages: 1... 2021222324... 37
  Archived months: [nov2013] [jan2014]

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