I cannot able to print the function [on hold]
up vote
-3
down vote
favorite
i know how to print it
But my question is
import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules
print(objs.printsomething(income: "ssd"))
if I compile it
Error variable objs is not initialized before
I know how to print the function but help what wrong with the above function
swift
New contributor
put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-3
down vote
favorite
i know how to print it
But my question is
import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules
print(objs.printsomething(income: "ssd"))
if I compile it
Error variable objs is not initialized before
I know how to print the function but help what wrong with the above function
swift
New contributor
put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R
If this question can be reworded to fit the rules in the help center, please edit the question.
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago
sorry and thanks for the information
– subash chandru
15 hours ago
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
i know how to print it
But my question is
import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules
print(objs.printsomething(income: "ssd"))
if I compile it
Error variable objs is not initialized before
I know how to print the function but help what wrong with the above function
swift
New contributor
i know how to print it
But my question is
import UIKit
class rules{
func printsomething(income:String){
print(income)
}
}
var objs:rules
print(objs.printsomething(income: "ssd"))
if I compile it
Error variable objs is not initialized before
I know how to print the function but help what wrong with the above function
swift
swift
New contributor
New contributor
New contributor
asked 15 hours ago
subash chandru
1
1
New contributor
New contributor
put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R 14 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Heslacher, Mathias Ettinger, 200_success, Martin R
If this question can be reworded to fit the rules in the help center, please edit the question.
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago
sorry and thanks for the information
– subash chandru
15 hours ago
add a comment |
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago
sorry and thanks for the information
– subash chandru
15 hours ago
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago
sorry and thanks for the information
– subash chandru
15 hours ago
sorry and thanks for the information
– subash chandru
15 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago
sorry and thanks for the information
– subash chandru
15 hours ago