« first day (75 days earlier)      last day (2784 days later) » 

3:28 AM
@milleniumbug ;)
0
Q: Write28 dosent always write .

amanuel2I have a problem with this Write28() function i have , which writes to ATA Driver(HDD Driver) , in 28 Bit PIO Mode. Well , first you can see in my kernel.c++ here i call it: ret_chr_arr file_contents=filealgo.File_to_char(sampleFile); ret_chr_arr math_wkst_file= filealgo.File_to_char(another...

Help Would be appreciated.. God it took so long to type that question up! I hope i dont get much hate!
 
 
10 hours later…
1:21 PM
hey guys!

I have a weird question. I can't use c++ I can only use C..

what should I do when I initiate
Char banana[40] = " ";

and I would like to put "I love banana\0"; into it. I got an error with banana = ".....";
have one?
 
2 messages moved from Lounge<C++>
@Jean-philippeEmond strncpy, next
 
or your regular memcpy
 
Hi @sehe, I can't use external library except stdio.h
homework..
 
Well. Good luck with your homework.
I hope you can use a for loop.
 
so you have to do whatever strcpy does, but manually
see above
 
1:24 PM
ok
i'll read on it
 
2:19 PM
another weird question about float..
I create a function with a return a+b (2 float..)
And it return wrong value:
22.22 + 22.22 = 44.439999
http://pastebin.com/7cJuGwA5
 
3:01 PM
ho.. yes.. you right. thanks @milleniumbug
 
 
4 hours later…
6:38 PM
@Jean-philippeEmond yea.. You basically can't use any libs other than STDARG and STDINT.. In osdev.
/o
 
 
1 hour later…
7:51 PM
hi...i'm new here. I've got a homework on matrix operations with c++ classes and operator overloading..Problem #1
Matrix Operations
In this problem you need to implement a class to represent a matrix as follows:
Private information:
• Store row and column size of the matrix in 2 private variables.
• Keep a 2D array to store the matrix. Length of the array in each dimension should be 20 units.
Public information:
• Write a constructor that takes the row and column size as input. Update your private members so that all the elements of the matrix of the specified size become 0.
i've solved it but not sure of it
 
iiv
Hello! I have a quick question: someone says I shouldn't use namespace std; why?
 
nwp
1272
Q: Why is "using namespace std" considered bad practice?

akbiggsI've been told by others on numerous occasions that my teacher's advice of exercising using namespace std in code was wrong. Hence, we should use std::cout and std::cin. Why is using namespace std considered bad practice? Is it really that inefficient or risk declaring ambiguous variables (vari...

 
iiv
Ok thanks
 
Can someone explain this dude @Risav .. why using namespace std; is considered bad practice?
In this place <http://chat.stackoverflow.com/rooms/85048/teenage-territory> .. Thanks
 
2 messages moved from Lounge<C++>
 
 
3 hours later…
10:33 PM
> Write a method to print the matrix. If the matrix is an invalid matrix (e.g. row and/or col. size is 0), then print “INVALID MATRIX!!!”
Oh god. That bad teacher smell
 

« first day (75 days earlier)      last day (2784 days later) »