Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
combine chars

 
Post new topic   Reply to topic Printable version
 View previous topic  My first VB program Post :: Post any good tutorials on creating noob c+...  View next topic  
Author Message
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Fri Apr 11, 2008 8:45 pm    Post subject: combine chars Reply to topic Reply with quote

I am trying to do this
Code: Show/Hide


void (char a)
{
a = "bin\\mrs.exe d " + a;
system(a);
}



that didnt compile BUT this did

Code: Show/Hide

void d(char a[40])
{
     a = strcat("bin\\mrs.exe d ",a);
     
     system(a);
}


even tho it compiled, when i open the exe it says unexpected error happened..

any one know how to do what i am trying?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2580
Location: USA
Offline

PostPosted: Fri Apr 11, 2008 9:01 pm    Post subject: Reply to topic Reply with quote

i think you're jumping ahead of yourself; learn the core operations of C/C++ (pointers and data structures).

http://www.cplusplus.com/doc/tutorial/
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:23
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Fri Apr 11, 2008 11:42 pm    Post subject: Reply to topic Reply with quote

yeah cypher is right
Code: Show/Hide

#include <stdio.h>

...

char a = 'r';
char buf[64];
sprintf(buf,"bin\\mrs.exe d %c",a);

system(buf);

_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 40 page(s) served in previous 5 minutes.

phpBB Created this page in 0.064667 seconds : 28 queries executed (56.8%): GZIP compression disabled