General C++ Programming - October 2012 (Page 27)

Ascii to binary
 
Hey guys, I am trying to do a simple program where I ask the user how many bits they want to be represented, then ask what ASCII character they want to convert ...
[3 replies] Last: Why is it even possible to delete the opening post ? I guess some peop... (by closed account o1vk4iN6)
can not run sfc.exe in c++
 
hi I want to run sfc.exe command in c++. I use this code: /* Run Command with user permission */ HINSTANCE SFCSevenRun() { return ShellExecute(NULL, "ru...
[4 replies] Last: I found the answer myself: I created a project that compiled by 32bit ... (by Mohammad Nazari)
by Splux
error LNK2019... x4...
 
'elo... So... I've been trying to solve these linker errors for a couple of days now, I've googled but found nothing that helps and now I've realized that I...
[6 replies] Last: Your error smells a lot like a linking problem I have had in the past.... (by doug4)
by Mats
Appropriate Library For Card Game
 
I've been writing an AI to play a card game, but the interface is just ascii. What would you recommend as a suitable graphics library to use to make the interfa...
[1 reply] : Look up SFML and SDL. (by LB)
Multithreading conceptual question
 
Hi, I want to know that can multiple threads be processed simultaneously (simultaneously, as in completely neck-to-neck at hardware level)? Even though I believ...
[1 reply] : Each CPU, or, to be more precise, each execution unit (an Intel Core i... (by Cubbi)
C++ Video: C++ 11 in 20 Minutes
 
20 minutes video that helps you get started with the latest C++ 11 standard. Part I: http://www.youtube.com/watch?v=U6mgsPqV32A&list=PLE28375D4AC946CC3&inde...
[no replies]
Urgent need help with1+2!/(x-2)-3!/(x-3)+4!/(x-4) - … +/- n!/(x-n)
 
Write a simple program to prompt the user to key in x and n value to calculate the result for the following formula: Result = 1+2!/((x-2))-3!/((x-3))+4!/((x-4)...
[1 reply] : Urgent need question not psychic. (by Moschops)
Functions - area and perimeter
 
I am writing a program to call the functions area and perimeter. This is what I have written but am still getting an error. error C2064: term does not eval...
[5 replies] Last: Thank you everyone. Sometimes you look at it for so long and your blur... (by Natalyias77)
by sabi20
Reversing the elements of an array
 
using namespace std; int main() { int a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; for(int k = 0; k < 10; k++) { int temp = a ; // sto...
[3 replies] Last: It is enough to write one line.:) std::reverse( std::begin( a ), std... (by vlad from moscow)
Strip Non-Alpha Characters from Both Ends of String, Leave Non-Alpha Characters Inside String Alone
 
I am trying to write a program that strips non-alpha characters from both sides of a string, but leave the non-alpha character(s) inside the string alone. H...
[4 replies] Last: @someone2 The name of your function confuses users. Instead of nonA... (by vlad from moscow)
by lmd141
Unhandled exception
 
Hi there. I am currently trying to set up a coordinate system for a program I am in the process of creating. I originally set it up in the following way; do...
[3 replies] Last: Yes. You will have to change N to whatever size it is you want (looks ... (by Peter87)
Backgammon Board Game
 
Hi everyone, I've just signed up so new here :-) I'm currently a first year engineering student in New Zealand. Part of the course entails c++ programmin...
[7 replies] Last: Hi Peter87, Thanks for your help so far - greatly appreciated. It's ... (by Bevan Galvin)
How to check for derived classes?
 
Hello All, I have a base class and in a project I have some other classes which are derived from this class. Is there any command in Linux/Unix to identify...
[3 replies] Last: http://www.cplusplus.com/reference/std/type_traits/is_base_of/ (by morando)
Help need to sort string
 
how do i sort a string without using the void command just the basics im just a beginner in programming..your help will be highly appreciated thanks..
[1 reply] : What do you mean by "sort a string" ? Do you want to sort multiple str... (by AleaIactaEst)
by Hambo
error: string subscript out of range!!
 
Can someone please help me with this coding? After I press debug it executes the program but then an error message pops stating "string subscript out of range."...
[7 replies] Last: You should also consider taking advantage of the toupper or tolower fu... (by IceThatJaw)
print vector function with an iterator going too far
 
So this here function works perfectly except it is going one past and prints jibberish into my final element, and I can't figure out the flaw in my logic. Any i...
[4 replies] Last: Oh, naturally! I totally get it now, just didn't see it before (by dockleryxk)
file input and output
 
Can someone help me i am trying to create a program where it reads the text file from a user and opens the text file for input 1. counts the number of character...
[no replies]
error code c1083
 
can someone tell me what to use instead of include stdafx.h, when l build it gives me error c1083 saying cant open file directory. pls check it for me #in...
[12 replies] Last: #include "stdafx.h" #include <iostream> #include <cstring> #include ... (by noranata)
Help please!
 
What?? Someone please help me out. I can't grasp any of this stuff. I know what the program should do but don't know how to set it up. This forum is my only...
[6 replies] Last: aaronfue, the code you posted is the exact opposite of you description... (by IceThatJaw)
cpdflib library
 
Hi Guys! Wondering why I am getting these linking errors when I compile my code? HEADER File #ifdef DLLEXPORTIMPORT #define EXPORT_IMPORT _declspec(dl...
[6 replies] Last: Hi Guys, the win32pdf.h is not affected by EXPORT_IMPORT? Yes, that... (by tenpoundbear)
October 2012 Pages: 1... 2526272829... 50
  Archived months: [sep2012] [nov2012]

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