Search:

Type: Posts; User: JonathanS

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Comparing "Struct Char" with "Char in Char Array"

    Just making a program to optimize a game I encountered, which is why I didn't put much thought into it.

    For some reason I cannot compare a char in a struct and a char in a char array together (one...
  2. Silly me, thanks!

    Silly me, thanks!
  3. Creating a class instance (am i going insane?!)

    Here is the code, tried fixing it for a hour now...

    I get


    |12|error: 'Transmittance' was not declared in this scope
    |12|error: expected ';' before 'PropylAcetate'


    Thank you for...
  4. This was the manufacturers response: "That...

    This was the manufacturers response:
    "That information is company confidential and the file format is program specific proprietary."

    Joy, luckily I made it to be fairly accurate reading. If you...
  5. Hey thanks! That Hex Editor helped a lot. I think...

    Hey thanks! That Hex Editor helped a lot. I think I got the graph I wanted, luckily the data was stored as I imagined, an array of numbers (turns out to be floats).

    I'll just post what I found in...
  6. Reading an IR Spectrosopy File (.SPA file) (Unknown Binary File)

    I just took an IR of a compound I made (Propyl acetate) and saved the output to a file (it is in binary i believe).

    There is the original file "jon_spec.SPA" and another file "binary.txt" where I...
  7. Problem understanding how to use memberwise assignment

    The problem that I have is that in CourseSchedule.cpp's function "void AddCourse (Course)" I am not able to find any way to copy the passed "Course a"'s "Date startDate" into...
  8. Ah ok, thank you :) Sorry for late response....

    Ah ok, thank you :) Sorry for late response. Problems dealt with and program is working as well as optimal (good point on the const).

    Thanks again :)
  9. const parameter of function is being changed

    I don't know why it is doing this. I passed it as const and in the function I don't make any changes to the viable.

    The "intersectionOfSets" function changes the class instance "empty"'s array...
  10. Replies
    2
    Views
    2,746

    Is this even close? I didn't know what to put on...

    Is this even close? I didn't know what to put on top of each long box, and dint' know how to put a loop

    http://i47.tinypic.com/34dln5i.jpg
  11. Replies
    2
    Views
    2,746

    UML Diagram for single class program

    My professor wants us to write a UML diagram for our programs, however my previous professor never taught this to us.

    I looked online and all of the examples have multiple classes in them.

    Just...
  12. Thanks, problem solved :)

    Thanks, problem solved :)
  13. C++ professor requiring 3 files for headers?

    Whenever I wanted to use header files I would just make a .cpp and .h file. However the professor I'm taking wants two .cpp files and a header (one cpp file having the same name name as the header,...
  14. Replies
    10
    Views
    2,132

    Well if the password is strong enough wouldn't...

    Well if the password is strong enough wouldn't the limitation on their end be computational power? If so taking 50+ years to open the file I consider to be impossible.
  15. Replies
    10
    Views
    2,132

    Securing files through Encyption

    I was never big on encryption because I never needed it. But for some recent files it would be nice to have some encryption on it.

    What would be the best encryption program to use? I was just...
  16. Replies
    1
    Views
    827

    Faster Output to Disk

    Right now I have a program that loops, and if given the right conditions writes to disk.

    Because of this it write a lot of small files, and currently I am naming the files with std::sprintf and...
  17. My 4K Write Program is nowhere near as fast as benchmarks

    So I wrote this program that writes 100,000 4K .txt files onto disk.

    HD Tune Pro says my 500 MB RAM disk gets ~90k IOPS for 4k files, ~350 MB/sec

    Here is my program:


    #include <iostream>...
  18. Replies
    2
    Views
    5,585

    Creating a folder with subfolders

    So I have been using mkdir() to make my folders, only problem is that it doesn't create subfolders.

    I.e. if mkdir("c:\a\b\c\d") but if c:\a\b\c are not present it doesn't make d folder.

    To...
  19. Yeah I have been reading some more modern books...

    Yeah I have been reading some more modern books on c++ and I will slowly transition into that.

    As my programming professor said "I am an old programmer in a new programmers body".
  20. Replies
    12
    Views
    1,206

    Ha you made this list very convenient ;) ...

    Ha you made this list very convenient ;)

    Thanks, got all of them and starting reading them now!
  21. Replies
    12
    Views
    1,206

    Nope, what I said in my post is essentially all...

    Nope, what I said in my post is essentially all that I know. Thanks for the link.
  22. Replies
    12
    Views
    1,206

    So these? C Library - C++ Reference...

    So these?

    C Library - C++ Reference
    STL Containers - C++ Reference



    Hmm can't find much online tutorials on it that I cannot read. To me anything with <> is a vector so I am assuming they...
  23. Replies
    12
    Views
    1,206

    What should I learn next?

    So I just finished my last assignment from my C++ class. I learned the usual, loops, arrays, structures, and classes/header files.

    Now I want to go the next step, but have little clue of where to...
  24. Writting multiple files into a folder and reading all the files in a folder

    I only know fstream and fprintf, both of which need a prenamed file or directory.

    What I want to do is write multiple files, i.e. 001.txt, 002.txt.

    i would assume that this involves something...
  25. Thread: Threads?

    by JonathanS
    Replies
    19
    Views
    2,221

    Threads?

    I know that c++ doesn't support threads and you need an external library (is that the right buzz word?).

    Looked up some but since there are so many I'd thought I'd ask you guys what you like the...
Results 1 to 25 of 117
Page 1 of 5 1 2 3 4