Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: earlyriser
Forum: C++ Apr 9th, 2007
Replies: 8
Views: 1,214
Posted By earlyriser
Thanks for your reponses WaltP and vijayan121. I will try this code and return here to comment it.
Forum: C++ Apr 7th, 2007
Replies: 8
Views: 1,214
Posted By earlyriser
Thanks ft3ssgeek and Waltp.

Does strtok works with int values? In the sites I have visited there isn't information about it.

The number of items in every line will be the same in the same...
Forum: C++ Apr 7th, 2007
Replies: 8
Views: 1,214
Posted By earlyriser
Hello.
I'm trying to read an input file to build a list formed by structs.
The input file has this format:

1 2,15 3,0
2 1,15 3,8
...
the first number of each line will be in what I call...
Forum: Assembly Apr 7th, 2007
Replies: 4
Views: 2,108
Posted By earlyriser
Thanks for your advice Day Brown. I have replaced the bold lines by:
MOV AH, 0Eh
;MOV AL, DL
INT 10h
and it works.
Forum: Assembly Apr 4th, 2007
Replies: 4
Views: 2,108
Posted By earlyriser
Finally I understand how the program works. The result is in AX registry. For example if the chaine was 41, the result will be 29 (41 in hex).
Now I would like to print it in the screen. I have...
Forum: Assembly Apr 4th, 2007
Replies: 4
Views: 2,108
Posted By earlyriser
Hello!.
First, I don't want you do my homework. The hw consists in take a char chaine and convert it to a number usign macros. For example the chaine 56 in the number 56.
We have a program provided...
Forum: C++ Feb 23rd, 2007
Replies: 10
Views: 2,106
Posted By earlyriser
Ah. Thanks Joe.

When I will finish the code I'll post it here.
Forum: C++ Feb 23rd, 2007
Replies: 10
Views: 2,106
Posted By earlyriser
Sorry.
I get this error:
error C2664: 'strcmp' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
...
Forum: C++ Feb 23rd, 2007
Replies: 10
Views: 2,106
Posted By earlyriser
Finally my partner has saved the day doing the constructor.
Now I try to code a function that show the student who takes classes with more teachers. We have the constructor and the main function,...
Forum: C++ Feb 20th, 2007
Replies: 10
Views: 2,106
Posted By earlyriser
The thing taht I want is just that the while stop when line="&".
Do you know why it is not working?
Forum: C++ Feb 20th, 2007
Replies: 10
Views: 2,106
Posted By earlyriser
Thanks for your help.
Joe:
The program should construct a linked list with the teachers' stats (names, teaching years, another linked list for his/her classes and another linked list for his...
Forum: C++ Feb 20th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
Thanks for all your tips. I will close this thread, because I have started another one with a less specific topic:
http://www.daniweb.com/techtalkforums/post317987.html#post317987
Forum: C++ Feb 20th, 2007
Replies: 10
Views: 2,106
Posted By earlyriser
Hello.
I have some troubles with a constructor, I can't figure out why a WHILE isn't working as I expected. The program stops there and it doesn't continue.
Thanks in advance.

// reading a text...
Forum: C++ Feb 19th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
Hi. In fact the Homework is in C++.
Maybe the error is mine (I dont want to embarras my teacher's reputation).
The structs provided in the HW are below, with the chnages I did because I wnated to...
Forum: C++ Feb 18th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
Thanks joeprogrammer!
I will try that and give the feedback tomorrow, (I have been doing this homework all the day).
I didn't know that C is better for char arrays than C++.
Forum: C++ Feb 18th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
After reading a line in a text file I need to read another line which contains an INT. I thought that the bold line in this code will be ok to retreive the data, but it doesnt.

...
Forum: C++ Feb 18th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
Thanks Ancient Dragon!
It works, well, the program doesnt, but at least the strcpy works.
My teacher wants char arrays.

Thanks iamthwee!
Forum: C++ Feb 18th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
Thanks iamthwee, but it is not helping me a lot, I was in that page before writing this post and I did what I understood:

strcpy (where-the-data-will-be, where-there-are-now)


strcpy...
Forum: C++ Feb 18th, 2007
Replies: 26
Views: 5,471
Posted By earlyriser
Hello
I'm trying to assign a value from a string via some pointer, but I got an error and I cannot figure how to solve it.
Do you have an idea? I would really help me. The problematic line is...
Forum: C++ Nov 13th, 2006
Replies: 6
Views: 3,544
Posted By earlyriser
Thanks for the eof tip. It seems main () is a thing to avoid too.
I will remember these things.
Forum: C++ Nov 13th, 2006
Replies: 6
Views: 3,544
Posted By earlyriser
Thanks for your replies Ancient Dragon and WolfPack.

I have modified the code with some of your suggestions and added other stuff from my homework, it works as required but I have the feeling...
Forum: C++ Nov 12th, 2006
Replies: 6
Views: 3,544
Posted By earlyriser
Hello. I'm having problems filling an array from a text file. I cann't figure out how this works with getline. I can read read and store ALL the lines, but what I'm trying to do is to store ONLY the...
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC