我是首发,这是我原来的计划:
angular.module('app', []).controller("EventCtrl", EventController);
EventController.$inject = ["$scope", "$http", "$window"];
function EventController($scope, $http, $window) {
$scope.bindclub = function(callback) {
$http({
url: '/Master/bindclub',
method: 'post',
}).then(function(response) {
debugger
$scope.clubidname = response.data;
callback() // callback function
}, function() {
alert("Error in binding club");
callback()// callback function
});
}
$scope.displayevent = function() {
$http({
url: '/Master/displayevent',
method: 'post',
}).then(function(response) {
alert('Displayed');
}, function() {
alert('Error in display event');
});
}
$scope.bindclub(function() {
$scope.displayevent(); // this execute after bindclub fucntion
});
}
我想重复输入,所以我添加了一个#include <stdio.h>
int main(void){
char c;
int n,m,i,j,w;
scanf("%c %d %d",&c,&m,&n);
for(i=0;i<n;i++){
for(j=0;j<m;j++){
printf("%c",c);
}
printf("\n");
}
return 0;
}
循环:
while
当我运行程序时,第一个输入和输出是正常的,但它在第二个输入和第二个输出之间有一个空区域,依此类推,我不知道为什么,我怎么能纠正我的程序?