General C++ Programming - October 2011 (Page 30)

by Thanz
How much difference in ASP.Net n C++ ???
 
Please tell me how much difference in ASP.Net n C++ ???I wona to learn both at the same time.
[6 replies] Last: OK..Sir..tyx (by Thanz)
by NewDev
Simple Query!!
 
Hi Friends, I came across one of the code snippets on some web portal.I am not sure if something like assigning an address of derived class object to a base ...
[1 reply] : Looks pointless to me The functions getJ and setJ cannot be accessed ... (by mik2718)
by homsta
How to make a vector with my own type "customer"
 
I've made this class customer that has a vector of type customer. I'm trying to figure out is how to access the elements of a vector of that type. My customer t...
[2 replies] Last: > but when I see a vector like accts it displays address that is bec... (by ljs)
by emc2pp
writing string to binary file (c_str() not working)
 
Hello guys, I am trying to write a list of strings to a binary file: string ab, ac, ad; ab = "fly"; ac = "above"; ad = "the_rainbow"; ofstream on; o...
[2 replies] Last: thanks allot for your answer, but now, if I want to convert back my o... (by emc2pp)
Question about Statistics
 
I'm writing a header file specialized for working with statistics. I'm a little rusty with my statistics information and was wondering if anyone would mind taki...
[3 replies] Last: So does this mean that no one is interested? (by Nerdy314159265)
Friends letting me down
 
I've got a problem with friend functions in classes. Code: class c2; class c1 { int i; public: void func(); friend c2::func(); } cla...
[9 replies] Last: thanks guys, that's helpful I was hoping there's some easy way to for... (by jaczula)
How does this work?
 
I was testing something randomly and plugged this in and it works. I don't know why because nothing I've read suggested it would. #include <iostream> using na...
[4 replies] Last: Okay, I'm just curious is there any way to read any spot on the memory... (by Nerdy314159265)
overloading << operator
 
Dear Friends, I have created overloading << operator as a global function, which prints vector of uint8_t in hexadecimal representation. ostream & operat...
[2 replies] Last: Thank you very much. It works perfect. (by Jehoszafat Zimnowoda)
by Yoh
The average in array
 
Enter an array a of n elements. k is an integer. Find the longest consecutive sequence in the array a is equal to the average value k and the first value ...
[2 replies] Last: Do u know data structures or algorithms this exercises??? Thanks u ver... (by Yoh)
Question about making a program
 
Ok so I don't know how to program this one soo I'll ask :3 so here it goes i don't know how to explain it but I'll illustrate it as hard as I can. its a progr...
[1 reply] : http://www.cplusplus.com/articles/DjGEy60M/ http://www.youtube.com/wa... (by Pyrius)
by xNutty
Validation problem
 
can anyone help me out with my coding? im new to c++ and need a lot of guidance here is my code: #include "LocationData.h" #include <cctype> #include ...
[1 reply] : hi, why don“t you use breakpoints and step by step execution of your ... (by ljs)
SDL keypress problem
 
Because the offical SDL forum have some approval before you can write on their forum so I'll try here. Is there any specific code with SDL so you can cancel ...
[3 replies] Last: The problem is that your logic is tied too tightly to the input method... (by helios)
reducing memory usage
 
hello, i am developing a project in which i have used many classes. for creating classes i have used the new operator...example, in banana class i have an ins...
[1 reply] : I'm surprised that doesn't crash the program. banana::index isn't made... (by helios)
by jace10
Integer value getting lost somewhere
 
Hi all, I am trying to write a program which creates a list of player object and then prints the id's of them (should be 0-10) but my output is: id = 1973...
[2 replies] Last: That seems right, any ideas how to fix it? Google proves unhelpful and... (by jace10)
end of file found to soon
 
why my c++ program find eof when there are more characters to be read? void step2() { ifstream in ("D:\\code\\out1.txt", fstream::in); ofstream out (...
[1 reply] : I made a few changes to your code which may fix your issue. First, th... (by Galik)
Mat class
 
I have never seen this before. I get no compiling errors but when I run this, the values in the Matrix are "nan". Here's the code (I've omitted some code to mak...
[3 replies] Last: Some comments on it: 1) initializing a matrix with zero rows and zero... (by tition)
5 card poker evaluator
 
Hey guys This is my first post here as i just started my programming course and im loving it so far though it is driving me crazy as you can see from my id. ...
[1 reply] : Sorry couldnt write more so heres what i need help with. Anyway im cr... (by Drivemecrazy)
Counting up in binary/binary data type?
 
I wrote a program and part of the program counts up in binary. But it does it by counting up in integers and converting each integer to binary. Obviously, this ...
[no replies]
Invalid Initialization Error
 
Soo who can help me with this...I'm still learning the in's and outs of OOP, mostly methods and how to declare them. Here's the error: In file included fro...
[2 replies] Last: Ok. I don't know why I didn't bother to look at that. I think I assume... (by afdave14)
Linker error undefined reference to 'program'
 
Using DevC++ and trying to compile my program. Keep getting an error message each time I try. No idea how to fix this am fairly new to C++ so any help would be ...
[1 reply] : You must define those functions in a correct manner.. : double lengt... (by namcs)
October 2011 Pages: 1... 2829303132... 36
  Archived months: [sep2011] [nov2011]

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