General C++ Programming - July 2013 (Page 20)

conversion program code errors help please
 
Im very new to programming and i have to write a code to convert centimeters to yards feet and inches i have the code wrtten up and keep getting 2 errors sayin...
[2 replies] Last: Oh cool ty very much it was driving me crazy (by Jorys22)
Help With Basic Encryption/Decryption
 
while(!in.eof()) { in >> ch; char d = int(ch) + 10; out << d; } while(!in.eof()) { in >> ch; char d = int(ch) - 10; out << d; } The first ...
[2 replies] Last: thank you so much! (by hungrytacos)
by lnzsy
unordered_map's conflict resolution
 
Does anybody know how unordered_map resolves conflicts? Linear probing or chaining? Thanks a lot!
[2 replies] Last: It has a bucket interface so I guess that means chaining .... (by Peter87)
Translate to c++
 
Translate scanf("%s", &file)
[4 replies] Last: he had a different question posted which is why my stuff doesnt make s... (by closed account Dy7SLyTq)
strcpy problem, I included cstring, string, iostream, stdio etc but still my compiler says its no a member o std!!
 
so I have been trying to send the correct kind of char array down a sfml socket, but nothing ever gets sent barring of course text in "" char stringtochar[...
[5 replies] Last: that wasn't sending for some reason peter, rather fascinatingly...usin... (by devonrevenge)
by k96
some kind of Josephus problem
 
TASK 1: BUSINESS TASKS A busy businessman has a number of equally important tasks which he must accomplish. To decide which of the tasks to perform first, he p...
[no replies]
Saving Files
 
I am working on a text-based RPG game and I want to allow the player to save his progress. So I need to save several integers and a string. And my problem star...
[8 replies] Last: Okey I code 2 functions, one for saving and one for loading. But when ... (by closed account 1v5E3TCk)
Correct or Not
 
is this code is correct or not and why it's correct or not i'm confused help please template< class T> class A { } ; template< class T > class B :...
[3 replies] Last: No, this is not template specialization at all. (by Peter87)
Size of char arry
 
Hello I have function that looks like this myfoo(char* Name) Now i want to compare this name to another one . But the another name is a pointer . this my co...
[6 replies] Last: @zoran404 Thanks for pointing out my mistake, How about bool are_e... (by andywestken)
by icee
Quadratic Formula Calculator
 
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main () { float a, b, c, disc, t; int dec; cout << "We are going to c...
[2 replies] Last: Also, your complex roots will not be displayed correctly. Your roots a... (by ats15)
structure
 
So I am trying to write a program that has 3 subcategories under the category section. the subcategories are donuts, drinks and chips struct Inv { double sku;...
[3 replies] Last: I think I get where your going with this but, still kinda fuzzy on the... (by kingkong200)
How can I perform arithmetic operations with template parameters?
 
Hello all, I'm seeking help with how to use template parameters to perform arithmetic operations on objects. I feel that it would best to demonstrate my i...
[4 replies] Last: > How can I change these values to create new types using arithmetic m... (by JLBorges)
convert C to C++
 
So how do I convert these few lines to C++? char *str = new char[amp.length()+1]; strcpy (strr, amp.c_str()); -----------------------------------------...
[3 replies] Last: Thanks. (by puppymew)
How to draw a magnifying glass using <graphics.h>
 
I want to draw a magnifying glass using graphics.h which is used mostly as "Search" icon. But, I am having problems in making the rectangle attached to the two ...
[3 replies] Last: The reason you aren't getting a satisfactory answer is twofold: (1) ... (by Duthomhas)
switch statement
 
hello, i have a task that says to use a switch i have an input file that i can open the correct name and everything just when i right the switch i need it t...
[4 replies] Last: heres the instructions form the example. use a switch to accomplish. ... (by hogwheeley)
Segmentation Fault
 
I am writing this program that runs in XCode but when I compile it in g++ and execute it I get a segmentation error. After an extensive search I have found the ...
[2 replies] Last: That was exactly it. I thought I had tested for that so it did not occ... (by Aegon Targaryen)
by Mats
Finding how many factors?
 
What is the most efficient algorithm for finding how many factors a number has? I've just been doing brute force division up to (n - 1) / 2 thus far. How can th...
[5 replies] Last: [quote=Mats]What is the most efficient algorithm for finding how many ... (by cire)
Error in code
 
I am getting error in line 76 :default argument given for parameter 1 of `Array<T>::Array(int) and in line 54: after previous specification in `Array<T>::Array...
[4 replies] Last: Thank you vlad I solved it!!! (by Kristiano 96)
What to do?
 
Hi. This is one of the programs that I have to do according to my assignment: Define a class BOOK with the following members: Private Members: Bno- Of type ...
[6 replies] Last: Maybe you are doing something wrong, it would be good that you show yo... (by ne555)
Number Anagrams
 
hello everybody, i was recently working on a problem that required me to find a number and its double that have the same digits(obviously rearranged).....this ...
[5 replies] Last: If you don't know what itoa is then just type itoa in the search field... (by zoran404)
July 2013 Pages: 1... 1819202122... 34
  Archived months: [jun2013] [aug2013]

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