Thank you, Salem! That worked. Turned out, my "image viewer" is called 'Eye of Gnome', and its manual says to call it 'eog' in the terminal. So this works:
string runit = "eog infinitiesRed.tga";...
Type: Posts; User: Nancy Franklin
Thank you, Salem! That worked. Turned out, my "image viewer" is called 'Eye of Gnome', and its manual says to call it 'eog' in the terminal. So this works:
string runit = "eog infinitiesRed.tga";...
Guys, I still can't figure out a way for my C++ file to open Ubuntu's "Image Viewer" and display the newly-generated .tga fractal image in it. Can someone help me do that, please?
(nothing from...
Thanks, brewbuck, but I'm a bit reluctant to use a new format. My teacher gave permission to copy/use that file-writing method, it works fine, but I don't fully understand how it works, so I wouldn't...
Ok, I got the program working great. It generates the fractal (with color now!), and saves it as a Targa file named "sanMarco.tga". Now, how can I make it automatically open after it is generated? My...
Thank you, Salem! Just double-clicking on those .tga files worked! Now I just need to figure out how to tweak it into displaying color... Is there a graphics program to add color to .tga files? Is...
Hmm. Thank you, that fixed all the compiling errors on the last two, "cactus" and "sanMarco", but when using g++ sanMarco.cpp gives no errors, but saying "./a.out" does nothing, just gives me another...
Hi- I'm trying to run some C++ code I found here that's so old, it uses <conio.h> and <graphics.h>, which aren't available. I'm trying to upgrade its code by removing the obsolete sections so that it...
Thanks for all your help, guys. I figured out the rest, and it's working. :)
Would this work, or do I have it backwards?
STRING temp2=" ."
for(i = 0; i < count; i++){
for(j = i; j < count; j++){
if(a[j]>a[j-1]){
temp = count[i];
GLike this?
for(i = 0; i < count; i++){
for(j = i; j < count; j++){
if(a[j]>a[j-1]){
temp = count[i];
count[i] = count[j];
count [j] =...
Um, I don't have a compiler or access to one for 5 hours, but is this what you mean:
for(i = 0; i < count; i++){
for(j = i; j < count; j++){
if(a[j]>a[j-1]){
...
Sorry that wasn't clear, Subsonic. Each string entered must be sorted according to how many times it has appeared. If 15 different words have been entered in an input stream of 30 words, there should...
Ok, so that section should be:
for(i=0; i<counter;i++){ //check if s is already there
k=strcmp(s,word[i]); //compare the strings
if(k==0){ // s is already...
Yes, it was complaining, but I didn't know what the error message meant. I'm a n00b, and the VMware terminal's error messages are confusing. Messing with it sometimes stored big negative numbers in...
Goal: count the number of unique strings from the input stream. The typedef, STRING, scanf, and %s are required. After that, sort each unique string according to how many times its appeared. The...