General C++ Programming (Page 40)

by packy
string
 
I want to create 2 functions to (1) convert a passed string into proper case (capitalize the first a...
[2 replies] Last: 1) If you don't mind C++11: #include <string> #include <algorithm> #i... (by MiiNiPaa)
C printf() issue
 
The following code crashes the process. Does anyone know why? #include <stdio.h> int main(int...
[2 replies] Last: Thanks. Stupid mistake... :) Some rest is in order. (by aaronfjerstad)
Cannot cast from void pointer: returns always error C2440
 
Hello everybody, I having a problem which I'm not able to resovle. I try to dereference a void po...
[3 replies] Last: Thank you so much. This did the job: wqueue<Soundfile*>* m_queue= ... (by dawansch)
Can anyone help me see why my pointer function is not working properly?
 
My professor tells me that my "push_back" is not working and I get a memory error after entering a 2...
[10 replies] Last: Any tips would be greatly appreciated I still am unable to get the dis... (by ovaltine99)
Runtime error in hash table
 
I am getting a strange runtime error when trying to run my hash table program. I have it separated i...
[1 reply] : inline HTable::HTable() { TABLESIZE=33; vector<list<string>> ht (T... (by cire)
What exactly is "Binding Time?"
 
What do we mean by "Binding Time?" And what does it have to do with recursion? I have no knowledge o...
[2 replies] Last: We can use a name (or identifier) to refer to an entity. For instance,... (by JLBorges)
Error message
 
I have some source code which were build in Microsoft visual studio 6.0, this moment I am using Mi...
[1 reply] : Have you bothered to do a search? Try here: http://goo.gl/anFF0 (by AdrianH)
by kcpolo
callback for a button
 
I have made a calendar that looks similar to Outlook, and I have the next/previous buttons, but they...
[4 replies] Last: Okay, thank you! (by kcpolo)
by Ram666
Coloring cells in HTML table
 
For this program i had to create an HTML with the cosine similarities. I got everything, i just need...
[3 replies] Last: int lowest = myValues ; int highest = myValues ; for (int i = 0; i ... (by Zaita)
Array help please
 
#include <iostream> #include <iomanip> using namespace std; void get_emp_rec(int &id, double...
[7 replies] Last: The 1.4 is an example value. If you run that code the output is: 1.4... (by Zaita)
String Erase commands
 
I have gone over the commands for string.erase and searched for how to do all the things one can wit...
[9 replies] Last: I was thinking that the "npos" caused by the if statement was...i gues... (by dalydir)
Works on Solaris but not on Linux ! Any idea why?
 
Hi, I have this following piece of code: int id = 5; const char *ptrId; ptrId = ( int_to...
[2 replies] Last: Undefined behavior will not produce the same results on every kind of ... (by kempofighter)
No of sequence in an array.
 
I am trying to write a program that checks whether the number is in sequence(as in if the numbers ar...
[2 replies] Last: You should write out in pseudo-code what you need to achieve, then tra... (by Zaita)
Quadratic probing
 
How would i go about reimplementing this so it used quadratic probing? Do i just change the insert f...
[1 reply] : I'm not sure if I should help you too much since we both have the same... (by DeNial)
Rock Paper Scissors
 
could somone tell me how i could get this going. #include <iostream> #include <ctime> #include...
[5 replies] Last: Um... you mean, you haven't already? You've written code that's calli... (by MikeyBoy)
by Tresky
Building Objects
 
I have a class that is used to build another object. However, there are two methods of building this...
[1 reply] : In the first example I think Built should declare Builder as a friend,... (by booradley60)
by Tresky
Return Local Pointer
 
Hey guys. I hear all the time about the rule of not returning a local pointer, but I'm not exactly s...
[3 replies] Last: Thanks guys! Great help. :) (by Tresky)
Dinamic size of a matrix
 
Hi everyone, My purpose is to fill a matrix with random numbers. As you can see in the code, I defi...
[2 replies] Last: Oh, thanks! I didnt know such dynamic creation object...I'm gonna look... (by katalan7)
First real program
 
I have been doing c++ for about 10 days now and I made this little calculator Sorry, but I think th...
[5 replies] Last: Calling main() is bad because the C++ standard (the document that spec... (by Peter87)
"error: no match for 'operator>>' in 'std::cout >> num'"?
 
This is the only error I've been getting for my program to generate random numbers between 1 and 9, ...
[2 replies] Last: Thanks. I'm just retarded sometimes, I forgot which one to use. (by mjhenre)
Pages: 1... 3839404142... 83
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.