Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
cho hỏi trong C có hàm nào lấy giá trị vị trí hiện tại của con trỏ không?
#include <stdio.h>
int j, k;
int *ptr;
int main(void)
{
j = 1;
k = 2;
ptr = &k; // Set pointer position is the same as variable k
printf("\n");
printf("j has the value %d and is stored at %p\n", j, (void *)&j);
printf("k has the value %d and is stored at %p\n", k, (void *)&k);
printf("ptr has the value %p and is stored at %p\n", ptr, (void *)&ptr);
printf("The value of the integer pointed to by ptr is %d\n", *ptr);
return 0;
}
có hàm nào đơn giản hơn không*ptr là giá trị do con trỏ trỏ tới
&ptr là vị trị hiện tại của con trỏ

Mấy dòng đó không có gì sai, chạy trên Python 3.1 vẫn được mà.Xin cho hỏi, Python 3.1 bị lỗi này khắc phục làm sao ?
Muốn tạo cái lỗ thì có hai cách là dùng Edit Poly và Booleans.Vừa mò 3ds max xong. Giả sử có 1 bức tường, giờ muốn đục cái lỗ thì làm thế nàoMò cả buổi
![]()
Có dùng hàm gì đâu mà không đơn giản chỉ làcó hàm nào đơn giản hơn không
tớ chỉ cần giá trị của toạ độ vị trí hiện tại của con trỏ được gán cho 2 biến kiểu int
giống như trong pascal chỉ đơn giản là
x:=wherex; y:=wherey
máy mình mỗi khi turn off thì lâu lâu nó lại restart, k hiểu sao nữa
rồi những cái mình muốn tạo shortcut,nhấp chuột phải vào --->send to thì k thấy ra desktop nữa mà ra -mydocument -DVD,RAM drive(F)
cái cuối cùng là mình muốn remove cái KIS 2009 hiện đang chạy trên máy đi mà k biết làm sao nữa, trong thư mục nó k có unstall...,trong control panel cũng chẳng thấy,trong cái Your Uninstaller! 2008 cũng k thấy nó đâu để remove.
( trước kia mình có dùng Your Uninstaller! 2008 để remove nó rồi, kết quả là trong Your Uninstaller! 2008 và control panel k thấy nó nữa,nhưng nó vẫn có trong máy mình và vẫn chạy bình thường )
hoặc máy có bật chế độ Wake on lan ko
chip nóng cũng dẫn đến việc rs máy![]()
cái đấy được set mặc định trong BIOS để hạn chế hư hỏng CPU và chip khi quá nóng. Cách fix từ Microsoft. Có thể bỏ đĩa Win vào repair hay fix nhanh bằng cái này xp_sendtodesktop.vbs.rồi những cái mình muốn tạo shortcut,nhấp chuột phải vào --->send to thì k thấy ra desktop nữa mà ra -mydocument -DVD,RAM drive(F)
Mấy dòng đó không có gì sai, chạy trên Python 3.1 vẫn được mà.
Lỗi SyntaxError là lỗi chung chung, lúc chạy bằng python mũi tên chỉ lỗi ở vị trí nào?
public void deleteMail(Account account,int msgID) throws MessagingException{
Properties prop = new Properties();
prop.setProperty("mail.pop3.port", account.getIncomingPort());
prop.setProperty("mail.pop3.socketFactory.port", account.getIncomingPort());
prop.setProperty("mail.pop3.socketFactory.class","javax.net.ssl.SSLSocketFactory");
prop.setProperty("mail.pop3.socketFactory.fallback", "false");
System.out.println(account.getIncomingServer());
prop.put("mail.pop3.host", account.getIncomingServer());
prop.put("mail.store.protocol","pop3");
authen = new UserAuthenticator(account);
session = Session.getInstance(prop, authen);
session.setDebug(true);
//Get the store
Store store = null;
store = session.getStore("pop3");
store.connect(account.getIncomingServer(), account.getUser(), account.getPassword());
// Get folder
Folder folder = null;
folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
// Get directory
Message message[];
message = folder.getMessages();
System.out.println(folder.getMessageCount());
System.out.println(msgID + ": " + message[msgID].getFrom()[0] + "\t" + message[msgID].getSubject());
message[msgID].setFlag(Flag.DELETED,true);
folder.close(true);
store.close();
}
Mình cần giúp đỡ về cái Javamail.
Mình ko tài nào xóa được mail trên server. Mặc dù khi chạy debug thì rõ ràng thư đã được mark deleted và mình đã close nhưng khi vào mail thì thư vẫn chưa được xóa. Bạn nào giúp mình cái :(
package test_javamail;
import java.util.Properties;
import javax.mail.Flags.Flag;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Store;
public class JavaMail {
public static void main(String[] args) {
Properties prop = System.getProperties();
final String host = "server.quochung.net";
final String username = "[email protected]";
final String password = "123987465";
String provider = "pop3";
try {
prop.setProperty("mail.pop3.socketFactory.port", "465");
prop.setProperty("mail.pop3.socketFactory.fallback", "false");
prop.put("mail.pop3.host", "server.quochung.net");
prop.put("mail.store.protocol","pop3");
javax.mail.Authenticator pa = null; //default: no authentication
if (username != null && password != null) {
prop.put("mail.pop.auth", "true");
pa = new javax.mail.Authenticator (){
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
};
}
Session session = Session.getInstance(prop, pa);
session.setDebug(true);
//Get the store
Store store = null;
store = session.getStore(provider);
store.connect(host, username, password);
// Get folder INBOX
Folder inbox = null;
inbox = store.getFolder("INBOX");
if (inbox == null) {
System.out.println("No INBOX");
System.exit(1);
}
inbox.open(Folder.READ_WRITE);
// Get messages from server
Message[] messages;
messages = inbox.getMessages();
if(messages.length<1)
System.out.println("There's no new email!");
System.out.println("There "+inbox.getMessageCount()+" mail(s) in your INBOX");
//System.out.println(0 + ": \t" + messages[0].getSubject());
messages[0].setFlag(Flag.DELETED, true);
// Close connection and delete message
inbox.close(true);
store.close();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
}
run:
DEBUG: setDebug: JavaMail version 1.4.2
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
DEBUG POP3: connecting to host "server.quochung.net", port 110, isSSL false
S: +OK Hello there.
C: USER [email protected]
S: +OK Password required.
C: PASS 123987465
S: +OK logged in.
C: STAT
S: +OK 1 2261
C: NOOP
S: +OK Yup.
There 1 mail(s) in your INBOX
C: DELE 1
S: +OK Deleted.
C: QUIT
S: +OK Bye-bye.
BUILD SUCCESSFUL (total time: 0 seconds)
Chú nào hiểu Địa chỉ hỗn hợp trong Excal là cái quái gì ko, 2 cái địa chỉ kia hỉu nhưng cái này thua![]()
.Địa chỉ hỗn hợp
Dạng: $[Cột][Dòng] hay [Cột]$[Dòng]
Ký hiệu: $A1 (cột là tuyệt đối, dòng là tương đối), hoặc A$1 (cột là tương đối, dòng là tuyệt đối)
Đây là địa chỉ kết hợp của hai loại địa chỉ trên. Nếu trong công thức có chứa địa chỉ hỗn hợp, khi thực hiện lệnh sao chép công thức đến vị trí mới, Excel sẽ giữ nguyên phần tuyệt đối, chỉ làm thay đổi phần tương đối.
VD: Để tính số liệu cho ô D2, bạn lập công thức B2-A2, tuy nhiên công thức này khi sao chép sang ô E2 sẽ là C2-B2 (Sai!), do đó tại ô D2 bạn phải sử dụng địa chỉ hỗn hợp là B2-$A2
. ai giúp mình với!!