General C++ Programming - September 2014 (Page 15)

C2065 Undeclared Identifier, Pointers and stuff
 
I have this function: Monster MonsterDB::*find(const std::string& name){ for (MonsterDBNode *p = first; p; p = p->next) //C2065 on 'first' { //stuff ...
[2 replies] Last: Apparently so, and i understand why now. Thankies. (by Sabomoth)
by zxrp
Templates - Defining and Implementing Operator Overloading
 
Hey guys, I'm struggling a bit to combine templates and operator overloading. I'm writing a program that will be able to perform various matrix arithmetic at...
[4 replies] Last: @JLBorges, thank you very much for your help and info! That helped me... (by zxrp)
CurlCpp
 
So I'm pretty green when it comes to C++ and I'm now at the point I want to try and use CurlCpp. But where do i start?? what library do I download and how do I ...
[1 reply] : Found some useful information here: http://curl.haxx.se/libcurl/cplus... (by zxrp)
Searching & Sorting Help
 
Need someone to overlook my code and double check if i did my assignment correctly. Write a program that prompts the user to enter the number of elements and...
[2 replies] Last: Lines 94-132 compute the number of matches but I don't see that requir... (by dhayden)
Robot arm simulation (techniques,advices)
 
Hi community of cplusplus! I'm looking for some advices to getting started with a graphic programming related subject. This is my last semester in my el...
[no replies]
by mmoy
Addition error?
 
Hi, so long story short im trying to code a program that takes in user inputted data about percentages and using it to later on calculate a final grade. 4 perc...
[1 reply] : How about posting the actual code, in your post, inside code tags, so ... (by jlb)
A dp task (i think) i cant solve
 
TASK STATEMENT: you are given an array of N integers you should find 2 sub-arrays of consecutive elements with maximum sum.sub_arrays must not overlap, sum can...
[2 replies] Last: http://en.wikipedia.org/wiki/Maximum_subarray_problem (by keskiverto)
I have learned C++ and Java, Which is the best place (App developing, pc software, web) to start programming?
 
I know C++ and Java. I can do all the exercises given on the tutorial. But this is only basics and I need to know how to put together the basic operations and ...
[1 reply] : C++: Make a game. Anything that interests you is good. I recommend usi... (by LB)
send post request method
 
can someone help me on how to send post request using c++? i want it straight forward without any library because i am always having errors with libraries.
[1 reply] : There is no way to do it without a library. The C++ standard library d... (by LB)
Using getline multiple times on one line of input
 
I've been stuck on this for hours, and have scoured the internet for any insight on this particular issue with no luck. I'll simplify the problem here. I ...
[6 replies] Last: If you have a free choice, I'd go for the get() rather than getline() ... (by Chervil)
calculate total no of comparision using selection sort?
 
kindly tell me where and how to put comparision condition in order to caculate total number of comparision in selection sort static void selectsort(int data...
[1 reply] : You have comparsion on line 15. This is only one. You just need some k... (by MiiNiPaa)
send request via post method
 
how do i send post with data to a php page on the net using c++? im using this for a file uploading site for my school group. and also, im planning to pass this...
[5 replies] Last: thanks, ill check it out and get back on you when im done. (by CountVlad)
Share good error reading habits
 
###Hi, Programmers and Developers! **Errors are really annoying after editing source code.** Badly, for a complete awareness of errors, compiler or some inte...
[12 replies] Last: @Rabindra Hota It is true and this is a good habit. (by wangimagine)
how can i test a programs by using files with tests
 
guys i want to ask how to test a program by using files containing tests and with a go file i think. please tell me if u know a way.
[1 reply] : As long as your program reads it's input from the parameters passed to... (by Computergeek01)
How to copy a string to an array?
 
#include<iostream> #include<string> using namespace std; int main(){ char char_array ; int ascii_array ; char user_entry = ' '; strcpy(cha...
[3 replies] Last: Hey; Use a vector, you no need to maintain the index for the array. Yo... (by Rabindra Hota)
pointers, binary data, and shifting
 
unsigned short foo = 1337; //since unsigned short is 2 bytes, a char x should be enough to hold the binary data char foo2 ; How do I have foo2, conta...
[4 replies] Last: definitely very good to know. thanks MiiNiPaa! (by roger911)
need assistance with matching colors
 
need assistance with a project im doing for class its matching colors basically my problem is how to go about using a delay bc u have to ask the user for how mu...
[4 replies] Last: Do you mean pass by reference? What is it you're having trouble with ... (by Yay295)
by Chance
Security vulnerability question
 
My professor at college stated that it is important to always initialize a function type because if you don't it creates a security vulnerability. He said that ...
[4 replies] Last: Thank you guys for your input and wisdom. (by Chance)
error: expected initializer before ‘void’
 
Well every time I try to compile my code using make command I get this error... and help? // ===============================================================...
[16 replies] Last: // ==================================================================... (by darklord1)
how to use recursion to send alphanumeric characters onto a stack and a queue?
 
Literal homework text: " ...Using recursion, add each alphanumeric character to both a stack and a queue. Using recursion, pop a character from the stack a...
[no replies]
September 2014 Pages: 1... 1314151617... 28
  Archived months: [aug2014] [oct2014]

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