Hello...i have a problem with xcode...i am a beginner user on mac and i am learning to program in C but lastime when i tried to compil a file with xcode it doens't function at well and i dont know while...her is my code source if somebody can help me
#include <stdio.h>
#include <stdlib.h>
#define N 20
int main (int argc, const char * argv[])
{ FILE *fp;
char nome_file[N];
int i,j;
int dim;
float mat_in[N][N];
float mat_out[N][N];
// apertura del file
printf("nome_file:");
scanf("%s",nome_file);
fp=fopen(nome_file, "r");
if (fp==NULL) {
printf("errore nell'apertura del file %s\n",nome_file, );
return -1;
fscanf(fp, "%d",&dim);
printf("%d\n",dim);
for (i=0; i<dim; i++) {
for (j=0; j<dim; j++) {
fscanf(fp, "%f",&mat_in[i][j]);
printf("%.2f",mat_in[i][j]);
int ordine_grandezza=1;
for (i=0; i<dim; i++) {
for (j=0; j<dim; j++) {
here is my complete code source:
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#define N 20
int main (int argc, const char * argv[])
{ FILE *fp;
char nome_file[N];
int i,j;
int dim;
float mat_in[N][N];
float mat_out[N][N];
// apertura del file
printf("nome_file:");
scanf("%s",nome_file);
fp=fopen(nome_file, "r");
if (fp==NULL) {
printf("errore nell'apertura del file %s\nnumero errore: %d",nome_file, errno);
return -1;
fscanf(fp, "%d",&dim);
printf("%d\n",dim);
for (i=0; i<dim; i++) {
for (j=0; j<dim; j++) {
fscanf(fp, "%f",&mat_in[i][j]);
printf("%.2f",mat_in[i][j]);
int ordine_grandezza=1;
for (i=0; i<dim; i++) {
for (j=0; j<dim; j++) {
if (mat_in[i][j]<=0){
mat_out[i][j]=0;
else {
while (mat_in[i][j]>ordine_grandezza) {
ordine_grandezza=ordine_grandezza*10;
mat_out[i][j]=ordine_grandezza;
for (i=0; i<dim; i++) {
for (j=0; j<dim; j++){
printf("%8.2f",mat_out[i][j]);
printf("\n");
int simmetric=0;
for (i=0; i<dim && simmetric!=1; i++) {
for (j=i+1; j<dim && simmetric!=1; j++){
if (mat_out[i][j]!=mat_out[j][i])
simmetric=1;
if (simmetric==1)
printf("matrice simmetrica\n");
else
printf("matrice non simmetrica\n");
return 0;
and when i compil it shows it:
nome_file:martin.txt
errore nell'apertura del file martin.txt
excuz me if i dont speak english very well....but i think that the problem is that i don't know to compil a file on xcode...and if yo can send me a tutorial about it i will be grateful
Similar Messages
-
Hello I have a problem with Mac Pro, iPhoto does not want to stay open and close as I can figure this out? thanks
Refer below link once
App doesn’t open | Progress wheel spins continually -
Hello,i have a problem with the Ipod,is that the Ipod doesn't sync all the songs in my Itunes. I have 373 songs in my Ipod and 512 sons in my Itunes. What do i do?
Hello,
I take it you haven't unticked any of the songs listed on your iTunes Library? Also have you tried selecting all your songs which you wish to add to your iPod, and dragging them over your Devices "iPod Nano"; and seeing if that copies all songs on to your iPod?
Another idea is just check that your iPod has enough space for the rest of your songs to be added to your device.
Hope this helps. -
Hello I have a problem with my ipod touch 1G the problem is that see me key to the floor! And when recogi not prendia after 5 minutes prendio but it gave to me the surprise of which the battery had finished completely! What I did was to set it to load with the USB but do not load the battery me the icon of the battery appear and below of her the beam that indicates that this being loaded but this way I have left it the whole yesterday and what goes of today and continues without loading anything! They can help me porfavor I am grateful for them to him very much! And my PC does not detect it not itunes
Try the not-charging topic of:
iPod touch: Hardware troubleshooting
It could be that the battery is dead. -
Hello I have a problem with my Iphone 5S and it`s under warrenty it doesn`t turn on and a blue screen cames up and it doesn`t reset what can I do, I live in Argentina Buenos Aires, please contact me soon, thank you
Where did you purchase the phone? Then, you can use this support document to find out how to contact Apple Support from your location. Contact Apple for support and service - Apple Support
-
hello i have a problem with app store cant download program get this error verification required and no accept my visa card
what i can start to download and updated programs
-
Hello
I have a problem with security questions and i cant reset to my email
The error was
Exceeded Maximum Attempts
We apologize, but we were unable to verify your account information with the answers you provided to our security questions.
You have made too many attempts to answer these questions. So, for security reasons, you will not be able to reset password for the next eight hours.
Click here for assistance.
i waited more than eight hours. and back to my account but it is the same ( no change ) i cant find forgot your answers
http://www.traidnt.net/vb/attachment...134863-333.jpg
can you help me pleaseAlternatives for Help Resetting Security Questions and Rescue Mail
1. Apple ID- All about Apple ID security questions.
2. Rescue email address and how to reset Apple ID security questions
3. Apple ID- Contacting Apple for help with Apple ID account security.
4. Fill out and submit this form. Select the topic, Account Security.
5. Call Apple Customer Service: Contacting Apple for support in your
country and ask to speak to Account Security.
How to Manage your Apple ID: Manage My Apple ID -
Hello, I have a problem with my iphone 4 battery, it looses 20% over the night with wifi on and without receiving any phone call or notification. It also uses 1 or 2% each time I check my iphone even if it is just to check up my messages. Is it normal? Please someone give me a solution
Yes this is fairly normal. When you have wifi on the phone, it drains the battery life of the device.
Here is an article that has some tips that you can follow so you can modify the settings on your device to extend it's battery life to the fullest.
http://www.apple.com/batteries/iphone.html -
hello, i have a problem with my macbook air. When i try to open my iPhoto i should wait about 3mins to get opened it and also in it just appeared around 57000 photos! in which i have 2000. they are not mine, the photos are pics of other people or things
If you want help you’ll need to give us more information. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
- What version of iPhoto.
- What version of the Operating System.
- Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
- History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
- What steps have you tried already to solve the issue.
- Anything unusual about your set up? Or how you use iPhoto?
Anything else you can think of that might help someone understand the problem you have. -
hello i have a problem with my macbook pro become to slow to write any thing, to do any thing and the fan is always on never stop what can i do?
i already reinstall the software many times and still the same i dont know what is happening is there is somebody who can help me please im will waitingThere are any number of possibilies... you could have problems with runaway applications, causing your machine to overheat and setting the fans off, you could have bad fan sensors, etc.
Open Activity Monitor (Applications>Utilities) and see if you have any apps that may be hogging the CPU. Call back.
Clinton -
hello, I have a problem with my iPad I actually forgot my password on my ipad, but I still remember the Apple ID and password, I will like you to help me find my password. thank you for your understandingu
deForgot passcode
http://support.apple.com/kb/ht1212 -
Hello,i have a problem with my gift card here in switzerland,when i want to redeem the cod says that the code is not good for i tunes....and i buy the gift card from the shop...any idea? thx
I have one of these http://store.apple.com/us/personalize/itunes?product=M9949
but the credit on it is 30 chf....i try to reddem into itunes and after all the steps i recive a message that says"the serial code is not good...." i don t know why say this.... -
Hello, I have a problem with my mac book pro after running the battery dead on a game. The display has shrunk leaving two black margins on either side. What to do ?
Go to System Preferences>Displays and set the resolution to "Best for this computer" (or something to that effect).
Clinton -
Hello I have a problem with a Wifi Survey app, this app is from Access Agility, however this app was working fine, but without advise stop of working, I tried to open again, but app be close after few seconds. Every time that I tried to open it, in diagnostic and use create some files, in special one named LatestCrash-WifiSurvey.plist, this one generate an incident identifier E73B0164-CDFA-4E9E-839E-A0C021BD17A2, but this incident identifier change every time that I tried to open, the last incident identifier is: DE600EB3-AB57-4C33-8DE8-71F6788A7441.
After of it, I checked that the app had a new version available for downloading, I took a backup of my ipad and then upgrade this app, but is the same problem, all I want is to save the projects I had in this app, I´m afraid that if I delete this app and re-install it, probably I loss my projects.
Thanks for your help indicating how I can save my projects and see them for example in an iphone for assurance that data is not lost.
Something that called my attention is part of the log that shows a big CPU processing, but the strange thing is I killed all applications.
Incident Identifier: E73B0164-CDFA-4E9E-839E-A0C021BD17A2
CrashReporter Key: ed0ca1405ce83d4f80cb3cce063d7248d7b76e91
Hardware Model: iPad2,5
Process: WifiSurvey [139]
Path: /var/mobile/Applications/1BEEE35A-85FC-4BE4-B62A-39A930CB3CE2/WifiSurvey.app/Wi fiSurvey
Identifier: WifiSurvey
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-08-08 19:01:13.476 -0500
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information:
com.accessagility.wifisurvey failed to launch in time
Elapsed total CPU time (seconds): 20.990 (user 20.990, system 0.000), 52% CPU
Elapsed application CPU time (seconds): 19.954, 50% CPUSee:
iOS: Troubleshooting applications purchased from the App Store
Contact the developer/go to their support site if only one app.
Restore from backup. See:
iOS: How to back up
Restore to factory settings/new iPod -
Hello,
I have this problem on updating applications on my iPhone 4s 5.1.1 (jail broken) i dont know if you can help me with.
when ever i want to update an application on apple store i get a different user name then mine([email protected]) this user name is not mine but its always there only on updating my app's.
thanking you in advance for your kind help.Under the Terms of Use of this forum it is prohibited to discuss jail breaking. By jail breaking your iPhone you void any warranty you may have and forfeit any support from this forum.
Maybe you are looking for
-
I have an iphone 2g. the bottom part of the screen is unresponsive.
will the apple store still replace it? the phone is in perfect condition besides the unresponsive screen.
-
I have used itunes forever, Sunday night when I tried to get into the itunes store an error popped up and said could not open; error code (-3212), How do I get back into the itunes store?
-
I can get every OS except mavericks??? Why???
We want to upgrade one of our iMacs from 10.6.8 to 10.9.0, but the installer is nowhere to be found. I can buy every OS up to 10.8 and get Yosemite for free, but I can't get Mavericks at all??? Am I missing something?
-
What happened with TD BACKGROUND in CS4 ?
We used to have the TD Background textfield value in the properties even in CS3 ... but now I need to use it and I no find the way unless I write it in HTML... where is that issue now ? Thanks in advance,
-
Screensaver works .. if it wants to
Hi, everybody. I've downloaded OS X Mavericks, and it seems to work fine. Yet, I have two different problems with my screensaver: on the iMac, it lets me choose among my iPhoto Library, but some of my albums are regularly shown as screensavers and ot