Search Results

Search: Posts Made By: metal005
Forum: Programming 12-09-2011
3,028
Posted By metal005
No I didn't replace isspace() at the first couple...
No I didn't replace isspace() at the first couple of times, then i went playing with the code and came with the the code I have now.
Forum: Programming 12-09-2011
3,028
Posted By metal005
the text in the file is coming from the same...
the text in the file is coming from the same structure so thats no problem.

and I didnt mean to offend you sorry for that
Forum: Programming 12-09-2011
3,028
Posted By metal005
i founf out that i was not working with a space...
i founf out that i was not working with a space but a tab XD
but I found the solution.


rewind(fp);
do
{
fgets(buf, 4096, fp);
if(sscanf(buf, "%s%s%s%i", &transistor.chType,...
Forum: Programming 12-09-2011
3,028
Posted By metal005
I've been checking the program you wrote and it...
I've been checking the program you wrote and it als picks out BC109A and BC109B :S

I only need it to pick out BC109

but if I search for BC109A, it only picks out BC109A
Forum: Programming 12-08-2011
3,028
Posted By metal005
search file and put into struct
hi everybody,

I need some help with some programming.
I need to write a file that can search in a text file and read the whole line into a struct.

the struct =

struct Transistor
{
...
2,373
Posted By metal005
looked over it for half an hour, and couldn't...
looked over it for half an hour, and couldn't find it.
many thanks
2,373
Posted By metal005
Errors in C Code
For my programming class I need to write a program that reads a ground number and a power, calculates, and then prints the answer on screen.
for this program the teacher makes me use pointers and...
Forum: Programming 09-19-2011
2,994
Posted By metal005
thank you so very much
thank you so very much
Forum: Programming 09-19-2011
2,994
Posted By metal005
ok got that but how can i get them behind...
ok got that but how can i get them behind eachother.
lets say i get this
buf[0] = 1
buf[1] = 1
buf[2] = 0
buf[3] = 1

to this

value = 1101
Forum: Programming 09-19-2011
2,994
Posted By metal005
can you explain it to me :P I've considered...
can you explain it to me :P
I've considered using chars but not really sure how to use it.
I still need to do a calculation with the whole value.
Forum: Programming 09-19-2011
2,994
Posted By metal005
putting numbers behind eachother
I want to make a program where you have to insert binary numbers like this:


do
{
iBinary = getche();
}while(iBinary == 1 || iBinary == 0);


after you get the numbers I want them to be...
1,451
Posted By metal005
thank you, worked :P
thank you, worked :P
1,451
Posted By metal005
number ended by 0
i have to create a simple program for my programming class and mij ide is giving me some errors. The program has to calculate the number of figures entered by a hid ended by a "0"

the code i've...
1,783
Posted By metal005
try the command mount -t smbfs -o...
try the command

mount -t smbfs -o username=username,password=password //computer-ip/share /mnt/point


the mounting point has to exist or else it wont work.
for more option of the -o function...
Forum: What is on Your Mind? 06-01-2011
14,638
Posted By metal005
we are talking about the end of the world... not...
we are talking about the end of the world... not about the end of humans
Forum: What is on Your Mind? 06-01-2011
2,044
Posted By metal005
even if you want to setup a network you have to...
even if you want to setup a network you have to configure it and that's programming...
you can even define installing a program as programming.
Forum: What is on Your Mind? 05-26-2011
14,638
Posted By metal005
actually when the sun becomes a red giant it will...
actually when the sun becomes a red giant it will already be cooled down because it doesnt have enough fule to produce the warmt, and when the sun becomes a red giant it will lose a lot of mass, so...
Forum: What is on Your Mind? 05-26-2011
14,638
Posted By metal005
actually if the sun expands in a red giant the...
actually if the sun expands in a red giant the orbit of the earth could shift and we would not be swallowed by the sun and if we survive it the sun will become a dwarfstar and the earth would become...
2,156
Posted By metal005
XX= echo $XX|sed 's/*situation now*/*what you...
XX= echo $XX|sed 's/*situation now*/*what you want*/'


would probably work
Forum: What is on Your Mind? 05-18-2011
2,044
Posted By metal005
if you want an IT job and dont like programming...
if you want an IT job and dont like programming than recreate your carreer plan...

but if you want some basic programming...
try basic

or if you want a somewhat more powerfull language try C
Forum: What is on Your Mind? 05-18-2011
3,250
Posted By metal005
first try rpgmaker XP or rpgmaker VX... (for...
first try rpgmaker XP or rpgmaker VX... (for rpg's)
or else try gamemaker... (its a bit harder but you can make any kind of game)
there are many forums that can help you...
good start and its...
1,628
Posted By metal005
the value im getting from the serial port is...
the value im getting from the serial port is ASCII and there is a newline at the end...

im getting my information from the com port from a fluke 45 dual display multimeter
1,628
Posted By metal005
the info from the cm-port will now be read by...
the info from the cm-port will now be read by another programm

the data can be an number or a string...
if it is a string than you have given the wrong command to the other programm so that also...
2,443
Posted By metal005
seems like the file was created in non-linux...
seems like the file was created in non-linux environment...
179,576
Posted By metal005
bashing all the time ;)
bashing all the time ;)
Showing results 1 to 25 of 34

 
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy