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

compile error
 
this code has an error // a is an object with an string called name printf("%s",a.nmae);
[2 replies] Last: Assuming it's not a typo, then you're passing a std::string to printf(... (by duky)
by tommyo
check input and store value in array
 
This program works but i need to build an additional loop that will re-prompt a user if his initial entry (int y_n) is other than 'Y', 'y', 'N', 'n'. For instan...
[1 reply] : Please use code tags. You can get them from the <> button to the right... (by Albatross)
help with first time boost user
 
so this is the first time i have used boost, and im getting a bunch of errors. i know it is this function because i compiled before writing it and it went fine ...
[16 replies] Last: ok ill give it a try. thanks (by closed account Dy7SLyTq)
by Aadc
Insertion Sort Algorithm with comparison counter
 
So I have an insertion sort function implemented that sorts through an array, but I'm having a problem showing the correct number of comparisons to work. Each t...
[3 replies] Last: for (int i = 1; i < numOfElements; i++) { for(int k=i+1;k<... (by Shren)
Using void functions to display arrays
 
I want to write a code that gets three values from the user and puts them into three arrays. When the user enters -999, I want to print out a chart showing all ...
[2 replies] Last: Line 25: I think I may have confused myself here. The goal is to get t... (by rycbarott)
binary search algorithm
 
In the below example, a binary search function decides if a particular value x occurs in the sorted array v. The elements of v must be in increasing order. The ...
[7 replies] Last: This was actually a book on C and it was a minus not a plus. It was sc... (by johnmerlino)
Friend function of a class template
 
"A friend function of a class template must be a function template specialization." - True or false ?
[2 replies] Last: Have you tried writing up a bit of code and seeing if it compiles? (by Zhuge)
by print
error int[int]
 
... void split(const int array ,int length,int & even_array,int even,int & odd_array,int odd) { int count_even(0); int count_odd(0); for (...
[4 replies] Last: yeah.. i change it into pointer and it works.. thanks.. (by print)
Homework Assistance: Using Pointers instead of Indexes for Arrays
 
I happened to miss a few classes before an exam, so while the class was going over pointers, I was busy studying for the exam. So I need help with the basics to...
[1 reply] : This website has (in my opinion and I may be more than a bit biased) a... (by Albatross)
by Jarzzz
Structures - Reading from file
 
#include <fstream> #include <iostream> #include <iomanip> #include <ostream> using namespace std; // This program reads records from a file. The file...
[3 replies] Last: Finished (by Jarzzz)
Tile Map(unknown reason for unresolved external symbols)
 
So I tried to make a tile map function to display my map as tiles. I keep getting unresolved external symbol errors, I've included the header file, and used eve...
[8 replies] Last: So naraku, i took that out. And I did try moving line 25 above line 8,... (by twiggystardust)
C++ programing error help!
 
Error messages: 3 IntelliSense: identifier "_TCHAR" is undefined 2 IntelliSense: cannot open source file "stdafx.h" 1 error C1083: Cannot open include...
[2 replies] Last: ok (by paco12345)
Programing Polynomial with Array
 
aaa
[1 reply] : You have a mistake in Monomial where you encode the coefficient as an ... (by pilotmm)
Can anyone help please
 
okay so I have to write this nested loop so that it outputs a V, i am having a hard time getting the rest of this v. I only can get the \ part of it, but cannot...
[3 replies] Last: Thanks Onts' now to get a inverted V, i will have to change around wi... (by grosen33)
Sorting alpha characters, not ASCII?
 
Hey guys, I am looking for a way to sort a string just by the alpha characters, not by the ASCII table. Therefore string sort(string name) { sort(name.be...
[7 replies] Last: My professor actually hasn't really taught us arrays either yet. I am ... (by MJGilbert)
by omid88
Calling constructor inside another constructor (No matching function to call...)
 
I've written an Array class to create 1d,2d and 3d array and it works fine for every test : example of the constructor of the array class for 2d case: Array::A...
[2 replies] Last: It did not work. But the problem was solved by adding a default constr... (by omid88)
by LB
Alternative to missing <codecvt> header
 
Sadly, MSVC is ahead of GCC - libstdc++ does not yet support the <codecvt> header, so we can't do this in GCC: http://stackoverflow.com/a/4786824/1959975 So...
[3 replies] Last: Unfortunately libc++ is not supported on Windows, and using boost is c... (by LB)
by LB
std::basic_sreambuf::setp 2 args vs 3 args
 
http://en.cppreference.com/w/cpp/io/basic_streambuf/setp http://msdn.microsoft.com/en-us/library/vstudio/y23hd8dd(v=vs.90).aspx My streambuf header:[code firs...
[3 replies] Last: Thanks, I got it figured out. (by LB)
New API hooking in C
 
Ok i started to new coding with C, so i decided to code something So lets begin, i started of with this code. #include <windows.h> #include <stdio.h> ...
[3 replies] Last: i am quite new to API programming no your not. the standard c librar... (by closed account Dy7SLyTq)
by JAAFAR
error: 453 - Can't find dll entry point
 
Using VC++ 2010 Express I am creating a dll to export a simple Multiply function so I can use it in Excel/VBA These e are the steps I am following : . Cre...
[2 replies] Last: You know how regular binary files need a function titled "int main()" ... (by Computergeek01)
November 2013 Pages: 1... 3435363738... 46
  Archived months: [oct2013] [dec2013]

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